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

Home » Public Forums » archive » Re: reading HDF with HDF_SD_START()
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: reading HDF with HDF_SD_START() [message #56137] Mon, 08 October 2007 00:06 Go to previous message
fanxing_gis is currently offline  fanxing_gis
Messages: 8
Registered: August 2007
Junior Member
On 10 8 , 11 57 , David Fanning <n...@dfanning.com> wrote:
> fanxing_...@163.com writes:
>> i'm sorry to state the occasion when the error listed above occurs.I
>> write a programme to view the HDF data structue including scientific
>> data set,global attributes and attributes of SD.To do that i start a
>> new IDL session and open the HDF file with hdf_sd_stat(),it worked
>> well, all the SDs were listed in widget_list using hdf_get_info(),here
>> i click each of the SDS the attributes or the information of the SDS
>> could be showed in a text widget, at the beginning it is run well,but
>> repeat the process several times the programme was halted and the
>> error message is printed:
>
>> HDF_SD_START: Unable to start the HDF-SD interface.
>> Execution halted at: $MAIN$
>> in the same session i write the follow code in command line,and the
>> same error message printed as above.
>
>> IDL> a=dialog_pickfile()
>> IDL> hdfid=hdf_sd_start(a)
>> after that,i try the fileinfo() function, it's worked well,the result
>> is as follows:
>> ** Structure <11534e0>, 7 tags, length=36, data length=36, refs=1:
>> NAME STRING 'D:\AST_09T_003080820010402180000000.hdf'
>> EXIST LONG 1
>> READ LONG 1
>> WRITE LONG 1
>> HDF LONG 1
>> NETCDF LONG 0
>> SIZE LONG 14324417
>> if i describe that clearly ,i hope you kind guys could help me
>
> Well, here is my guess. I think the variable you are
> passing to HDF_SD_START in your widget program is not
> what you think it is. But this is only a guess. I do
> think the chances of it being a programming error is
> the most likely probability. I'd start checking *all*
> your assumptions.
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")- -
>
> - -

thanks David,the problem has been solved,and the reason is just what
you think,a programming error resulting from unclosing the HDF file
cursorily ,so the SD interface handle were used up.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: reading HDF with HDF_SD_START()
Next Topic: Re: IDL Help with Reading EOS-HDF Files

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

Current Time: Fri Oct 10 03:41:30 PDT 2025

Total time taken to generate the page: 1.59613 seconds