<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div>Dear Toshiyuki Tanaka,</div>
<div>Thank you very much for providing all the information I needed to solve this problem! I downloaded a copy of your data file, and can confirm the following issues with your descriptor file:</div>
<div><br>
</div>
<div>1. You simply misspelled the variable name in your descriptor file, omitting the ‘o’ in “Geophysical Data”.&nbsp;</div>
<div>2. The scale factor attribute name has a space in it and GrADS is not set up to handle spaces in attribute names the way it handles them in variable names. You will have to apply the scale factor manually when you display the variable.&nbsp;</div>
<div>3. An ‘options yrev' was needed, along with an adjustment to the initial value in the ydef entry.</div>
<div>4. There is no attribute named _FillValue, and there are two actual undef values in this file, &nbsp;-32767 and -32768. I picked the former because it masked out the gaps between swaths and the data at the pole, but in order to get a good display, you will
 need to use maskout():&nbsp;</div>
<div><br>
</div>
<div>ga-&gt; d maskout(0.1*smc,smc) &nbsp; &nbsp;</div>
<div><img height="630" width="974" apple-width="yes" apple-height="yes" apple-inline="yes" id="EC32EDC6-33E8-4DAC-A453-3701EF6CE000" src="cid:3AA7296F-C4F7-4E28-913B-8B871EEFC8DC"></div>
<div><br>
</div>
<div>Here is my revised descriptor:&nbsp;</div>
<div><br>
</div>
<div>
<div><font face="Courier New" style="font-size: 14px;">DSET ^GW1AM2_20170101_01D_EQMA_L3SGSMCHF3300300.h5</font></div>
<div><font face="Courier New" style="font-size: 14px;">DTYPE hdf5_grid</font></div>
<div><font face="Courier New" style="font-size: 14px;">TITLE GW1AM2_20170101_01D_EQMA_L3SGSMCHF3300300</font></div>
<div><font face="Courier New" style="font-size: 14px;">options yrev</font></div>
<div><font face="Courier New" style="font-size: 14px;">UNDEF -32767</font></div>
<div><font face="Courier New" style="font-size: 14px;">XDEF 3600 LINEAR 0.05 0.1</font></div>
<div><font face="Courier New" style="font-size: 14px;">YDEF 1800 LINEAR -89.95 0.1</font></div>
<div><font face="Courier New" style="font-size: 14px;">ZDEF 1 LEVELS 1000</font></div>
<div><font face="Courier New" style="font-size: 14px;">TDEF 1 LINEAR 0Z01JAN2017 1DY</font></div>
<div><font face="Courier New" style="font-size: 14px;">vars 2</font></div>
<div><font face="Courier New" style="font-size: 14px;">Geophysical~Data=&gt;smc 1 y,x,z Soil Moisture Content (%)</font></div>
<div><font face="Courier New" style="font-size: 14px;">Time~Information=&gt;ti 0 y,x &nbsp; Time Information (min)</font></div>
<div><font face="Courier New" style="font-size: 14px;">ENDVARS</font></div>
</div>
<div><br>
</div>
<div>―Jennifer</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<div>
<div>On Mar 28, 2017, at 2:20 AM, 田中俊行 &lt;<a href="mailto:priustoshi@gmail.com">priustoshi@gmail.com</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">Dear GrADS users,<br>
<br>
<br>
I want to open GCOM-W1(AMSR2) HDF5 format data with GrADS.<br>
(The sensor observes precipitation, water vapor, sea surface wind speed, SST, soil moisture and snow depth. See,
<a href="http://gcom-w1.jaxa.jp/">http://gcom-w1.jaxa.jp/</a> )<br>
I have never worked on HDF 5 data with GrADS.<br>
<br>
<br>
The ncdump output of soil moisture data is as follows:<br>
<br>
<br>
$ ncdump -c GW1AM2_20170101_01D_EQMA_L3SGSMCHF3300300.h5<br>
netcdf GW1AM2_20170101_01D_EQMA_L3SGSMCHF3300300 {<br>
dimensions:<br>
<span class="Apple-tab-span" style="white-space:pre"></span>phony_dim_0 = 1800 ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span>phony_dim_1 = 3600 ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span>phony_dim_2 = 1 ;<br>
variables:<br>
<span class="Apple-tab-span" style="white-space:pre"></span>short Geophysical\ Data(phony_dim_0, phony_dim_1, phony_dim_2) ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>Geophysical\ Data:SCALE\ FACTOR = 0.1f ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string Geophysical\ Data:UNIT = &quot;%&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span>short Time\ Information(phony_dim_0, phony_dim_1) ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>Time\ Information:SCALE\ FACTOR = 1.f ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string Time\ Information:UNIT = &quot;min&quot; ;<br>
<br>
// global attributes:<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :ProductName = &quot;AMSR2-L3&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :GeophysicalName = &quot;Soil Moisture Content&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :MeanType = &quot;DayMean&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :Projection = &quot;EQR&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :Resolution = &quot;0.1deg&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :ProductVersion = &quot;3&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :AlgorithmVersion = &quot;300&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :ParameterVersion = &quot;300&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :ProductSize_MByte = &quot;24.7&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :AlgorithmDeveloper = &quot;_&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :GranuleID = &quot;GW1AM2_20170101_01D_EQMA_L3SGSMCHF3300300&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :ProductionDateTime = &quot;2017-03-03T04:36:06.000Z&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :ObservationStartDateTime = &quot;2017-01-01T00:00:00.303Z&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :ObservationEndDateTime = &quot;2017-01-01T23:42:37.604Z&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :PGEName = &quot;GCOM-W1 Mission Operation System&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :InputFileName = &quot;GW1AM2_201612312348_172A_L2SGSMCLF3300300.h5,GW1AM2_201701010127_188A_L2SGSMCLF3300300.h5,GW1AM2_201701010306_204A_L2SGSMCLF3300300.h5,GW1AM2_201701010445_220A_L2SGSMCLF3300300.h5,GW1AM2_201701010624_003A_L2SGSMCLF3300300.h5,GW1AM2_201701010803_019A_L2SGSMCLF3300300.h5,GW1AM2_201701010942_035A_L2SGSMCLF3300300.h5,GW1AM2_201701011120_051A_L2SGSMCLF3300300.h5,GW1AM2_201701011259_067A_L2SGSMCLF3300300.h5,GW1AM2_201701011438_083A_L2SGSMCLF3300300.h5,GW1AM2_201701011617_099A_L2SGSMCLF3300300.h5,GW1AM2_201701011756_115A_L2SGSMCLF3300300.h5,GW1AM2_201701011935_131A_L2SGSMCLF3300300.h5,GW1AM2_201701012114_147A_L2SGSMCLF3300300.h5,GW1AM2_201701012253_163A_L2SGSMCLF3300300.h5&quot;
 ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :ProcessingCenter = &quot;JAXA GCOM Project&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :ContactOrganizationName = &quot;JAXA GCOM Project&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :ContactOrganizationTelephone = &quot;&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :StartOrbitNumber = &quot;24605&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :StopOrbitNumber = &quot;24620&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :OrbitDirection = &quot;Ascending&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :PlatformShortName = &quot;GCOM-W1&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :SensorShortName = &quot;AMSR2&quot; ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :ECSDataModel = &quot;B.0&quot; ;<br>
data:<br>
}<br>
<br>
<br>
<br>
And then, I made a descriptor file like this:<br>
<br>
$ more GW1AM2_20170101_01D_EQMA_L3SGSMCHF3300300.ctl<br>
DSET ^GW1AM2_20170101_01D_EQMA_L3SGSMCHF3300300.h5<br>
DTYPE hdf5_grid<br>
TITLE GW1AM2_20170101_01D_EQMA_L3SGSMCHF3300300<br>
UNDEF -32768 _FillValue<br>
UNPACK scale_factor<br>
XDEF 3600 LINEAR 0.0 0.1<br>
YDEF 1800 LINEAR 0.0 0.1<br>
TDEF 1 LINEAR 0Z01JAN2017 1DY<br>
ZDEF 1 LEVELS 1000<br>
vars 1<br>
Gephysical~Data=&gt;smc 1 z,y,x Soil Moisture Content (%)<br>
ENDVARS<br>
<br>
<br>
My GrADS (Version 2.1.0 on macOS 10.12.3) &nbsp;open the descriptor file with no error. But, it has a warning<br>
<span class="Apple-tab-span" style="white-space:pre"></span>&quot;Descriptor File Warning: No offset attribute name in unpack record”<br>
and cannot plot correctly:<br>
<br>
ga-&gt; open GW1AM2_20170101_01D_EQMA_L3SGSMCHF3300300.ctl<br>
Scanning description file: &nbsp;GW1AM2_20170101_01D_EQMA_L3SGSMCHF3300300.ctl<br>
Descriptor File Warning: No offset attribute name in unpack record<br>
Data file GW1AM2_20170101_01D_EQMA_L3SGSMCHF3300300.h5 is open as file 1<br>
LON set to 0 360 <br>
LAT set to 0 179.9 <br>
LEV set to 1000 1000 <br>
Time values set: 2017:1:1:0 2017:1:1:0 <br>
E set to 1 1 <br>
ga-&gt; &nbsp;q file<br>
File 1 : GW1AM2_20170101_01D_EQMA_L3SGSMCHF3300300<br>
&nbsp;Descriptor: GW1AM2_20170101_01D_EQMA_L3SGSMCHF3300300.ctl<br>
&nbsp;Binary: GW1AM2_20170101_01D_EQMA_L3SGSMCHF3300300.h5<br>
&nbsp;Type = Gridded<br>
&nbsp;Xsize = 3600 &nbsp;Ysize = 1800 &nbsp;Zsize = 1 &nbsp;Tsize = 1 &nbsp;Esize = 1<br>
&nbsp;Number of Variables = 1<br>
&nbsp;&nbsp;&nbsp;&nbsp;smc &nbsp;1 &nbsp;z,y,x &nbsp;Soil Moisture Content (%)<br>
ga-&gt; d smc<br>
HDF5-DIAG: Error detected in HDF5 (1.8.12) thread 0:<br>
&nbsp;#000: H5D.c line 334 in H5Dopen2(): not found<br>
&nbsp;&nbsp;&nbsp;major: Dataset<br>
&nbsp;&nbsp;&nbsp;minor: Object not found<br>
&nbsp;#001: H5Gloc.c line 430 in H5G_loc_find(): can't find object<br>
&nbsp;&nbsp;&nbsp;major: Symbol table<br>
&nbsp;&nbsp;&nbsp;minor: Object not found<br>
&nbsp;#002: H5Gtraverse.c line 861 in H5G_traverse(): internal path traversal failed<br>
&nbsp;&nbsp;&nbsp;major: Symbol table<br>
&nbsp;&nbsp;&nbsp;minor: Object not found<br>
&nbsp;#003: H5Gtraverse.c line 641 in H5G_traverse_real(): traversal operator failed<br>
&nbsp;&nbsp;&nbsp;major: Symbol table<br>
&nbsp;&nbsp;&nbsp;minor: Callback failed<br>
&nbsp;#004: H5Gloc.c line 385 in H5G_loc_find_cb(): object 'Gephysical Data' doesn't exist<br>
&nbsp;&nbsp;&nbsp;major: Symbol table<br>
&nbsp;&nbsp;&nbsp;minor: Object not found<br>
Error: H5Dopen2 failed for variable Gephysical Data <br>
Error: Variable Gephysical Data not in HDF5 file<br>
Data Request Error: &nbsp;Error for variable 'smc'<br>
&nbsp;Error ocurred at column 1<br>
DISPLAY error: &nbsp;Invalid expression <br>
&nbsp;Expression = smc<br>
<br>
<br>
Could you suggest some tips for open correctly?<br>
<br>
<br>
Toshiyuki Tanaka<br>
<a href="mailto:priustoshi@gmail.com">priustoshi@gmail.com</a><br>
<br>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
gradsusr@gradsusr.org<br>
http://gradsusr.org/mailman/listinfo/gradsusr<br>
</blockquote>
</div>
<br>
<div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="font-size: 12px; orphans: 2; widows: 2;">--</div>
<div style="font-size: 12px; orphans: 2; widows: 2;">Jennifer Miletta Adams<br>
Center for Ocean-Land-Atmosphere Studies (COLA)<br>
George Mason University<br>
<br>
<br>
</div>
</div>
</div>
</div>
<br>
</div>
</body>
</html>