comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » HDF_SD_GETACCESS: No content in variable, error
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
HDF_SD_GETACCESS: No content in variable, error [message #71808] Wed, 21 July 2010 04:17
aa8533 is currently offline  aa8533
Messages: 8
Registered: July 2010
Junior Member
Hi - I'm trying to make a program which automatically runs through
100s of images (MODIS Fire data) and extracts data at a particular
point. The program works fine where there is data to extract (in the
case below, when there is data in FP_Sample) but halts for an image
where there is none with message "Array dimensions must be greater
than 0".

Extract of code is:

sd=hdf_sd_start(fileName)
index=hdf_sd_nametoindex(sd,'FP_sample')
sds=hdf_sd_select(sd,index)
hdf_sd_getdata,sds,sample <------------------ Halts with message
here

Is there a way to test the size of the variable (in this case Sample)
and if, say it's -1 (no data) then skip the last line of this code?

Would very much appreciate any help.

Matt
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: ENVI: Overlay in 3D SurfaceView
Next Topic: Stop and return to caller

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:39:52 PDT 2025

Total time taken to generate the page: 0.00505 seconds