Hi Emily,<div>If your data is netCDF, why don't you use sdfopen without .ddf or .ctl file:</div><div><br></div><div>'reinit'</div><div>'open <span class="Apple-style-span" style="font-size: medium; ">d:\gradsfile\ncdata\<a href="http://hgt.200812.nc" target="_blank">hgt.200812.nc</a>'</span></div>
<div><span class="Apple-style-span" style="font-size: medium; ">'set grads off'</span></div><div><span class="Apple-style-span" style="font-size: medium;">'set grid off'<br>'set lon 220 310'<br>'set lat 20 60'<br>
'set lev 500'<br>'set time 09z28dec2008'<br>'d hgt'<br></span></div><div><br></div><div><br><br><div class="gmail_quote">On Mon, Sep 28, 2009 at 9:17 PM, Emily <span dir="ltr"><<a href="mailto:yi_zhou01@yahoo.ca">yi_zhou01@yahoo.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">Hi group members,<br>
<br>I face a problem when I display 500 hpa geopotential height chart, it shows wrong data.<br><br>My gs file is:<br>'reinit'<br>'open d:\gradsfile\ncdata\hgt200812.ddf'<br>'set grads off'<br>'set grid off'<br>
'set lon 220 310'<br>'set lat 20 60'<br>'set lev 500'<br>'set time 09z28dec2008'<br>'d hgt'<br>====================<br>My ddf is as below:<br>DSET d:\gradsfile\ncdata\<a href="http://hgt.200812.nc" target="_blank">hgt.200812.nc</a><br>
DTYPE netcdf<br>TITLE NARR 4D field Lambert Conformal Conic projection<br>UNDEF 32766 missing_value<br>UNPACK scale_factor add_offset<br>PDEF 349 277 lcc 1 -145.5 1 1 50 50 -107 32463.41 32463.41<br>XDEF 615 linear 150 0.3333<br>
YDEF 255 linear 2 0.3333<br>ZDEF 29 levels 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, 700,<br> 650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, 150, 125, 100<br>tdef 248 linear
00:00z01dec2008 3hr<br>vars 3<br>hgt 29 t,z,y,x geopotential_height<br>lat=>glat 0 y,x Latitude<br>lon=>glon 0 y,x Longitude<br>endvars<br>=============<br>My grads version: Grads 2.0 a3,<br>window xp<br><br>I notice that the contours laber values are like -25900, -25800..... I think the value is wrong. Then I check ncdump information, the hgt value from ncdump also shows like -25900,.....<br>
<br>Is there some one knowing what wrong with this?Thanks very much.<br><br>Regards,<br><font color="#888888"><br>Emily<br>York University, Toronto, Canada.<br> <br><br></font></td></tr></tbody></table></blockquote></div>
<br></div>