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

Home » Public Forums » archive » Re: EOS-HDF routines
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: EOS-HDF routines [message #49044] Thu, 15 June 2006 09:10 Go to next message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
David Fanning wrote:
> Daniel writes:
...
>> Most of examples I saw use hdf_sd routines...

That's because HDF-EOS is an incomplete wrapper for HDF, so there are
still a few things that can only be done by calling HDF routines. For
example, setting up a dimension scale requires using the SCALE argument
of HDF_SD_DIMSET. Call EOS_EH_IDINFO to return a file handle suitable
for passing to those HDF routines.

...
> * define structure {...}

EOS_SW_DEF*

> * write data EOS_SW_WRITEFIELD

Also, use EOS_SW_WRITEATTR, EOS_SW_WRITEDATAMETA, and
EOS_SW_WRITEGEOMETA to write things other than field data.
Re: EOS-HDF routines [message #49045 is a reply to message #49044] Thu, 15 June 2006 08:12 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Daniel writes:

> I'm just trying to find some examples how to write swath data in a hdf
> file using eos routines (eos_sw). I've this programming model
>
> HDF-EOS Programming Model
> Writing
> * open file
> * create object
> * define structure
> * detach object
> * attach object
> * write data
> * detach object
> * close file
>
> but nothing about what comands I need to use!
> Do you know where can I find some resources about it?
> Most of examples I saw use hdf_sd routines...

I'm just guessing, but how about this:

* open file EOS_SW_OPEN
* create object EOS_SW_CREATE
* define structure {...}
* attach object EOS_SW_ATTACH
* write data EOS_SW_WRITEFIELD
* detach object EOS_SW_DETACH
* close file EOS_CLOSE

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: EOS-HDF routines [message #49137 is a reply to message #49044] Fri, 16 June 2006 09:38 Go to previous message
Maarten[1] is currently offline  Maarten[1]
Messages: 176
Registered: November 2005
Senior Member
kuyper@wizard.net wrote:
> David Fanning wrote:
>> Daniel writes:
> ...
>>> Most of examples I saw use hdf_sd routines...
>
> That's because HDF-EOS is an incomplete wrapper for HDF, so there are
> still a few things that can only be done by calling HDF routines. For
> example, setting up a dimension scale requires using the SCALE argument
> of HDF_SD_DIMSET. Call EOS_EH_IDINFO to return a file handle suitable
> for passing to those HDF routines.

Not to mention that HDF-EOS5 isn't supported with separate routines at
all. The normal HDF-5 routines work fine though, so the separate layer
isn't really needed.

Maarten
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Refine a vector layer in ENVI
Next Topic: ComputeMesh Problem.

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

Current Time: Wed Oct 08 19:53:53 PDT 2025

Total time taken to generate the page: 0.00674 seconds