<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">PLEASE ALWAYS PROVIDE THE VERSION OF GRADS YOU ARE USING!!! <div><br></div><div>Your netcdf file uses two dimensions for time: month and year are separate, and the metadata is not COARDS compliant, so the sdfopen code is not mapping the four dimensions of your data variable to X, Y, Z, and T correctly. Use a descriptor file, either with the xdfopen or open command. You are probably using an older version of GrADS 2.0; sdfopen in the latest version would not recognize any of the data variables in that file. </div><div>--Jennifer<br><div><br><div><div>On Jan 4, 2011, at 2:10 PM, sudev das M P wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi All,<br><br>I have a netCDF file "<a href="http://ndn6089_flux.nc">ndn6089_flux.nc</a>".<br><br>When I tried to display the variable in this file it is showing<br><br>following error. Please tell me how to fix this problem.<br> =============================================<br>ga-> sdfopen <a href="http://ndn6089_flux.nc">ndn6089_flux.nc</a><br>Scanning self-describing file: <a href="http://ndn6089_flux.nc">ndn6089_flux.nc</a><br>SDF file <a href="http://ndn6089_flux.nc">ndn6089_flux.nc</a> is open as file 1<br> LON set to 31 119 <br>LAT set to -29 23 <br>LEV set to 0 0 <br>Time values set: 1:1:31:10 1:1:31:10 <br>E set to 1 1 <br>ga-> q file<br>File 1 : Indian Ocean monthly (fluxes) from Jones 1994<br> Descriptor: <a href="http://ndn6089_flux.nc">ndn6089_flux.nc</a><br> Binary: <a href="http://ndn6089_flux.nc">ndn6089_flux.nc</a><br> Type = Gridded<br> Xsize = 45 Ysize = 27 Zsize = 1 Tsize = 12 Esize = 1<br> Number of Variables = 4<br> taux 0 t,y,x Wind stress<br> tauy 0 t,y,x Wind stress<br> h 0 t,y,x Sensible Heat Flux<br> e 0 t,y,x Latent Heat Flux<br>ga-> d h<br>gancgrid error: nc_get_vara_double failed; NetCDF: Index exceeds dimension bound<br>Data Request Error: Error for variable 'h'<br> Error ocurred at column 1<br>DISPLAY error: Invalid expression <br> Expression = h<br>=================================================================<br>I am giving the header file below:<br>================================================================<br> netcdf ndn6089_flux {<br>dimensions:<br> lon = 45 ;<br> lat = 27 ;<br> month = 12 ;<br> year = 30 ;<br>variables:<br> float lon(lon) ;<br> lon:long_name = "longitude" ;<br> lon:units = "degrees_east" ;<br> lon:valid_range = 0.f, 360.f ;<br> lon:min_max = 31.f, 119.f ;<br> float lat(lat) ;<br> lat:long_name = "latitude" ;<br> lat:units = "degrees_north" ;<br> lat:valid_range = -90.f, 90.f ;<br> lat:min_max = -29.f, 23.f ;<br> int month(month) ;<br> month:long_name = "Month" ;<br> month:units = "months" ;<br> month:valid_range = 1, 12 ;<br> month:time_step = 1 ;<br> month:time_origin = "16-Dec-1959 12:00:00" ;<br> month:base_time = 1, 16, 60 ;<br> int year(year) ;<br> year:long_name = "Year" ;<br> year:units = "year" ;<br> year:valid_range = 1960, 1989 ;<br> year:time_step = 1 ;<br> year:time_origin = "16-Dec-1959 12:00:00" ;<br> year:base_time = 1, 16, 60 ;<br> float Taux(year, month, lat, lon) ;<br> Taux:short_name = "Taux" ;<br> Taux:long_name = "Wind stress" ;<br> Taux:units = "N m**-2" ;<br> Taux:_FillValue = 99999.f ;<br> Taux:missing_value = 99999.f ;<br> Taux:valid_range = -5.f, 5.f ;<br> Taux:min_max = -0.2607f, 0.4275f ;<br> float Tauy(year, month, lat, lon) ;<br> Tauy:short_name = "Tauy" ;<br> Tauy:long_name = "Wind stress" ;<br> Tauy:units = "N m**-2" ;<br> Tauy:_FillValue = 99999.f ;<br> Tauy:missing_value = 99999.f ;<br> Tauy:valid_range = -5.f, 5.f ;<br> Tauy:min_max = -0.2636f, 0.3903f ;<br> float H(year, month, lat, lon) ;<br> H:short_name = "H" ;<br> H:long_name = "Sensible Heat Flux" ;<br> H:units = "W m**-2" ;<br> H:_FillValue = 99999.f ;<br> H:missing_value = 99999.f ;<br> H:valid_range = -100.f, 100.f ;<br> H:min_max = -39.95f, 67.3f ;<br> float E(year, month, lat, lon) ;<br> E:short_name = "E" ;<br> E:long_name = "Latent Heat Flux" ;<br> E:units = "W m**-2" ;<br> E:_FillValue = 99999.f ;<br> E:missing_value = 99999.f ;<br> E:valid_range = -500.f, 500.f ;<br> E:min_max = -16.05f, 385.73f ;<br> <br>// global attributes:<br> :title = "Indian Ocean monthly (fluxes) from Jones 1994" ;<br> :source = "COAPS at FSU" ;<br> :base_time = "1960 to 1989" ;<br> :gridded = 1 ;<br> :LandValue = 99999.f ;<br> :_FillValue = 99999.f ;<br> :missing_value = 99999.f ;<br> :first_varid = 4 ;<br>data:<br><br> lon = 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, <br> 65, 67, 69, 71, 73, 75, 77, 79, 81, 83, 85, 87, 89, 91, 93, 95, 97, 99, <br> 101, 103, 105, 107, 109, 111, 113, 115, 117, 119 ;<br><br> lat = -29, -27, -25, -23, -21, -19, -17, -15, -13, -11, -9, -7, -5, -3, -1, <br> 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 ;<br><br> month = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ;<br><br> year = 1960, 1961, 1962, 1963, 1964, 1965, 1966, 1967, 1968, 1969, 1970, <br> 1971, 1972, 1973, 1974, 1975, 1976, 1977, 1978, 1979, 1980, 1981, 1982, <br> 1983, 1984, 1985, 1986, 1987, 1988, 1989 ;<br><br>=================================================================<br><br>Thanking You,<br>sudev<br> _______________________________________________<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></body></html>