[gradsusr] how to open he5 data in grads
James E. Johnson
James.Johnson at nasa.gov
Fri Mar 9 10:04:06 EST 2012
On Friday, March 09, 2012 05:25:31 am Midhun M wrote:
> I need to open multiple he5 files in grads. If anybody know how to use
> template option for multiple he5 file please help me.
>
> datasets can be obtained at
> ftp://l4ftl01.larc.nasa.gov/tesl1l2l3/TES/TL3HDOM.002/2004.09.03/TES-Aura_L
> 3-HDO-M2004m09_F01_07.he5
> ftp://l4ftl01.larc.nasa.gov/tesl1l2l3/TES/TL3HDOM.002/2004.10.09/TES-Aura_
> L3-HDO-M2004m10_F01_07.he5
> ftp://l4ftl01.larc.nasa.gov/tesl1l2l3/TES/TL3HDOM.002/2004.11.04/TES-Aura_
> L3-HDO-M2004m11_F01_07.he5
>
> regards,
You need to write a GrADS .ctl file to read the data. Here is a .ctl that will
read them:
---------- tesl3hdo.ctl --------------
DSET ^TES-Aura_L3-HDO-M%y4m%m2_F01_07.he5
OPTIONS template
DTYPE hdf5_grid
TITLE TES L3 Monthly Deuterated Water (HDO) Collection 002 (F01_07)
UNDEF -999.0 _FillValue
XDEF 90 linear -180 4.0
YDEF 83 linear -82 2.0
ZDEF 15 levels 825.402, 681.291, 464.16, 316.227, 215.444, 146.779,
100, 68.1295, 46.4158, 31.6229, 21.5443, 14.678, 10,
6.81291, 4.6416
TDEF 200 linear jul2004 1mo
VARS 10
/HDFEOS/GRIDS/NadirGrid/Data~Fields/HDO=>hdo 15 x,y,z
HDO mixing ratio profile
/HDFEOS/GRIDS/NadirGrid/Data~Fields/HDOStdDeviation=>hdosd 15 x,y,z
HDO mixing ratio profile standard deviation
/HDFEOS/GRIDS/NadirGrid/Data~Fields/HDOMinimum=>hdomn 15 x,y,z
HDO mixing ratio profile minimum
/HDFEOS/GRIDS/NadirGrid/Data~Fields/HDOMaximum=>hdomx 15 x,y,z
HDO mixing ratio profile maximum
/HDFEOS/GRIDS/NadirGrid/Data~Fields/HDODataCount=>hdoct 15 x,y,z
HDO mixing ratio profile number
/HDFEOS/GRIDS/NadirGrid/Data~Fields/TotalColumnDensity=>totden 0 x,y
HDO total column density
/HDFEOS/GRIDS/NadirGrid/Data~Fields/TotColDensStdDeviation=>totdensd 0 y,x
HDO total column density standard deviation
/HDFEOS/GRIDS/NadirGrid/Data~Fields/TotColDensMinimum=>totdenmn 0 y,x
HDO total column density minimum
/HDFEOS/GRIDS/NadirGrid/Data~Fields/TotColDensMaximum=>totdenmx 0 y,x
HDO total column density maximum
/HDFEOS/GRIDS/NadirGrid/Data~Fields/TotColDensDataCount=>totdenct 0 y,x
HDO total column density number
ENDVARS
---------- tesl3hdo.ctl --------------
start grads (make sure it is version 2.0.a7 or higher for HDF5 support)
$ grads
Grid Analysis and Display System (GrADS) Version 2.0.0
Copyright (c) 1988-2011 by Brian Doty and the
Institute for Global Environment and Society (IGES)
GrADS comes with ABSOLUTELY NO WARRANTY
See file COPYRIGHT for more information
Config: v2.0.0 little-endian readline printim grib2 netcdf hdf4-sds hdf5
opendap-grids,stn athena geotiff shapefile
Issue 'q config' command for more detailed configuration information
Landscape mode? ('n' for portrait):
GX Package Initialization: Size = 11 8.5
ga-> open tesl3hdo
Scanning description file: tesl3hdo
Data file TES-Aura_L3-HDO-M%y4m%m2_F01_07.he5 is open as file 1
LON set to 0 360
LAT set to -82 82
LEV set to 825.402 825.402
Time values set: 2004:7:1:0 2004:7:1:0
E set to 1 1
ga-> set lon -180 180
LON set to -180 180
ga-> set time oct2004
Time values set: 2004:10:1:0 2004:10:1:0
ga-> set gxout grfill
ga-> set z 2
LEV set to 681.291 681.291
ga-> d hdo
you should have a plot of HDO at 681 hPa pressure level.
------------------------------------------------------------------------------
| James E. Johnson | address: |
| Wyle Information Systems, Inc. | NASA Goddard Space Flight Center |
| e-mail: james.johnson at nasa.gov | Distributed Active Archive Center |
| phone: 301-614-5121 | Code 610.2, Bldg 32, Room S130G |
| fax: 301-614-5268 | Greenbelt, MD 20771 |
------------------------------------------------------------------------------
More information about the gradsusr
mailing list