Go Back   HDF-EOS Forums > Old Forum Archive > General Questions

 
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-03-2004, 03:00 PM
BobBane BobBane is offline
Junior Member
 
Join Date: Jan 2004
Posts: 1
Default Access to ODL metadata from HDF-EOS?

HDF-EOS files from major data producers almost always have detailed metadata inside them stored as ODL strings. However, there is no published way within the HDF-EOS API to access most of this data. The

HDF-EOS libraries store some of their own internal metadata in an ODL element (named StructMetadata.[0-9]), and the API gives you access to the data in that, but the metadata showing details like when, where and how the data was gathered is not accessible. Our group would like to have access to this metadata from within the HDF-EOS API, primarily because it would mean our various format conversion tools could then move *all* standard HDF-EOS metadata between formats.



Currently the only way to read this metadata from an HDF-EOS file is to open it using HDF primitives and navigate to the internal location of the metadata. This is annoying, requires knowledge of HDF-EOS internals, and can be dangerous - the HDF-EOS libraries use HDF primitives internally, so using those primitives in addition to the API

calls runs the risk of damaging a file's format internally.



We suggest an addition to the HDF-EOS API for reading and writing this metadata, something like this:



herr_t HE5_EHinquireODL(hid_t fileID, char *groupnames, long *groupbufsize)

Queries the open HDF-EOS file associated with fileID, and writes a comma-separated list of its ODL group names into the groupnames buffer, and the length of the buffer into groupbufsize.



herr_t HE5_EHreadODL(hid_t fileID, const char *metagroup, char *metabuffer, long *metasize)

Fetches the ODL metadata in metagroup, writes it into metabuffer, and writes its length in bytes into metasize.



herr_t HR5_EHwriteODL(hid_t fileID, const char *metagroup, const char *ODLout)

Writes the ODL metadata in the ODLout buffer into the group named by metagroup.



These should have the standard HDF-EOS API behavior (passing NULL as an output buffer parameter means don't send the output), and should probably treat the StructMetadata group as a special case (it should definitely not be writable, perhaps not readable or visible to inquiry either).
  #2  
Old 02-09-2004, 11:44 AM
tadekoya tadekoya is offline
Junior Member
 
Join Date: Feb 2004
Posts: 1
Default Access to ODL metadata from HDF-EOS?

Bob,

Based on your request it seems that you are requesting for Metadata reader and writer. Currently we do not have tools to get the whole metadata from an hdf file at once and write it elsewhere else or pass it to user in a buffer. However, our

SDP or MTD TOOKIT can be used similarly but not for the whole metadata.The Metadata and Time/Date (MTD) Toolkit is a subset of the SDP Toolkit tools and is used for Time and Date conversion, access and creation of metadata.

To look more into your 0request, please send a detailed email pgstlkit@eos.hitc.com. Expand further as to what this data will be used for, that is, for your own analysis or to be used as another information somewhere else. This information will help us to determine if our current Tool is capable of your request or if we were to request from the customer to develop a new tool.

Thanks.











 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:17 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
About Us | Contact Info | Archive Info | Disclaimer
Sponsored by NASA Cooperative Agreement Grant Number NNX08AO77A / Maintained by The HDF Group