<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Respected Jennifer,<br>
<br>
Thanks for your suggestions. I tried with variable as:<br>
<br>
Actual_var_name_in_hdf_file=>npp 0 y,x<br>
<br>
It is opening the data file and plots. But 'q attr' does not give
anything:<br>
<br>
ga-> q attr<br>
No Attributes for File 1 :<br>
<br>
Now I could get the actual name of variable as in the HDF data file
using a 'hdf_read' code, which I was using for reading some other HDF5
data. But, h5dump did not worked (which I had tried earlier)!<br>
<br>
I checked with different UNDEF values, it display the same range of
values. so, its OK.<br>
<br>
Whether "0 y,x" only will take care of non-standard binary (i.e.
16-bits signed integer in this case)? The plot is showing data range
0-10000. Actual value will go max. upto 32767, all negative values are
missing data as per the data documentations.<br>
<br>
Here is the sample data I got from hdf_read:<br>
<br>
File: /home/mm/test/test.HDF<br>
<br>
Array: NPP_VGT1_19980401SD_0<br>
reference = 2<br>
number type = 16-bit signed integer<br>
number of dimensions = 2 (3222x3275)<br>
number of attributes = 0<br>
<br>
Dimension 1: fakeDim0<br>
size = 3222<br>
number type = number-type not set<br>
number of attributes = 0<br>
<br>
Dimension 2: fakeDim1<br>
size = 3275<br>
number type = number-type not set<br>
number of attributes = 0<br>
<br>
Data:<br>
<br>
-2 -3 0 0 0 0 0 0 0
0 0<br>
0 0 0 0 0 0 0 0 145
357 177<br>
0 0 0 0 0 0 0 0 0
64 114<br>
48 64 131 132 31 48 232 198 81
31 48<br>
65 183 233 149 185 134 100 168 49
0 0<br>
0 0 0 0 0 205 170 153 101
67 67<br>
85 85 85 85 85 206 102 102 32
50 0<br>
0 0 0 0 0 0 0 33 0
0 0<br>
0 0 0 0 0 0 -3 0 -3
-3 -3<br>
0 86 156 86 0 0 0 0 0
-3 0<br>
-2 -2 -2 -2 -2 -4 -2 -3 0
0 0<br>
0 -2 -3 -2 -2 -3 0 0 0
-3 -3<br>
............... .... ...<br>
<br>
Thanks again.<br>
<br>
Regards,<br>
<br>
Mahakur<br>
<br>
Jennifer M. Adams wrote:
<blockquote cite="midC643C93B-C739-4DBB-90DC-249F47E44165@cola.iges.org"
type="cite"><br>
<div>
<div>On Aug 28, 2006, at 8:22 AM, M.Mahakur wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="margin: 0px;">GrADS Users:</div>
<div style="margin: 0px; min-height: 14px;"><br>
</div>
<div style="margin: 0px;">I<span class="Apple-converted-space"> </span>created
a ctl for the HDF (Gridded) data file. But, it shows entire</div>
<div style="margin: 0px;">domain as undefined!! The data is "16
bits signed short integer". What</div>
<div style="margin: 0px;">should I write in the ctl for 'OPTIONS'
and 'variable units' for</div>
<div style="margin: 0px;">non-standard binary (as I guess I have to
treat like non-standard</div>
<div style="margin: 0px;">binary!!).</div>
</blockquote>
<div>With 'dtype hdfsds', you use the variable declaration as
documented here:</div>
<div> <a href="http://iges.org/grads/gadoc/SDFdescriptorfile.html">http://iges.org/grads/gadoc/SDFdescriptorfile.html</a></div>
<div><br class="khtml-block-placeholder">
</div>
<div>For your data set, it will probably look like this:</div>
<div>npp 0 y,x npp</div>
<div><br class="khtml-block-placeholder">
</div>
<div>Also, you may have to change your undef value -- most HDF files
I have met have an undef of the same type as the data, and many use an
undef value of "0" (zero). If you can GrADS to open the descriptor
file, try the 'q attr' command and see what other metadata is there... </div>
<div><br class="khtml-block-placeholder">
</div>
<div>Jennifer</div>
<div><br class="khtml-block-placeholder">
</div>
<div><br class="khtml-block-placeholder">
</div>
<div><br class="khtml-block-placeholder">
</div>
<br>
<blockquote type="cite">
<div style="margin: 0px; min-height: 14px;"><br>
</div>
<div style="margin: 0px;">The No. of lats and lons are 3275 and
3222. I feel the file size should</div>
<div style="margin: 0px;">be 21104100 bytes (=3275*3222*2).
However, the actual file size is</div>
<div style="margin: 0px;">21106990 i.e. 2890 extra bytes. Is this
because of some 'HEADER' inside</div>
<div style="margin: 0px;">the HDF data file?</div>
<div style="margin: 0px; min-height: 14px;"><br>
</div>
<div style="margin: 0px;">I had mentioned earlier I could NOT open
using 'sdfopen'.</div>
<div style="margin: 0px; min-height: 14px;"><br>
</div>
<div style="margin: 0px;">Thanks.</div>
<div style="margin: 0px; min-height: 14px;"><br>
</div>
<div style="margin: 0px;">With Regards,</div>
<div style="margin: 0px; min-height: 14px;"><br>
</div>
<div style="margin: 0px;">M. Mahakur</div>
<div style="margin: 0px; min-height: 14px;"><br>
</div>
<div style="margin: 0px;">P.S. : I am using the following as ctl:</div>
<div style="margin: 0px; min-height: 14px;"><br>
</div>
<div style="margin: 0px;">DSET ^test.HDF</div>
<div style="margin: 0px;">DTYPE hdfsds</div>
<div style="margin: 0px;">UNDEF -1.0E-33</div>
<div style="margin: 0px;">XDEF<span class="Apple-converted-space">
</span>3275<span class="Apple-converted-space"> </span>LINEAR
68.1442 0.008928571</div>
<div style="margin: 0px;">YDEF<span class="Apple-converted-space">
</span>3222 linear 6.74583 0.008928571</div>
<div style="margin: 0px;">TDEF<span class="Apple-converted-space">
</span>1 LINEAR 01apr1998 1dy</div>
<div style="margin: 0px;">ZDEF<span class="Apple-converted-space">
</span>1 LINEAR 1 1</div>
<div style="margin: 0px;">VARS 1</div>
<div style="margin: 0px;">npp -1,40,2,-1 0<span
class="Apple-converted-space"> </span>NPP</div>
<div style="margin: 0px;">ENDVARS</div>
<div style="margin: 0px; min-height: 14px;"><br>
</div>
</blockquote>
</div>
<br>
<div> <span class="Apple-style-span"
style="border-collapse: separate; -x-border-x-spacing: 0px; -x-border-y-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px;">
<div>Jennifer M. Adams</div>
<div>IGES/COLA</div>
<div>4041 Powder Mill Road, Suite 302</div>
<div>Beltsville, MD 20705</div>
<div><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div>
<div><br class="khtml-block-placeholder">
</div>
<br class="Apple-interchange-newline">
</span> </div>
<br>
</blockquote>
<br>
</body>
</html>