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

Home » Public Forums » archive » Re: HDF object/tag retrieval
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: HDF object/tag retrieval [message #55860 is a reply to message #55858] Tue, 18 September 2007 08:54 Go to previous messageGo to previous message
leatherback is currently offline  leatherback
Messages: 15
Registered: November 2005
Junior Member
Dear Liam,

Thank you for your reply.

I see the solution you are offering. I'll give that a go. A subproblem
problem I have, is that all the functions I can find in IDL to
retrieve tag values, require you to know the tag ID and/or string to
retrieve the value. But I have not been able to find a way to create a
listing of these values. Would you know how to get this out?

I tried the HEG tool, which I was unable to get to work in batch mode.
I'll have a look at the other tools. Ideally I run the IDL route, as
all my processing at the moment is done in IDL, and it allows me to
have one linux box downloading my timeseries/images as they become
available, and then have IDL check whether newer data is available,
and process the lot whenever i need updated info.

Cheers,

Jelle.

On Sep 18, 3:26 pm, liamgum...@gmail.com wrote:
> Dear Jelle,
>
> The following IDL function is designed to extract a single PVL object
> from a PVL formatted string, such as the CoreMetadata.0 global
> attribute in MODIS HDF files.
>
> ftp://ftp.ssec.wisc.edu/pub/incoming/get_metadata.pro
>
> Here's an example. Note that hdf_sd_attinfo.pro is available fromhttp://gumley.com/PIP/Free_Software.html.
>
> ; Read a global attribute containing global metadata
> file = 'MOD021KM.A2000115.1710.002.2000119195542.hdf'
> hdfid = hdf_sd_start(file)
> info = hdf_sd_attinfo(hdfid, '', 'CoreMetadata.0', /global)
> hdf_sd_end, hdfid
>
> ; Extract a PVL object
> pvlstring = info.data
> objstring = 'RANGEBEGINNINGDATE'
> result = get_metadata(pvlstring, objstring)
> print, result
>
> On a final note, you might be able to find a better tool for creating
> GeoTIFF files from the MYD09A1 product. Here are a few options.
>
> HDFLookhttp://www-loa.univ-lille1.fr/Hdflook/hdflook_gb.html
>
> MRTSwathhttp://edcdaac.usgs.gov/landdaac/tools/mrtswath/
>
> HEGhttp://newsroom.gsfc.nasa.gov/sdptoolkit/HEG/HEGHome.html
>
> Cheers,
> Liam.
> Practical IDL Programminghttp://www.gumley.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: HDF attribute retrieval
Next Topic: Re: Scaling multiple plots

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

Current Time: Fri Oct 10 19:23:48 PDT 2025

Total time taken to generate the page: 1.03985 seconds