[ncl-talk] Error reading h5 file.
Marston Johnston
marston.johnston at gu.se
Tue Jan 17 10:54:42 MST 2017
Hi,
I have a NOAA18 hdf5 file that NCL reads but does so incorrectly.
For example NCL reads the variable:
integer btemps ( DIM_001, DIM_000, DIM_000 )
Description : Brightness temperature
FillValue : -999999
Scale : 0.01
Units : Krightness temperature
but h5dump gives:
GROUP "Data" {
DATASET "btemps" {
DATATYPE H5T_STD_I32LE
DATASPACE SIMPLE { ( 2571, 90, 5 ) / ( 2571, 90, 5 ) }
ATTRIBUTE "Description" {
DATATYPE H5T_STRING {
STRSIZE 22;
STRPAD H5T_STR_NULLTERM;
CSET H5T_CSET_ASCII;
CTYPE H5T_C_S1;
}
DATASPACE SIMPLE { ( 1 ) / ( 1 ) }
}
ATTRIBUTE "FillValue" {
DATATYPE H5T_STD_I32LE
DATASPACE SIMPLE { ( 1 ) / ( 1 ) }
}
ATTRIBUTE "Scale" {
DATATYPE H5T_IEEE_F32LE
DATASPACE SIMPLE { ( 1 ) / ( 1 ) }
}
ATTRIBUTE "Units" {
DATATYPE H5T_STRING {
STRSIZE 1;
STRPAD H5T_STR_NULLTERM;
CSET H5T_CSET_ASCII;
CTYPE H5T_C_S1;
}
DATASPACE SIMPLE { ( 1 ) / ( 1 ) }
}
}
As you can see the values of the dimensions are different and NCL reads them in erroneously.
Is there a way to read these files correctly?
Here’s a link to an example of the hdf5 file:
https://www.dropbox.com/s/nc0whngz7ajmx84/NSS.MHSX.NN.D07001.S2324.E0119.B0834142.WI.h5?dl=0
Appreciate your help with this matter,
/M
Marston S. Johnston, PhD
Department of Earth Sciences
University of Gothenburg, Sweden
Email: marston.johnston at gu.se<mailto:marston.johnston at gu.se>
SkypeID: marston.johnston
Phone: +46-31-7864901
Only the fruitful thing is true!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170117/42787d29/attachment.html
More information about the ncl-talk
mailing list