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

Home » Public Forums » archive » Re: HDF vs HDF-EOS?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: HDF vs HDF-EOS? [message #66528] Fri, 22 May 2009 08:26
David Fanning is currently offline  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 Go to previous message
Matt[2] is currently offline  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 Go to previous message
jameskuyper is currently offline  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".
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Transporting code from one mac to another: Problem connection to X windows server...
Next Topic: OT: Re: HDF vs HDF-EOS?

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

Current Time: Wed Oct 08 20:03:35 PDT 2025

Total time taken to generate the page: 0.02494 seconds