<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
</head>
<body>
<div name="messageBodySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
Hi,</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51); min-height: 16px;">
<br>
</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
I have a NOAA18 hdf5 file that NCL reads but does so incorrectly.</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
For example NCL reads the variable:</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51); min-height: 16px;">
<br>
</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
integer btemps ( DIM_001, DIM_000, DIM_000 )</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
Description : Brightness temperature</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
FillValue : -999999</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
Scale : 0.01</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
Units : Krightness temperature</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51); min-height: 16px;">
<br>
</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
but h5dump gives:</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51); min-height: 16px;">
<br>
</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
GROUP "Data" {</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
DATASET "btemps" {</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
DATATYPE H5T_STD_I32LE</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
DATASPACE SIMPLE { ( 2571, 90, 5 ) / ( 2571, 90, 5 ) }</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
ATTRIBUTE "Description" {</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
DATATYPE H5T_STRING {</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
STRSIZE 22;</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
STRPAD H5T_STR_NULLTERM;</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
CSET H5T_CSET_ASCII;</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
CTYPE H5T_C_S1;</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
}</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
DATASPACE SIMPLE { ( 1 ) / ( 1 ) }</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
}</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
ATTRIBUTE "FillValue" {</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
DATATYPE H5T_STD_I32LE</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
DATASPACE SIMPLE { ( 1 ) / ( 1 ) }</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
}</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
ATTRIBUTE "Scale" {</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
DATATYPE H5T_IEEE_F32LE</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
DATASPACE SIMPLE { ( 1 ) / ( 1 ) }</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
}</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
ATTRIBUTE "Units" {</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
DATATYPE H5T_STRING {</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
STRSIZE 1;</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
STRPAD H5T_STR_NULLTERM;</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
CSET H5T_CSET_ASCII;</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
CTYPE H5T_C_S1;</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
}</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
DATASPACE SIMPLE { ( 1 ) / ( 1 ) }</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
}</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
}</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51); min-height: 16px;">
<br>
</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
As you can see the values of the dimensions are different and NCL reads them in erroneously.</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
Is there a way to read these files correctly?</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51); min-height: 16px;">
<br>
</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
Here’s a link to an example of the hdf5 file: </p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
<br>
</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
https://www.dropbox.com/s/nc0whngz7ajmx84/NSS.MHSX.NN.D07001.S2324.E0119.B0834142.WI.h5?dl=0</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
<br>
</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
Appreciate your help with this matter,</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51); min-height: 16px;">
<br>
</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
/M</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51); min-height: 16px;">
<br>
</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
Marston S. Johnston, PhD</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
Department of Earth Sciences</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
University of Gothenburg, Sweden</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(62, 129, 222);">
<span style="color: #333333">Email: <a href="mailto:marston.johnston@gu.se"><span style="color: #3e81de">marston.johnston@gu.se</span></a></span></p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
SkypeID: marston.johnston</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(62, 129, 222);">
<span style="color: #333333">Phone:</span> +46-31-7864901</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
Only the fruitful thing is true!</p>
</div>
</body>
</html>