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 #35979 is a reply to message #35970] Tue, 05 August 2003 07:14 Go to previous messageGo to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
"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/
[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 13:26:47 PDT 2025

Total time taken to generate the page: 1.68054 seconds