[ncl-talk] Error reading h5 file.

Dennis Shea shea at ucar.edu
Tue Jan 17 11:22:44 MST 2017


NCL 6.3.0 fails
(beta) NVL 6.4.0 succeeds

%> ncl_filedump NSS.MHSX.NN.D07001.S2324.E0119.B0834142.WI.h5 >&!
out.marston

see attached

I speculate a 6.4.0 version can be made available if you need it.

===

On Tue, Jan 17, 2017 at 10:54 AM, Marston Johnston <marston.johnston at gu.se>
wrote:

> 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
>
> SkypeID: marston.johnston
>
> Phone: +46-31-7864901 <+46%2031%20786%2049%2001>
>
> Only the fruitful thing is true!
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170117/63dfa28d/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: out.marston
Type: application/octet-stream
Size: 7948 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170117/63dfa28d/attachment.obj 


More information about the ncl-talk mailing list