Home »
Public Forums »
archive »
Re: HDF attribute extract
Re: HDF attribute extract [message #46798] |
Thu, 05 January 2006 07:24  |
Liberum
Messages: 48 Registered: September 2005
|
Member |
|
|
Hi Peter,
Good to see that you are still around. I an pretty sure that the
satellite_id is an attribute. The hdf_parse showed this and hdf_browser
showed this as well. These attributes are located on the same level as
that dataset for the cloudmask. H5dump gives:
HDF5 "CFCin2004123121091300700125010D.hdf" {
GROUP "/" {
ATTRIBUTE "version" {
DATATYPE H5T_STRING {
STRSIZE 19;
STRPAD H5T_STR_NULLTERM;
CSET H5T_CSET_ASCII;
CTYPE H5T_C_S1;
}
DATASPACE SCALAR
}
ATTRIBUTE "description" {
DATATYPE H5T_STRING {
STRSIZE 128;
STRPAD H5T_STR_NULLTERM;
CSET H5T_CSET_ASCII;
CTYPE H5T_C_S1;
}
DATASPACE SCALAR
}
ATTRIBUTE "satellite_id" {
DATATYPE H5T_STRING {
STRSIZE 7;
STRPAD H5T_STR_NULLTERM;
CSET H5T_CSET_ASCII;
CTYPE H5T_C_S1;
}
I thought this was very simple and I looked at your READ_HDF program
but it seemed like using an elephant gun to kill an ant. Now this ant
seems like an elephant. I am pretty sure it is an attribute. I have
tried just opening the file and then using H5A_READ/H5D_READ but to no
avail. Logically or otherwise, I am issing something. I will look at
the READ_HDF now if you cannot no other suggestions.
Thanks,
Sheldon
|
|
|
Current Time: Sat Oct 11 16:16:20 PDT 2025
Total time taken to generate the page: 1.28380 seconds