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

Home » Public Forums » archive » Re: Unable to open HDF in IDL
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: Unable to open HDF in IDL [message #35970 is a reply to message #35969] Tue, 05 August 2003 16:17 Go to previous messageGo to previous message
sjarn1 is currently offline  sjarn1
Messages: 3
Registered: August 2003
Junior Member
"Liam Gumley" <Liam.Gumley@ssec.wisc.edu> wrote in message news:<bgoe53$nqb$1@news.doit.wisc.edu>...
> "Roy" <sjarn1@student.monash.edu.au> wrote in message
> news:7a599348.0308042335.51c08575@posting.google.com...
>> Hello,
>>
>> I am using IDL 5.4 on linux. I was able to open my HDF files without
>> any problems using the following program:
>>
>> PRO hdf,geo,rain
>>
>> file = hdf_sd_start('2A25.971231.535.5.HDF')
>> indexa = hdf_sd_nametoindex(file, 'geolocation')
>> indexb = hdf_sd_nametoindex(file, 'nearSurfRain')
>> varida = hdf_sd_select(file, indexa)
>> varidb = hdf_sd_select(file, indexb)
>> hdf_sd_getdata, varida, geo
>> hdf_sd_getdata, varidb, rain
>> hdf_sd_endaccess, varida
>> hdf_sd_endaccess, varidb
>> hdf_sd_end, file
>>
>> return
>> end
>>
>> However, I have now moved to a new computer attached to the same
>> servers and now I cannot get past:
>>
>> % Compiled module: $MAIN$.
>> % Compiled module: HDF.
>> % Loaded DLM: HDF.
>>
>> IDL stops at the end line.
>>
>> I have checked out my HDF file and it appears to be fine
>>
>> Does anyone have any suggestions as to why this is happening?
>
> What is the "end line"?
> Can you post the full IDL output from the computer where the program fails?
> Have you tried reading just one SDS?
>
> The "return" statement in your program is not required by the way.
>
> Cheers,
> Liam.
> Practical IDL Programming
> http://www.gumley.com/


By "end line" I meant "% Loaded DLM: HDF."

There is no further output from IDL. But rather than returning me to
the IDL prompt, it just stays at that line.

If I enter each line individually, the problem occurs at the line:

file = hdf_sd_start('filexxx.HDF')

This happens regardless of the HDF file I use, although they all
previously opened on a different machine.
Any further ideas?

Thanks
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: 32bit to 64bit conversion
Next Topic: Image display

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

Current Time: Fri Oct 10 22:44:12 PDT 2025

Total time taken to generate the page: 0.56067 seconds