[gradsusr] Control File Issues for HDF5 file

James Spinks jspin881 at hotmail.com
Sat May 11 14:06:20 EDT 2019


Just verifying I came across the exact same issue and the response from Jennifer in modifying the control file with the new attributes worked for me.

Thanks!

________________________________
From: gradsusr <gradsusr-bounces at gradsusr.org> on behalf of Adams, Jennifer M. (GSFC-610.2)[ADNET SYSTEMS INC] <jennifer.m.adams at nasa.gov>
Sent: Wednesday, April 24, 2019 8:47 AM
To: GrADS Users Forum
Subject: Re: [gradsusr] Control File Issues for HDF5 file


Try changing your variable declarations to what is copied below.
No upper case letters in the alias varname, and the shape is t,y,x.



If those changes don’t work, please send the complete output from ‘q config’.

—Jennifer



VARS 5

/Grid/HQprecipitation=>hqp       0  t,x,y  HQ precipitation

/Grid/IRprecipitation=>irp       0  t,x,y  IR precipitation

/Grid/precipitationCal=>calp     0  t,x,y  cal precipitation

/Grid/precipitationUncal=>uncalp 0  t,x,y  uncal precipitation

/Grid/randomError=>error         0  t,x,y  random error

ENDVARS











--
Jennifer Miletta Adams
ADNET Systems, Inc.
NASA/GSFC, Code 610.2

Building 32, Room S159
(301) 614-6070





From: gradsusr <gradsusr-bounces at gradsusr.org> on behalf of Govind Jha <govind_jha65 at yahoo.com>
Reply-To: Govind Jha <govind_jha65 at yahoo.com>, GrADS Users Forum <gradsusr at gradsusr.org>
Date: Wednesday, April 24, 2019 at 6:43 AM
To: "gradsusr at gradsusr.org" <gradsusr at gradsusr.org>, Arlindo Da Silva <dasilva at alum.mit.edu>
Subject: [gradsusr] Control File Issues for HDF5 file



Dear Sir,



Greetings



I am trying to open HDF5 file from GPM IMERG file( 3B-HHR.MS.MRG.3IMERG.20170101.0000.V06A.HDF5) using GraDS version(2.0.2.oga.2). The grads control file is as follow:





DSET ^3B-HHR.MS.MRG.3IMERG.20170101.0000.V06A.HDF5



DTYPE hdf5_grid



TITLE IMERG sample



UNDEF -9999.9



XDEF 3600 linear -179.95 0.1



YDEF 1800 linear -89.95 0.1



ZDEF 1 levels 1 1



TDEF 1 linear 00:00Z01jan2017 30mn



VARS 5



/Grid/HQprecipitation=>HQp 0 x,y HQ precipitation



/Grid/IRprecipitation=>IRp 0 x,y IR precipitation



/Grid/precipitationCal=>Calp 0 x,y cal precipitation



/Grid/precipitationUncal=>Uncalp 0 x,y uncal precipitation



/Grid/randomError=>error 0 x,y random error



ENDVARS



When I open this file in grads. It successfully works. But While trying to display a variable called calp is shows the following error:



open imerg17.ctl
Scanning description file:  imerg17.ctl
Data file 3B-HHR.MS.MRG.3IMERG.20170101.0000.V06A.HDF5 is open as file 1
LON set to 0 360
LAT set to -89.95 89.95
LEV set to 1 1
Time values set: 2017:1:1:0 2017:1:1:0
E set to 1 1
ga-> q file
File 1 : IMERG sample
 Descriptor: imerg17.ctl
 Binary: 3B-HHR.MS.MRG.3IMERG.20170101.0000.V06A.HDF5
 Type = Gridded
 Xsize = 3600  Ysize = 1800  Zsize = 1  Tsize = 1  Esize = 1
 Number of Variables = 5
    hqp  0  x,y  HQ precipitation
    irp  0  x,y  IR precipitation
    calp  0  x,y  cal precipitation
    uncalp  0  x,y  uncal precipitation
    error  0  x,y  random error

ga-> d calp

HDF5-DIAG: Error detected in HDF5 (1.8.12) thread 0:
 #000: H5Dio.c line 158 in H5Dread(): selection+offset not within extent
   major: Dataspace
   minor: Out of range
HDF5 read error for float data
Data Request Error:  Error for variable 'calp'
 Error ocurred at column 1
DISPLAY error:  Invalid expression
 Expression = calp



Any help would be highly appreciated.







With Regards

 ..................................................

Govind Kumar Jha

...................................................

 Assistant Meteorologist

(Agro-Meteorology Section)
Department of Hydrology and Meteorology (DHM)
P.O. Box 406 Naxal, Nagpokhari, Kathmandu, Nepal
Tel: +977 1 4436272, 4432409
Fax: +977 1 4429919, 4432137
www.dhm.gov.np<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.dhm.gov.np_&d=DwMFaQ&c=ApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk&r=M2mFZsxo0ZoztoK2Lyoypu1kKkBVKyEoM9CXGWO42zk&m=7jWTkwcl0yIOHgkl87JI7fwwbzBF_HrseRGkwGoOzU4&s=yV-KEkrHL0Ru5nmcBCFUIfDY1loFJ7Xp0Rd1AZ8uk0c&e=>, www.hydrology.gov.np<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.hydrology.gov.np_&d=DwMFaQ&c=ApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk&r=M2mFZsxo0ZoztoK2Lyoypu1kKkBVKyEoM9CXGWO42zk&m=7jWTkwcl0yIOHgkl87JI7fwwbzBF_HrseRGkwGoOzU4&s=CnP2sExAZA25ONtyTteg6O-pi07-XShppjTvVJEah7E&e=>, www.mfd.gov.np<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.mfd.gov.np_&d=DwMFaQ&c=ApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk&r=M2mFZsxo0ZoztoK2Lyoypu1kKkBVKyEoM9CXGWO42zk&m=7jWTkwcl0yIOHgkl87JI7fwwbzBF_HrseRGkwGoOzU4&s=P6pEsYR09RwANAXPjSJioT2WbBnZVizgb5sIhvoxYPw&e=>

.............................................................................

 Mobile Number: 9779846265433

 Email Id: govind_jha65 at yahoo.com

..........................................................

[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png]<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>     Virus-free. www.avg.com<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190511/86c91fe1/attachment-0001.html>


More information about the gradsusr mailing list