<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);">
&nbsp;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);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Description : Brightness temperature</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FillValue : -999999</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Scale : 0.01</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;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 &quot;Data&quot; {</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; DATASET &quot;btemps&quot; {</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DATATYPE &nbsp;H5T_STD_I32LE</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DATASPACE &nbsp;SIMPLE { ( 2571, 90, 5 ) / ( 2571, 90, 5 ) }</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ATTRIBUTE &quot;Description&quot; {</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DATATYPE &nbsp;H5T_STRING {</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; STRSIZE 22;</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; STRPAD H5T_STR_NULLTERM;</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSET H5T_CSET_ASCII;</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CTYPE H5T_C_S1;</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DATASPACE &nbsp;SIMPLE { ( 1 ) / ( 1 ) }</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ATTRIBUTE &quot;FillValue&quot; {</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DATATYPE &nbsp;H5T_STD_I32LE</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DATASPACE &nbsp;SIMPLE { ( 1 ) / ( 1 ) }</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ATTRIBUTE &quot;Scale&quot; {</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DATATYPE &nbsp;H5T_IEEE_F32LE</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DATASPACE &nbsp;SIMPLE { ( 1 ) / ( 1 ) }</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ATTRIBUTE &quot;Units&quot; {</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DATATYPE &nbsp;H5T_STRING {</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; STRSIZE 1;</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; STRPAD H5T_STR_NULLTERM;</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSET H5T_CSET_ASCII;</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CTYPE H5T_C_S1;</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DATASPACE &nbsp;SIMPLE { ( 1 ) / ( 1 ) }</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</p>
<p style="margin: 0px; line-height: normal; font-family: 'Helvetica Neue'; color: rgb(51, 51, 51);">
&nbsp; &nbsp; &nbsp; }</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:&nbsp;</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> &#43;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>