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

Home » Public Forums » archive » how to write in HDF-EOS format?
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
how to write in HDF-EOS format? [message #36995] Fri, 07 November 2003 16:30
sbkim is currently offline  sbkim
Messages: 4
Registered: November 2003
Junior Member
I am trying to create a HDF-EOS file. Many comments on how to read HDF-EOS,
but not on how to write. I did the following but I cannot create
the hierarchy, nor add data fields to each level (eg, add 'latitude'
to 'Geolocation field').


FileID=EOS_SW_OPEN(fhdf, /CREATE)

sz = size(sst.temp)
SwathID= EOS_SW_CREATE(FileID, 'L2 SST')
; geolocation field
SwathID= EOS_SW_ATTACH(FileID, 'Geolocation Fields')
s1 = EOS_SW_DEFDIM(swathID, "GeoTrack", sz(1))
s2 = EOS_SW_DEFDIM(swathID, "GeoXtrack", sz(2))
s3 = EOS_SW_DEFGEOFIELD(swathID, "latitude","GeoTrack,GeoXtrack", 5)
w1 = EOS_SW_WRITEFIELD(SwathID, 'latitude',float(l1b_ir.alat))
s4 = EOS_SW_DEFDATAFIELD(swathID, "longitude","GeoTrack,GeoXtrack", 5)
W2 = EOS_SW_WRITEFIELD(SwathID, 'longitude',float(l1b_ir.alon))
s5 = EOS_SW_DETACH(SwathID)

; Data. fields
SwathID = EOS_SW_ATTACH(FileID, 'Data Fields')
s4 = EOS_SW_DEFDATAFIELD(swathID, "Sst","GeoTrack,GeoXtrack", 5)
w3 = EOS_SW_WRITEFIELD(SwathID, 'Sst',float(sst.temp))
Result = EOS_SW_DETACH(SwathID)

status = EOS_SW_Close(FileID)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Is it possible to change the title of a WIDGET_SLIDER?
Next Topic: Re: slightly shifted plots (?)

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

Current Time: Wed Oct 08 14:00:39 PDT 2025

Total time taken to generate the page: 0.00512 seconds