Go Back   HDF-EOS Forums > Library > FORTRAN

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-13-2010, 09:37 AM
corey corey is offline
Junior Member
 
Join Date: Sep 2010
Posts: 7
Default Groups in swaths?

Is there a way using the HDF-EOS5 library to create groups within swaths?
For instance, given the swath "/HDFEOS/SWATHS/swath1/", I'd like to create the following datasets:
/HDFEOS/SWATHS/swath1/Data Fields/field1
/HDFEOS/SWATHS/swath1/Data Fields/field2
/HDFEOS/SWATHS/swath1/Data Fields/diagnostic/fielda
/HDFEOS/SWATHS/swath1/Data Fields/diagnostic/fieldb

Attempting to create a data field "diagnostic/fielda" via he5_swdefdfld() results in an illegal character error. Is there a better way that I'm missing?

I've temporarily implemented a workaround by creating a separate "diagnostic" swath. I don't feel this is optimal as the geolocation fields are now duplicated. Similarly, I can't find a way to make links from the swath1 geolocation fields to the diagnostic geolocation fields to alleviate the storage hit of the duplication.

I'm trying to stay within the HDF-EOS5 library for simplicity and continuity before dropping down into the HDF5 libs. Thanks for any advice.
Reply With Quote
  #2  
Old 10-14-2010, 08:57 AM
ataaheri ataaheri is offline
Junior Member
 
Join Date: Jun 2003
Posts: 24
Default

In hdfeos all data fields go under the "Data Fields" group so that hdfeos could relate the data fields with the geofields. You cannot have additional group under "Data Fields" if you want to satisfy hdfeos requirements. Of course I believe you can create a directory under "Data Fields" using HDF calls, but from standpoint of hdfeos the fields under that directory will be useless.
I suggest that either do it the way you have done it now, or better, implement the name into the fieldname and put them in under the same swath (fieldnames such as "diagnostic_fielda" ).
Reply With Quote
  #3  
Old 10-14-2010, 09:31 AM
corey corey is offline
Junior Member
 
Join Date: Sep 2010
Posts: 7
Default

Thanks, Abe. As always, a great help!
Reply With Quote
Reply

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 06:33 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