<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>Just getting back to this issue. I am now able to open the control file but when I try to display the variable pr I get the error below. I've tried on Linux and Mac with the same error. </div>
<div>Do you see what the problem is?</div>
<div><br>
</div>
<div>Joyce</div>
<div><br>
</div>
<div> (GrADS) Linux-Version 2.0.a9, Mac- Version 2.0.1</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 _FillValue</div>
<div>XDEF 3600 linear -179.95 0.1</div>
<div>YDEF 300 linear 20.05 0.1</div>
<div>ZDEF 1 levels 1000</div>
<div>TDEF 1 linear 01dec2015 1dy</div>
<div>VARS 1</div>
<div>Grid/precipitation=>pr 0 y,x precipitation mm/hr</div>
<div>ENDVARS</div>
</div>
<div>**************</div>
<div>
<div>ga-> d pr</div>
<div>HDF5-DIAG: Error detected in HDF5 (1.8.5-patch1) thread 0:</div>
<div> #000: ../../src/H5A.c line 615 in H5Aopen_by_name(): can't open attribute</div>
<div> major: Attribute</div>
<div> minor: Can't open object</div>
<div> #001: ../../src/H5A.c line 860 in H5A_open_by_name(): object not found</div>
<div> major: Attribute</div>
<div> minor: Object not found</div>
<div> #002: ../../src/H5Gloc.c line 480 in H5G_loc_find(): can't find object</div>
<div> major: Symbol table</div>
<div> minor: Object not found</div>
<div> #003: ../../src/H5Gtraverse.c line 964 in H5G_traverse(): internal path traversal failed</div>
<div> major: Symbol table</div>
<div> minor: Object not found</div>
<div> #004: ../../src/H5Gtraverse.c line 714 in H5G_traverse_real(): can't look up component</div>
<div> major: Symbol table</div>
<div> minor: Object not found</div>
<div> #005: ../../src/H5Gobj.c line 1143 in H5G_obj_lookup(): can't locate object</div>
<div> major: Symbol table</div>
<div> minor: Object not found</div>
<div> #006: ../../src/H5Gstab.c line 839 in H5G_stab_lookup(): can't read message</div>
<div> major: Symbol table</div>
<div> minor: Unrecognized message</div>
<div> #007: ../../src/H5Omessage.c line 484 in H5O_msg_read(): unable to read object header message</div>
<div> major: Object header</div>
<div> minor: Read failed</div>
<div> #008: ../../src/H5Omessage.c line 539 in H5O_msg_read_oh(): message type not found</div>
<div> major: Object header</div>
<div> minor: Object not found</div>
<div>HDF5 attribute named "_FillValue" does not exist</div>
<div>h5setup warning: Could not retrieve undef attribute "_FillValue" -- using -9999.9 instead</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><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>
http://gradsusr.org/mailman/listinfo/gradsusr<br>
</blockquote>
</div>
<br>
</div>
</body>
</html>