Hi Sergey,<br>thank you very much for your help. I tried to include the vars definitions for only one variable but I still get the following error:<br>'SDF file does not have any non-coordinate variables'.<br><br>my complete script is:<br>
dset ^./MYD08_D3.A2003121.005.2007081003101.hdf<br>xdef XDim:mod08 360 linear -180.0 1.0<br>ydef YDim:mod08 180 linear -90.0 1.0<br>vars 1<br>var 1 Deep_Blue_Aerosol_Optical_Depth_550_Land_Mean=>deep_blue_aeros 0 y,x <br>
endvars<br><br><br>What could be the issue ? Will you please advise what other definitions should be included in var 1 line?<br><br><br><br>Sagar<br><br><div class="gmail_quote">On Mon, Nov 19, 2012 at 12:07 AM, Sergey Varlamov <span dir="ltr"><<a href="mailto:vsm@jamstec.go.jp" target="_blank">vsm@jamstec.go.jp</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Sagar P Parajuli,<br>
<br>
It is normal grads behavior: GrADS cuts names of variables to 15 symbols.<br>
To overcome it, you have to add also the variables description section to<br>
your description file and assign short "GrADS names" that you like<br>
to original long names in the HDF file, like:<br>
<div class="im"><br>
dset ^./MYD08_D3.A2003121.005.2007081003101.hdf<br>
xdef XDim:mod08 360 linear -180.0 1.0<br>
ydef YDim:mod08 180 linear -90.0 1.0<br>
</div>vars 3<br>
Deep_Blue_Aerosol_Optical_Depth_550_Land_Mean=>od_550 0 y,x Optical<br>
<div class="im">depth at 0.55 microns for land (corrected): Mean<br>
</div>Deep_Blue_Aerosol_Optical_Depth_550_Land_Standard_Deviation=>od_550_sd 0<br>
y,x Optical depth at 0.55 microns for land (corrected): Standard Deviation<br>
Deep_Blue_Aerosol_Optical_Depth_550_Land_Minimum=>od_550_min 0 y,x<br>
<div class="im">Optical depth at 0.55 microns for land (corrected): Minimum<br>
</div>endvars<br>
<br>
Inside must be just "vars" lines, 3 in the example above.<br>
If you have other - please add description lines and modify<br>
vars number.<br>
See the Grads documentation for details and modify example above,<br>
especially if you receive again some strange images.<br>
Description of variables has to consistent with the hdf structure:<br>
number of vertical levels if any (0 above), grid layout etc.<br>
<br>
Hope it could help you.<br>
<br>
Sergey Varlamov<br>
<div class="im"><br>
<br>
Sagar P Parajuli wrote:<br>
> Hi,<br>
> I was able to open modis hdf file (MYD08_D3) using xdfopen with following<br>
> script:<br>
> dset ^./MYD08_D3.A2003121.005.2007081003101.hdf<br>
> xdef XDim:mod08 360 linear -180.0 1.0<br>
> ydef YDim:mod08 180 linear -90.0 1.0<br>
> However, when I see the variables using ctlinfo, it shows more than one<br>
> variables with the same variable name. For example, in the below lines, all<br>
> three variables have same variable name deep_blue_aeros.<br>
><br>
> Deep_Blue_Aerosol_Optical_Depth_550_Land_Mean=>deep_blue_aeros 0 y,x<br>
> Deep blue aerosol optical depth at 0.55 microns for land (corrected): Mean<br>
> Deep_Blue_Aerosol_Optical_Depth_550_Land_Standard_Deviation=>deep_blue_aeros<br>
> 0 y,x Deep blue aerosol optical depth at 0.55 microns for land<br>
> (corrected): Standard Deviation<br>
> Deep_Blue_Aerosol_Optical_Depth_550_Land_Minimum=>deep_blue_aeros 0 y,x<br>
> Deep blue aerosol optical depth at 0.55 microns for land (corrected):<br>
> Minimum<br>
><br>
> When I display the variable using d deep_blue_aeros, it doesn't show<br>
> realistic image. I don't know which variable out of three is being<br>
> displayed. Could anyone help on this?<br>
><br>
><br>
</div>> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<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>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
<br>
Sergey Varlamov<br>
<br>
Research Institute for Global Change<br>
JAMSTEC, JAPAN<br>
<br>
<br>
_______________________________________________<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>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>
<p><b><span style="color:#e36c0a"></span></b></p>Best regards,<br><br><p><b><span style="color:#e36c0a">
</span></b></p>
<p><b><span style="color:#e36c0a">Sagar P. Parajuli</span></b></p><p><b><span style="color:#e36c0a"></span></b><span style="color:#e36c0a">Graduate
Research Assistant</span></p><p><span style="color:#e36c0a">The University of Texas at
Austin<br>
Jackson School of Geosciences<br>e-mail: <a href="mailto:psagar@utexas.edu" target="_blank">psagar@utexas.edu</a></span></p><span style="color:#e36c0a">Contact: +1 512 965 4093</span><br>