<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Hi, Joyce —
<div>The first thing to try is set up aliases for those variable names, which are not GrADS-compliant. Something like this:</div>
<div><font face="Courier"><span style="font-size: 14px;"> Grid/precipitation=>p 0 y,x precipitation</span></font></div>
<div><font face="Courier"><span style="font-size: 14px;"> Grid/probabilityLiquidPrecipitation=>lp 0 y,x liquid precip</span></font></div>
<div>—Jennifer</div>
<div><br>
</div>
<div><br>
<div>
<div>On Dec 9, 2015, at 7:06 PM, Meyerson, Joyce <<a href="mailto:hobo@atmos.ucla.edu">hobo@atmos.ucla.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">Hi Users,<br>
<br>
I have a hdf5 data file from NASA's Global Precipitation Measurement project and I'm having trouble writing the control file. I don't know what I'm doing wrong. Any help would be greatly appreciated. The error I'm getting is
<br>
<br>
<blockquote type="cite">open test.ctl<br>
</blockquote>
Open Error: Invalid variable record<br>
--> The invalid description file record is: <br>
--> Grid/precipitation 0 y,x precipitation<br>
<br>
<br>
DSET ^3B-MO-CA-180W50N180E20N.MS.MRG.3IMERG.20150101-S000000-E235959.000001.V03D.HDF5<br>
OPTIONS template<br>
DTYPE hdf5_grid<br>
TITLE GPM precip<br>
UNDEF -999.0 _FillValue<br>
XDEF 3600 linear -180 0.1<br>
YDEF 300 linear -20 0.1<br>
ZDEF 1 levels 1000<br>
TDEF 1 linear 01dec2015 1dy<br>
VARS 2<br>
Grid/precipitation 0 y,x precipitation<br>
Grid/probabilityLiquidPrecipitation 0 y,x liquid precip<br>
ENDVARS<br>
<br>
Here's the file contents of <br>
h5dump -n 3B-MO-CA-180W50N180E20N.MS.MRG.3IMERG.20150101-S000000-E235959.000001.V03D.HDF5<br>
<br>
HDF5 "3B-MO-CA-180W50N180E20N.MS.MRG.3IMERG.20150101-S000000-E235959.000001.V03D.HDF5" {<br>
FILE_CONTENTS {<br>
group /<br>
group /Grid<br>
dataset /Grid/gaugeRelativeWeighting<br>
dataset /Grid/lat<br>
dataset /Grid/lon<br>
dataset /Grid/precipitation<br>
dataset /Grid/probabilityLiquidPrecipitation<br>
dataset /Grid/randomError<br>
}<br>
}<br>
<br>
and the dataset<br>
h5dump -H -d/Grid/precipitation 3B-MO-CA-180W50N180E20N.MS.MRG.3IMERG.20150101-S000000-E235959.000001.V03D.HDF5<br>
<br>
HDF5 "3B-MO-CA-180W50N180E20N.MS.MRG.3IMERG.20150101-S000000-E235959.000001.V03D.HDF5" {<br>
DATASET "/Grid/precipitation" {<br>
DATATYPE H5T_IEEE_F32LE<br>
DATASPACE SIMPLE { ( 3600, 300 ) / ( 3600, 300 ) }<br>
ATTRIBUTE "CodeMissingValue" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 8;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "DIMENSION_LIST" {<br>
DATATYPE H5T_VLEN { H5T_REFERENCE}<br>
DATASPACE SIMPLE { ( 2 ) / ( 2 ) }<br>
}<br>
ATTRIBUTE "DimensionNames" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 8;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Units" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 6;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "_FillValue" {<br>
DATATYPE H5T_IEEE_F32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "coordinates" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 8;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "units" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 6;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
}<br>
}<br>
<br>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
http://gradsusr.org/mailman/listinfo/gradsusr<br>
</blockquote>
</div>
<br>
</div>
</body>
</html>