<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”. </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. </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, -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(): </div>
<div><br>
</div>
<div>ga-> d maskout(0.1*smc,smc) </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: </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=>smc 1 y,x,z Soil Moisture Content (%)</font></div>
<div><font face="Courier New" style="font-size: 14px;">Time~Information=>ti 0 y,x 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, 田中俊行 <<a href="mailto:priustoshi@gmail.com">priustoshi@gmail.com</a>> 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 = "%" ;<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 = "min" ;<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 = "AMSR2-L3" ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :GeophysicalName = "Soil Moisture Content" ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :MeanType = "DayMean" ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :Projection = "EQR" ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :Resolution = "0.1deg" ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :ProductVersion = "3" ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :AlgorithmVersion = "300" ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :ParameterVersion = "300" ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :ProductSize_MByte = "24.7" ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :AlgorithmDeveloper = "_" ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :GranuleID = "GW1AM2_20170101_01D_EQMA_L3SGSMCHF3300300" ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :ProductionDateTime = "2017-03-03T04:36:06.000Z" ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :ObservationStartDateTime = "2017-01-01T00:00:00.303Z" ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :ObservationEndDateTime = "2017-01-01T23:42:37.604Z" ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :PGEName = "GCOM-W1 Mission Operation System" ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :InputFileName = "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"
;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :ProcessingCenter = "JAXA GCOM Project" ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :ContactOrganizationName = "JAXA GCOM Project" ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :ContactOrganizationTelephone = "" ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :StartOrbitNumber = "24605" ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :StopOrbitNumber = "24620" ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :OrbitDirection = "Ascending" ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :PlatformShortName = "GCOM-W1" ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :SensorShortName = "AMSR2" ;<br>
<span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>string :ECSDataModel = "B.0" ;<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=>smc 1 z,y,x Soil Moisture Content (%)<br>
ENDVARS<br>
<br>
<br>
My GrADS (Version 2.1.0 on macOS 10.12.3) open the descriptor file with no error. But, it has a warning<br>
<span class="Apple-tab-span" style="white-space:pre"></span>"Descriptor File Warning: No offset attribute name in unpack record”<br>
and cannot plot correctly:<br>
<br>
ga-> open GW1AM2_20170101_01D_EQMA_L3SGSMCHF3300300.ctl<br>
Scanning description file: 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-> q file<br>
File 1 : GW1AM2_20170101_01D_EQMA_L3SGSMCHF3300300<br>
Descriptor: GW1AM2_20170101_01D_EQMA_L3SGSMCHF3300300.ctl<br>
Binary: GW1AM2_20170101_01D_EQMA_L3SGSMCHF3300300.h5<br>
Type = Gridded<br>
Xsize = 3600 Ysize = 1800 Zsize = 1 Tsize = 1 Esize = 1<br>
Number of Variables = 1<br>
smc 1 z,y,x Soil Moisture Content (%)<br>
ga-> d smc<br>
HDF5-DIAG: Error detected in HDF5 (1.8.12) thread 0:<br>
#000: H5D.c line 334 in H5Dopen2(): not found<br>
major: Dataset<br>
minor: Object not found<br>
#001: H5Gloc.c line 430 in H5G_loc_find(): can't find object<br>
major: Symbol table<br>
minor: Object not found<br>
#002: H5Gtraverse.c line 861 in H5G_traverse(): internal path traversal failed<br>
major: Symbol table<br>
minor: Object not found<br>
#003: H5Gtraverse.c line 641 in H5G_traverse_real(): traversal operator failed<br>
major: Symbol table<br>
minor: Callback failed<br>
#004: H5Gloc.c line 385 in H5G_loc_find_cb(): object 'Gephysical Data' doesn't exist<br>
major: Symbol table<br>
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: Error for variable 'smc'<br>
Error ocurred at column 1<br>
DISPLAY error: Invalid expression <br>
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>