|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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" ). |
|
#3
|
|||
|
|||
|
Thanks, Abe. As always, a great help!
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|