Re: HDF vs HDF-EOS? [message #66528] |
Fri, 22 May 2009 08:26 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
savoie@nsidc.org writes:
> What about trying
> EOS_Query?
>
> "This function returns integer value of 1 if the file is an HDF file with EOS
> extensions, and 0 otherwise. "
Ah, maybe it is just me, but I have a hard time
spotting these useful routines in the L-O-N-G
alphabetical listing of routines. Who thought
an alphabetical listing would be the best way
to present this information!?
Cheers,
David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: HDF vs HDF-EOS? [message #66529 is a reply to message #66528] |
Fri, 22 May 2009 07:29  |
Matt[2]
Messages: 69 Registered: March 2007
|
Member |
|
|
David Fanning <news@dfanning.com> writes:
> Does anyone know off-hand how you can programmatically tell the
> difference between an HDF file and an HDF-EOS file? I'd like
> to know when to use the EOS_* routines and when to use the HDF_*
> routines.
What about trying
EOS_Query?
"This function returns integer value of 1 if the file is an HDF file with EOS
extensions, and 0 otherwise. "
Matt
--
Matthew Savoie - Scientific Programmer
National Snow and Ice Data Center
(303) 735-0785 http://nsidc.org
|
|
|
Re: HDF vs HDF-EOS? [message #66530 is a reply to message #66529] |
Fri, 22 May 2009 06:43  |
jameskuyper
Messages: 79 Registered: October 2007
|
Member |
|
|
David Fanning wrote:
> Folks,
>
> Does anyone know off-hand how you can programmatically tell the
> difference between an HDF file and an HDF-EOS file? I'd like
> to know when to use the EOS_* routines and when to use the HDF_*
> routines.
That's the wrong question, because HDF-EOS files are HDF files, just
in a particular format. The question you probably want the answer to
is "How do I tell whether an HDF file is an HDF-EOS file?".
The simplest way I can think of is to look for an HDF file attribute
named "HDFEOSVersion". It should contain a string like "HDFEOS_V2.9".
|
|
|