John,<br><br> Thank you very much for your quick response. When I do the 'h5ls -r' command on the file I get the following:<br><br>h5ls -r Q20112132011243.L3m_MO_EVSCI_V1.2_SSS_1deg <br>/ Group<br>
/l3m_data Dataset {180, 360}<br>/palette Dataset {3, 256}<br><br> I suppose to clarify my previous question I am confused on what I look at in the dump file to get the parameters needed for the control file.<br>
<br>Thanks,<br>Jim<br><br> <br><br><br><div class="gmail_quote">On Thu, Feb 2, 2012 at 10:01 AM, Huddleston,John <span dir="ltr"><<a href="mailto:John.Huddleston@colostate.edu">John.Huddleston@colostate.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Jimbo<br>
<br>
<br>
<br>
You need to do the 'h5ls -r' command on one file to get the HDFEOS descriptors correctly.<br>
<br>
<br>
<br>
Here is a control set for level 3 of the ozone Aura instruments<br>
<br>
<br>
<br>
dset OMI-Aura_L3-OMTO3e_2009m0806_v003-2009m0808t024231.he5<br>
dtype hdf5_grid<br>
title ColumnAmountAerosol 0.25x0.25 deg<br>
unpack ScaleFactor Offset<br>
undef -1.26765e+30 MissingValue<br>
undef -1.26765e+30 _FillValue<br>
xdef 1440 linear -179.875 0.25<br>
ydef 720 linear -89.875 0.25<br>
zdef 1 linear 1 1<br>
tdef 1 linear 00:00Z06aug2009 1dy<br>
vars 4<br>
/HDFEOS/GRIDS/OMI~Column~Amount~O3/Data~Fields/ColumnAmountO3=>cao3 0 y,x cao3<br>
/HDFEOS/GRIDS/OMI~Column~Amount~O3/Data~Fields/SolarZenithAngle=>sza 0 y,x sza<br>
/HDFEOS/GRIDS/OMI~Column~Amount~O3/Data~Fields/ViewingZenithAngle=>vza 0 y,x vza<br>
/HDFEOS/GRIDS/OMI~Column~Amount~O3/Data~Fields/RadiativeCloudFraction=>rcf 0 y,x rcf<br>
endvars<br>
<br>
<br>
<br>
Your h5ls will show spaces in the dataset name as '\ ' and you replace them with the tilde.<br>
<br>
<br>
<br>
John Huddleston, PhD<br>
<br>
________________________________<br>
From: <a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a> [<a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a>] on behalf of <a href="mailto:jimbo32886@gmail.com">jimbo32886@gmail.com</a> [<a href="mailto:jimbo32886@gmail.com">jimbo32886@gmail.com</a>]<br>
Sent: Thursday, February 02, 2012 7:28 AM<br>
To: GrADS Users Forum<br>
Subject: [gradsusr] Creating Data Descriptor File For HDF5 Formatted Data<br>
<div><div class="h5"><br>
Hello,<br>
<br>
I had a question for anyone who has had experience taking the header output from an HDF5 data file and then constructing a control file based off of that information. I am very new to the HDF5 file construct and could certainly use some help. I am working with the Level 3 mapped Sea Surface Salinity data from the Aquarius mission. I am using GrADS version 2.0.a9.oga.1. The "h5dump" for the data file is as follows:<br>
<br>
HDF5 "Q20112132011243.L3m_MO_EVSCI_V1.2_SSS_1deg" {<br>
GROUP "/" {<br>
ATTRIBUTE "Data Bins" {<br>
DATATYPE H5T_STD_I32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Data Center" {<br>
DATATYPE H5T_STD_I8LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Data Maximum" {<br>
DATATYPE H5T_IEEE_F32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Data Minimum" {<br>
DATATYPE H5T_IEEE_F32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Easternmost Longitude" {<br>
DATATYPE H5T_IEEE_F32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "End Day" {<br>
DATATYPE H5T_STD_I16LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "End Millisec" {<br>
DATATYPE H5T_STD_I32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "End Orbit" {<br>
DATATYPE H5T_STD_I32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "End Time" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 17;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "End Year" {<br>
DATATYPE H5T_STD_I16LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Input Files" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 39;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Input Parameters" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 422;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Intercept" {<br>
DATATYPE H5T_IEEE_F32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "L2 Flag Names" {<br>
DATATYPE H5T_STD_I8LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Latitude Step" {<br>
DATATYPE H5T_IEEE_F32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Latitude Units" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 14;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Longitude Step" {<br>
DATATYPE H5T_IEEE_F32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Longitude Units" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 13;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Map Projection" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 24;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Measure" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 5;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Mission" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 15;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Mission Characteristics" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 137;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Northernmost Latitude" {<br>
DATATYPE H5T_IEEE_F32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Number of Columns" {<br>
DATATYPE H5T_STD_I32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Number of Lines" {<br>
DATATYPE H5T_STD_I32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Orbit" {<br>
DATATYPE H5T_STD_I32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Parameter" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 21;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Period End Day" {<br>
DATATYPE H5T_STD_I16LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Period End Year" {<br>
DATATYPE H5T_STD_I16LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Period Start Day" {<br>
DATATYPE H5T_STD_I16LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Period Start Year" {<br>
DATATYPE H5T_STD_I16LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Processing Control" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 60;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Processing Time" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 17;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Processing Version" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 5;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Product Name" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 43;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Product Type" {<br>
DATATYPE H5T_STD_I8LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "SW Point Latitude" {<br>
DATATYPE H5T_IEEE_F32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "SW Point Longitude" {<br>
DATATYPE H5T_IEEE_F32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Scaling" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 7;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Scaling Equation" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 47;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Sensor" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 9;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Sensor Characteristics" {<br>
DATATYPE H5T_STD_I8LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Sensor Name" {<br>
DATATYPE H5T_STD_I8LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Slope" {<br>
DATATYPE H5T_IEEE_F32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Software Name" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 7;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Software Version" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 5;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Southernmost Latitude" {<br>
DATATYPE H5T_IEEE_F32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Start Day" {<br>
DATATYPE H5T_STD_I16LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Start Millisec" {<br>
DATATYPE H5T_STD_I32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Start Orbit" {<br>
DATATYPE H5T_STD_I32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Start Time" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 17;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Start Year" {<br>
DATATYPE H5T_STD_I16LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Station Latitude" {<br>
DATATYPE H5T_IEEE_F32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Station Longitude" {<br>
DATATYPE H5T_IEEE_F32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Station Name" {<br>
DATATYPE H5T_STD_I8LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Suggested Image Scaling Applied" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 3;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Suggested Image Scaling Maximum" {<br>
DATATYPE H5T_IEEE_F32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Suggested Image Scaling Minimum" {<br>
DATATYPE H5T_IEEE_F32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Suggested Image Scaling Type" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 5;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Title" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 31;<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 4;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Westernmost Longitude" {<br>
DATATYPE H5T_IEEE_F32LE<br>
DATASPACE SCALAR<br>
}<br>
DATASET "l3m_data" {<br>
DATATYPE H5T_IEEE_F32LE<br>
DATASPACE SIMPLE { ( 180, 360 ) / ( 180, 360 ) }<br>
ATTRIBUTE "Intercept" {<br>
DATATYPE H5T_IEEE_F32LE<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Scaling" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 7;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Scaling Equation" {<br>
DATATYPE H5T_STRING {<br>
STRSIZE 47;<br>
STRPAD H5T_STR_NULLTERM;<br>
CSET H5T_CSET_ASCII;<br>
CTYPE H5T_C_S1;<br>
}<br>
DATASPACE SCALAR<br>
}<br>
ATTRIBUTE "Slope" {<br>
DATATYPE H5T_IEEE_F32LE<br>
DATASPACE SCALAR<br>
}<br>
}<br>
DATASET "palette" {<br>
DATATYPE H5T_STD_U8LE<br>
DATASPACE SIMPLE { ( 3, 256 ) / ( 3, 256 ) }<br>
}<br>
}<br>
}<br>
<br>
<br>
<br>
Any input would be greatly appreciated!<br>
<br>
Thanks,<br>
Jim<br>
<br>
<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" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div>