<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 Jennifer,
<div><br>
</div>
<div>
<div>
<div>That did the trick. Thank you.</div>
<div><br>
</div>
<div>Joyce</div>
<div><br>
</div>
<div>On Dec 23, 2015, at 5:11 AM, Jennifer M Adams <<a href="mailto:jadams21@gmu.edu">jadams21@gmu.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Hi, Joyce —
<div>Try changing the variable declaration from “y,x” to “x,y” and see if that fixes it.</div>
<div>—Jennifer</div>
<div><br>
</div>
<div>
<div>
<div>On Dec 22, 2015, at 9:28 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">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Hi Jennifer,
<div><br>
</div>
<div>I removed _FillValue and most of the errors resolved however I'm left with the error below. The grid attributes are from 20N, 50N, -180, 180. Is there something I'm not seeing in the control file?</div>
<div><br>
</div>
<div>
<div>ga-> d pr</div>
<div>HDF5-DIAG: Error detected in HDF5 (1.8.5-patch1) thread 0:</div>
<div> #000: ../../src/H5Dio.c line 153 in H5Dread(): selection+offset not within extent</div>
<div> major: Dataspace</div>
<div> minor: Out of range</div>
<div>HDF5 read error for float data </div>
<div>Data Request Error: Error for variable 'pr'</div>
<div> Error ocurred at column 1</div>
<div>DISPLAY error: Invalid expression </div>
<div> Expression = pr</div>
<div><br>
</div>
<div>*********************</div>
<div>
<div>DSET ^3B-MO-CA-180W50N180E20N.MS.MRG.3IMERG.20150101-S000000-E235959.000001.V03D.HDF5</div>
<div>OPTIONS template</div>
<div>DTYPE hdf5_grid</div>
<div>TITLE GPM precip</div>
<div>UNDEF -9999.9</div>
<div>XDEF 3600 linear -180 0.1</div>
<div>YDEF 300 linear 20 0.1</div>
<div>ZDEF 1 levels 1000</div>
<div>TDEF 100 linear 00Z01jan2015 6hr</div>
<div>VARS 1</div>
<div>Grid/precipitation=>pr 0 y,x precipitation mm/hr</div>
<div>ENDVARS</div>
</div>
<div>********************</div>
<div>
<div><br>
</div>
<div>> h5dump 3B-MO-CA-180W50N180E20N.MS.MRG.3IMERG.20150101-S000000-E235959.000001.V03D.HDF5 |more</div>
<div>HDF5 "3B-MO-CA-180W50N180E20N.MS.MRG.3IMERG.20150101-S000000-E235959.000001.V03D.HDF5" {</div>
<div>GROUP "/" {</div>
<div> ATTRIBUTE "FileHeader" {</div>
<div> DATATYPE H5T_STRING {</div>
<div> STRSIZE 563;</div>
<div> STRPAD H5T_STR_NULLTERM;</div>
<div> CSET H5T_CSET_ASCII;</div>
<div> CTYPE H5T_C_S1;</div>
<div> }</div>
<div> DATASPACE SCALAR</div>
<div> DATA {</div>
<div> (0): "DOI=10.5067/GPM/IMERG/HH/3B;</div>
<div> DOIauthority=<a href="http://dx.doi/org/">http://dx.doi/org/</a>;</div>
<div> DOIshortName=3IMERGM;</div>
<div> AlgorithmID=3IMERGMCAG;</div>
<div> AlgorithmVersion=3IMERGM_1.0;</div>
<div> FileName=3B-MO.MS.MRG.3IMERG.20150101-S000000-E235959.01.V03D.HDF5.ps.hdf;</div>
<div> SatelliteName=MULTI;</div>
<div> InstrumentName=MERGED;</div>
<div> GenerationDateTime=2015-12-03T21:21:48.000Z;</div>
<div> StartGranuleDateTime=2015-01-01T00:00:00.000Z;</div>
<div> StopGranuleDateTime=2015-01-31T23:59:59.999Z;</div>
<div> GranuleNumber=;</div>
<div> NumberOfSwaths=0;</div>
<div> NumberOfGrids=1;</div>
<div> GranuleStart=;</div>
<div> TimeInterval=MONTH;</div>
<div> ProcessingSystem=PPS;</div>
<div> ProductVersion=V03D;</div>
<div> EmptyGranule=NOT_EMPTY;</div>
<div> MissingData=;</div>
<div> "</div>
<div> }</div>
<div> }</div>
<div> ATTRIBUTE "FileInfo" {</div>
<div> DATATYPE H5T_STRING {</div>
<div> STRSIZE 228;</div>
<div> STRPAD H5T_STR_NULLTERM;</div>
<div> CSET H5T_CSET_ASCII;</div>
<div> CTYPE H5T_C_S1;</div>
<div> }</div>
<div> DATASPACE SCALAR</div>
<div> DATA {</div>
<div> (0): "DataFormatVersion=bh;</div>
<div> TKCodeBuildVersion=1;</div>
<div> MetadataVersion=bh;</div>
<div> FormatPackage=HDF5-1.8.9;</div>
<div> BlueprintFilename=GPM.V1.3IMERGM.blueprint.xml;</div>
<div> BlueprintVersion=BV_42;</div>
<div> TKIOVersion=3.60.8;</div>
<div> MetadataStyle=PVL;</div>
<div> EndianType=LITTLE_ENDIAN;</div>
<div> "</div>
<div> }</div>
<div> }</div>
</div>
<div>
<div> GROUP "Grid" {</div>
<div> ATTRIBUTE "GridHeader" {</div>
<div> DATATYPE H5T_STRING {</div>
<div> STRSIZE 257;</div>
<div> STRPAD H5T_STR_NULLTERM;</div>
<div> CSET H5T_CSET_ASCII;</div>
<div> CTYPE H5T_C_S1;</div>
<div> }</div>
<div> DATASPACE SCALAR</div>
<div> DATA {</div>
<div> (0): "BinMethod=ARITHMETIC_MEAN;</div>
<div> Registration=CENTER;</div>
<div> LatitudeResolution=0.1;</div>
<div> LongitudeResolution=0.1;</div>
<div> NorthBoundingCoordinate=50.000000;</div>
<div> SouthBoundingCoordinate=20.000000;</div>
<div> EastBoundingCoordinate=180.000000;</div>
<div> WestBoundingCoordinate=-180.000000;</div>
<div> Origin=SOUTHWEST;</div>
<div> "</div>
<div> }</div>
<div> }</div>
</div>
<div><br>
</div>
<div>
<div>On Dec 10, 2015, at 4:59 AM, Jennifer M Adams <<a href="mailto:jadams21@gmu.edu">jadams21@gmu.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div 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>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<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>