James,<br><br> Thank you very much for the information. I just had to modify a few things in the control file you had sent me, but it appears to be working properly. The data set does indeed contain salinity values and not indices. I do get one error when I first display the data. This is the error I get:<br>
<br>ga-> d sss <br>HDF5-DIAG: Error detected in HDF5 (1.8.4-patch1) thread 0:<br> #000: H5Pdcpl.c line 1032 in H5Pget_chunk(): not a chunked storage layout<br> major: Invalid arguments to routine<br>
minor: Bad value<br>Contouring at clevs = 25 26 27 28 29 30 31 32 33 34 35 36 37 38<br><br> After the initial display of the data, the error does not seem to pop up again. Do you have any idea what this error is referring to, and is it something to worry about as the data does look to be properly displayed. <br>
<br>Thanks,<br>Jim<br><br> <br><br><br><div class="gmail_quote">On Thu, Feb 2, 2012 at 10:36 AM, James E. Johnson <span dir="ltr"><<a href="mailto:James.Johnson@nasa.gov">James.Johnson@nasa.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is not a particularly hard file to write a .ctl file for as it contains<br>
but a single data set array (variable in netCDF speak) named "l3m_data", you<br>
could have done a h5dump -h Q20112132011243.L3m_MO_EVSCI_V1.2_SSS_1deg | grep<br>
DATASET to find it. The second data set array (variable) is the color palette<br>
that the Aquarius team created for visualizing the data. You could use that to<br>
set up a new grads color table, or just use grads' default color table. But<br>
its also possible that the data are intended to be viewed as an image, since<br>
they included the palette. In that case they should have used the HDF5 image<br>
calls to create the file so that it would be tagged as an image. The values in<br>
the l3m_data array would be the indices to the color palette, but without the<br>
data array to look at I can't say if the values are indices or actually<br>
salinity values.<br>
<br>
This .ctl should read in the data:<br>
<br>
dset Q20112132011243.L3m_MO_EVSCI_V1.2_SSS_1deg<br>
dtype hdf5_grid<br>
title Aquarius Level 3 Surface Salinity<br>
xdef 360 linear -180 1.0<br>
ydef 180 linear -90 1.0<br>
tdef 1 linear 1Aug2011 1mn<br>
vars 1<br>
l3m_data=>dat 0 y,x Surface Salinity<br>
endvars<br>
<br>
<br>
------------------------------------------------------------------------------<br>
<span class="HOEnZb"><font color="#888888">| James E. Johnson | address: |<br>
| Wyle Information Systems, Inc. | NASA Goddard Space Flight Center |<br>
| e-mail: <a href="mailto:james.johnson@nasa.gov">james.johnson@nasa.gov</a> | Distributed Active Archive Center |<br>
| phone: 301-614-5121 | Code 610.2, Bldg 32, Room S130G |<br>
| fax: 301-614-5268 | Greenbelt, MD 20771 |<br>
------------------------------------------------------------------------------<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Thursday, February 02, 2012 09:28:02 am <a href="mailto:jimbo32886@gmail.com">jimbo32886@gmail.com</a> wrote:<br>
> Hello,<br>
><br>
> I had a question for anyone who has had experience taking the header<br>
> output from an HDF5 data file and then constructing a control file based<br>
> off of that information. I am very new to the HDF5 file construct and<br>
> could certainly use some help. I am working with the Level 3 mapped Sea<br>
> Surface Salinity data from the Aquarius mission. I am using GrADS version<br>
> 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>
<br>
</div></div></blockquote></div><br>