Re: HDF reading [message #7962] |
Wed, 29 January 1997 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Hugh Pasika <pasika@soma.crl.mcmaster.ca> writes:
> I have an HDF file with ten Scientific Data Sets, How do I set the
> "current set" so that a call to DFSD_GETDATA will retrieve it.
> For example, how do I get the 5th data set out?
> I really can't figure it out from the manuals.
Don't even get me *started* on HDF documentation! I've spent
nearly a week now cussin' and swearin'. But thanks to
Mark Rivers I have a couple of programs that actually work.
I'll e-mail them to you.
Follow Liam Gumley's suggestion, though, and use the
HDF_SD_ interface. You'll be glad you did.
I'm writing new documentation for the HDF interface so I
don't have to go through this again. I haven't decided if
this is going up on the web page or not. I've suffered
enough over this that I might just sell this information! :-)
Cheers,
David
-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
2642 Bradbury Court, Fort Collins, CO 80521
Phone: 970-221-0438 Fax: 970-221-4762
E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com
-----------------------------------------------------------
|
|
|
Re: HDF reading [message #7963 is a reply to message #7962] |
Wed, 29 January 1997 00:00  |
Liam Gumley
Messages: 473 Registered: November 1994
|
Senior Member |
|
|
Or in one line:
hdf_sd_getdata,hdf_sd_select(hdf_sd_start(pickfile()),4),dat a
Can't do better than that!
Cheers,
Liam.
|
|
|
Re: HDF reading [message #7964 is a reply to message #7962] |
Wed, 29 January 1997 00:00  |
Liam Gumley
Messages: 473 Registered: November 1994
|
Senior Member |
|
|
Hugh Pasika wrote:
> I have an HDF file with ten Scientific Data Sets, How do I set the
> "current set" so that a call to DFSD_GETDATA will retrieve it.
> For example, how do I get the 5th data set out?
> I really can't figure it out from the manuals.
Try using the HDF_SD interface instead, e.g.
sd_id = hdf_sd_start( pickfile() ) ; open the file
hdf_sd_getdata, hdf_sd_select( sd_id, 4 ), data ; select and read
SDS #5
Cheers,
Liam.
|
|
|