<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Try getting rid of the 'scale_factor' attribute for the ndvi variable. It is set to 0, and your data are floats, so I'm not sure exactly what purpose it is serving anyway. Also, what version of GrADS are you using?&nbsp;<br><br><div>Jennifer<div><div><br><div><div><br><div><div>On Sep 1, 2010, at 4:36 AM, dyjbean soybean wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>hi,</div> <div>&nbsp; i have made a netcdf file write in fortran ,but when i open it in grads with 'sdfopen ', the following error occurs:</div> <div>&nbsp;</div> <div>*********************************************************************************************</div> <div>&nbsp;ga-&gt; sdfopen j:/<a href="http://00apr.nc">00apr.nc</a><br>Scanning self-describing file:&nbsp; j:/<a href="http://00apr.nc">00apr.nc</a><br>SDF file has no discernable time coordinate.<br>SDF file j:/<a href="http://00apr.nc">00apr.nc</a> is open as file 1<br> LON set to -179.959 179.949<br>LAT set to -62.8134 89.2103<br>LEV set to 0 0<br>Time values set: 1:1:1:0 1:1:1:0<br>ga-&gt; q file<br>File 1 : NDVI production<br>&nbsp; Descriptor: j:/<a href="http://ndvi2000apr.nc">ndvi2000apr.nc</a><br> &nbsp; Binary: j:/<a href="http://ndvi2000apr.nc">ndvi2000apr.nc</a><br>&nbsp; Type = Gridded<br>&nbsp; Xsize = 4950&nbsp; Ysize = 2091&nbsp; Zsize = 1&nbsp; Tsize = 1<br>&nbsp; Number of Variables = 1<br>&nbsp;&nbsp;&nbsp; ndvi 0 -999 NDVI<br>ga-&gt; d ndvi<br>SDF data variable has unsupported packed data type.<br> Data Request Error:&nbsp; Error for variable 'ndvi'<br>&nbsp; Error ocurred at column 1<br>DISPLAY error:&nbsp; Invalid expression<br>&nbsp; Expression = ndvi<br clear="all">***************************************************************************************</div> <div>based on the above problem, i made a 'ddf' file, as follows:</div> <div>++++++++++++++++++++++++++++++++++++</div> <div>dset ^<a href="http://ndvi2000apr.nc">ndvi2000apr.nc</a><br>options yrev<br>undef -9999.0<br>xdef lon 4950 linear -179.95932 0.07272727<br>ydef lat 2091 linear -62.81345 0.07272727<br>zdef lev&nbsp; 1&nbsp;&nbsp; levels 1000<br>tdef time 1&nbsp;&nbsp; linear apr2000 1mo<br> vars 1<br>ndvi=&gt;ndvi&nbsp; 1 99 normalized difference vegetation index<br>endvars</div> <div>++++++++++++++++++++++++++++++++++++++++</div> <div>&nbsp;</div> <div>but the same error appears:</div> <div>&nbsp;</div> <div>&nbsp; ga-&gt; xdfopen j:/ndvi2000apr.ddf<br>Scanning Descriptor File:&nbsp; j:/ndvi2000apr.ddf<br>SDF file j:/<a href="http://00apr.nc">00apr.nc</a> is open as file 1<br>LON set to 0 360<br>LAT set to -62.8134 89.1865<br>LEV set to 1000 1000<br> Time values set: 2000:4:1:0 2000:4:1:0<br>ga-&gt; q file<br>File 1 : NDVI production<br>&nbsp; Descriptor: j:/ndvi2000apr.ddf<br>&nbsp; Binary: j:/<a href="http://00apr.nc">00apr.nc</a><br>&nbsp; Type = Gridded<br>&nbsp; Xsize = 4950&nbsp; Ysize = 2091&nbsp; Zsize = 1&nbsp; Tsize = 1<br> &nbsp; Number of Variables = 1<br>&nbsp;&nbsp;&nbsp; ndvi 1 99 normalized difference vegetation index<br>ga-&gt; d ndvi<br>SDF data variable has unsupported packed data type.<br>Data Request Error:&nbsp; Error for variable 'ndvi'<br>&nbsp; Error ocurred at column 1<br> DISPLAY error:&nbsp; Invalid expression<br>&nbsp; Expression = ndvi</div> <div>+++++++++++++++++++++++++++++++++</div> <div>&nbsp;</div> <div>the nc file information is below:</div> <div>&nbsp;&nbsp; filename:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ndvi2000apr<br>&nbsp; path:&nbsp;&nbsp;<a href="http://ndvi2000apr.nc">ndvi2000apr.nc</a><br>&nbsp;&nbsp; file global attributes:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;title : NDVI production<br>&nbsp;&nbsp; dimensions:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lev = 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lat = 2091<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lon = 4950<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; time = 1&nbsp; // unlimited<br>&nbsp;&nbsp; variables:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; integer lev ( lev )<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; long_name :&nbsp;&nbsp;&nbsp; Level<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; units :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; level_number</div> <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; float lat ( lat )<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; long_name :&nbsp;&nbsp;&nbsp; Latitude<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; units :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; degree_north</div> <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; float lon ( lon )<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; long_name :&nbsp;&nbsp;&nbsp; Longitude<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; units :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; degree_east</div> <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; integer time ( time )<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; long_name :&nbsp;&nbsp;&nbsp; TimeRecord<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; units :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; monthly</div> <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; float ndvi ( time, lev, lat, lon )<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; long_name :&nbsp;&nbsp;&nbsp; NDVI<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; units :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m2m-2<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; missing_value :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -9999<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scale_factor : 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _FillValue :&nbsp;&nbsp; -9999</div> <div>&nbsp;</div> <div>according to the abovementioned questions, any help is appreciaed, thanks</div> <div>&nbsp;</div> <div><br>-- <br>通讯地址:北京市朝阳区大屯路9718信箱&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 中国科学院遥感应用研究所<br>邮编:100101<br>电话:010-64860422<br></div> _______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 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-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 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-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 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-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, 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></span></div></span> </div><br></div></div></div></div></div></body></html>