Respected Madam,<br><br>Thanks for your kind reply. I got the problem solved.<br><br>Now I can display the variable in the NetCDF file.<br><br>Thanking You,<br>Sincerely,<br>Sudev.<br><br><div class="gmail_quote">On Wed, Dec 8, 2010 at 11:22 PM, Jennifer Adams <span dir="ltr"><<a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style=""><div>Thank you, Sudev, for the extra info. The problem is that GrADS doesn't understand the time axis metadata in the file ... note that it tells you "SDF file has no discernable time coordinate -- using default values." Default values do not match the actual time axis, so GrADS gets the shape wrong, thus the error message about the index exceeding the dimension bound. This was fixed in version 2.0.a7 -- in newer versions, sdfopen would not understand the time axis and would therefore not be able to look at any of the variables in the file since they all use the time axis. The message you would see in later versions is this: </div>
<div class="im"><div> "SDF file has no discernable time coordinate -- using default values.</div></div><div><div> gadsdf: SDF file does not have any non-coordinate variables." </div></div><div>and the file would not be opened. </div>
<div><br></div><div>What you need to do is use xdfopen, and provide the time axis metadata that GrADS requires in a descriptor file: </div><div><br></div><div>dset ^FSU_flux_ndn_19782003v31a_rcf.nc</div><div>tdef time 12 linear 1jan0001 1mo</div>
<div><br></div><div><div>This will work in your version of GrADS. Note that GrADS doesn't really support climatological time axes in descriptor files, so you have to assign a year, in this case I used year 0001. </div>
<div>--Jennifer</div><div><div></div><div class="h5"><div><br></div><div><br></div><div><br></div><div>On Dec 8, 2010, at 12:27 PM, sudev das M P wrote:</div><br><blockquote type="cite">Respected Madam,<br><br>I am using GrADS Version 2.0.a6. My processor is 64 bit x86-64 quad-core.<br>
<br>I am using Red Hat Enterprise Linux Server release 5.3 (Tikanga).<br><br>I am not using descriptor file. I am opening the file using<br> <br>"sdfopen" comand.<br>***********************************************************************<br>
ga-> sdfopen FSU_flux_ndn_19782003v31a_rcf.nc<br>Scanning self-describing file: FSU_flux_ndn_19782003v31a_rcf.nc<br> SDF file has no discernable time coordinate -- using default values.<br>SDF file FSU_flux_ndn_19782003v31a_rcf.nc is open as file 1<br>
LON set to 29.5 120.5 <br>LAT set to -29.5 29.5 <br>LEV set to 0 0 <br>Time values set: 1:1:1:0 1:1:1:0 <br> E set to 1 1 <br>************************************************************************<br><br>Out put from "ncdump -c"<br>
******************************************************************<br> ncdump -c FSU_flux_ndn_19782003v31a_rcf.nc<br>netcdf FSU_flux_ndn_19782003v31a_rcf {<br> dimensions:<br> lon = 92 ;<br> lat = 60 ;<br> time = 12 ;<br>
variables:<br> float lon(lon) ;<br> lon:long_name = "Degrees Longitude" ;<br> lon:units = "degrees_east" ;<br> lon:valid_range = 0.f, 359.9f ;<br> lon:actual_range = 29.5f, 120.5f ;<br>
float lat(lat) ;<br> lat:long_name = "Degrees Latitude" ;<br> lat:units = "degrees_north" ;<br> lat:positive_dir = "positive northward" ;<br>
lat:valid_range = -90.f, 90.f ;<br> lat:actual_range = -29.5f, 29.5f ;<br> short time(time) ;<br> time:long_name = "Climatological Month" ;<br> time:units = "Calendar Month Number" ;<br>
time:actual_range = 1, 12 ;<br> time:time_step = 1 ;<br> int Wu(time, lat, lon) ;<br> Wu:long_name = "Psuedostress Climatology (zonal (E-W) component) (Filtered)" ;<br>
Wu:positive_dir = "positive eastward" ;<br> Wu:units = "m2/s2" ;<br> Wu:scale_factor = 0.0001f ;<br> Wu:missing_value = 32767 ;<br> Wu:actual_range = -891510, 1236231 ;<br>
int Wv(time, lat, lon) ;<br> Wv:long_name = "Psuedostress Climatology (meridional (N-S) component) (Filtered)" ;<br> Wv:positive_dir = "positive northward" ;<br> Wv:units = "m2/s2" ;<br>
Wv:scale_factor = 0.0001f ;<br> Wv:missing_value = 32767 ;<br> Wv:actual_range = -1030279, 1465481 ;<br> int T_air(time, lat, lon) ;<br> T_air:long_name = "10m Air Temperature Climatology (Filtered)" ;<br>
T_air:units = "Celsius" ;<br> T_air:actual_range = 1492452, 3209452 ;<br> T_air:scale_factor = 1.e-05f ;<br> T_air:missing_value = 32767 ;<br> int q_air(time, lat, lon) ;<br>
q_air:long_name = "10m Specific Humidity Climatology (Filtered)" ;<br> q_air:units = "kg/kg" ;<br> q_air:actual_range = 9471337, 25370482 ;<br> q_air:scale_factor = 1.e-09f ;<br>
q_air:missing_value = 32767 ;<br> int SST(time, lat, lon) ;<br> SST:long_name = "Sea Surface Temperature Climatology (Filtered)" ;<br> SST:units = "Celsius" ;<br>
SST:actual_range = 1439837, 3321173 ;<br> SST:scale_factor = 1.e-05f ;<br> SST:missing_value = 32767 ;<br> int spd(time, lat, lon) ;<br> spd:long_name = "10m Scalar Averaged Wind Speed Climatology (Filtered)" ;<br>
spd:units = "m/s" ;<br> spd:actual_range = 326308, 1376039 ;<br> spd:scale_factor = 1.e-05f ;<br> spd:missing_value = 32767 ;<br> int TAU_u(time, lat, lon) ;<br>
TAU_u:long_name = "Zonal Stress Climatology (Filtered)" ;<br> TAU_u:units = "N/meter^2" ;<br> TAU_u:positive_dir = "positive eastward" ;<br> TAU_u:actual_range = -1516837, 2172231 ;<br>
TAU_u:scale_factor = 1.e-07f ;<br> TAU_u:missing_value = 32767 ;<br> int TAU_v(time, lat, lon) ;<br> TAU_v:long_name = "Meridional Stress Climatology (Filtered)" ;<br>
TAU_v:units = "N/meter^2" ;<br> TAU_v:positive_dir = "positive northward" ;<br> TAU_v:actual_range = -1733125, 2601654 ;<br> TAU_v:scale_factor = 1.e-07f ;<br>
TAU_v:missing_value = 32767 ;<br> int LHF(time, lat, lon) ;<br> LHF:long_name = "Latent Heat Flux Climatology (Filtered)" ;<br> LHF:units = "watt/meter^2" ;<br>
LHF:positive_dir = "positive upward" ;<br> LHF:actual_range = -408654, 2105644 ;<br> LHF:scale_factor = 0.0001f ;<br> LHF:missing_value = 32767 ;<br>
int SHF(time, lat, lon) ;<br> SHF:long_name = "Sensible Heat Flux Climatology (Filtered)" ;<br> SHF:units = "watt/meter^2" ;<br> SHF:positive_dir = "positive upward" ;<br>
SHF:actual_range = -269923, 751183 ;<br> SHF:scale_factor = 0.0001f ;<br> SHF:missing_value = 32767 ;<br><br>// global attributes:<br> :title = "FSU Objectively Gridded Indian Monthly Flux Climatology (Filtered)" ;<br>
:source = "COAPS at Florida State University" ;<br> :base_time = "December" ;<br> :history = "Created on Thu Sep 6 14:38:22 EDT 2007 by COAPS/FSU" ;<br>
:grid_space = "1 degree" ;<br> :version = "3.1" ;<br> :version_title = "Objective Research Quality" ;<br> :base_data_sets = "COADS LMRF6v2.1 (12/1977-1997), COADS LMRF6v2.2 (1998-2004), TAO Buoys (1980-2004)" ;<br>
:sst_data_sets = "OI (1978-11/1981), OI.v2 (12/1981-present)" ;<br> :conventions = "COARDS" ;<br> :contact_info = "<a href="mailto:winds@coaps.fsu.edu" target="_blank">winds@coaps.fsu.edu</a>" ;<br>
:contact_url = "<a href="http://www.coaps.fsu.edu/RVSMDC/FSUFluxes/index.php" target="_blank">http://www.coaps.fsu.edu/RVSMDC/FSUFluxes/index.php</a>" ;<br> :reference = "Bourassa, M.A., S.R. Romero, S.R. Smith, and J.J. O\'Brien, 2005: A New FSU winds climatology. J. Climate, 18, 3692-3704." ;<br>
:sst_reference = "Data described in Reynolds, R.W., N.A. Rayner, T.M. Smith, D.C. Stokes, and W. Wang, 2002: An Improved In Situ and Satellite SST Analysis for Climate, J. Climate." ;<br>data:<br>
<br> lon = 29.5, 30.5, 31.5, 32.5, 33.5, 34.5, 35.5, 36.5, 37.5, 38.5, 39.5, <br> 40.5, 41.5, 42.5, 43.5, 44.5, 45.5, 46.5, 47.5, 48.5, 49.5, 50.5, 51.5, <br> 52.5, 53.5, 54.5, 55.5, 56.5, 57.5, 58.5, 59.5, 60.5, 61.5, 62.5, 63.5, <br>
64.5, 65.5, 66.5, 67.5, 68.5, 69.5, 70.5, 71.5, 72.5, 73.5, 74.5, 75.5, <br> 76.5, 77.5, 78.5, 79.5, 80.5, 81.5, 82.5, 83.5, 84.5, 85.5, 86.5, 87.5, <br> 88.5, 89.5, 90.5, 91.5, 92.5, 93.5, 94.5, 95.5, 96.5, 97.5, 98.5, 99.5, <br>
100.5, 101.5, 102.5, 103.5, 104.5, 105.5, 106.5, 107.5, 108.5, 109.5, <br> 110.5, 111.5, 112.5, 113.5, 114.5, 115.5, 116.5, 117.5, 118.5, 119.5, <br> 120.5 ;<br><br> lat = -29.5, -28.5, -27.5, -26.5, -25.5, -24.5, -23.5, -22.5, -21.5, -20.5, <br>
-19.5, -18.5, -17.5, -16.5, -15.5, -14.5, -13.5, -12.5, -11.5, -10.5, <br> -9.5, -8.5, -7.5, -6.5, -5.5, -4.5, -3.5, -2.5, -1.5, -0.5, 0.5, 1.5, <br> 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, <br>
15.5, 16.5, 17.5, 18.5, 19.5, 20.5, 21.5, 22.5, 23.5, 24.5, 25.5, 26.5, <br> 27.5, 28.5, 29.5 ;<br><br> time = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ;<br>}<br>************************************************************************************<br>
<br>Thanks,<br>Sincerely,<br>Sudev.<br> <br><div class="gmail_quote">On Wed, Dec 8, 2010 at 7:27 PM, Jennifer Adams <span dir="ltr"><<a href="mailto:jma@cola.iges.org" target="_blank">jma@cola.iges.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div>Sudev,<div><span>Please supply t</span>he version of GrADS you are running, specifics about the platform you are running GrADS on, the output from running "ncdump -c" on your NetCDF file, and your descriptor file (if you are using 'open' or 'xdfopen'). </div>
<div>--Jennifer</div><div><p><br></p></div><div><br><div><div><div></div><div><div>On Dec 8, 2010, at 2:20 AM, sudev das M P wrote:</div> <br></div></div><blockquote type="cite"><div><div></div><div>Hai All,<br><br>I have a monthly flux climatology data in NetCDF format.<br>
<br>I have taken the data from the following link:<br><br><a href="http://www.coaps.fsu.edu/RVSMDC/FSUFluxes/research.php" target="_blank">http://www.coaps.fsu.edu/RVSMDC/FSUFluxes/research.php</a><br> <br>While trying to display the variable I am getting the following <br>
<br>error. Please somebody tell me how to solve this.<br><br>Thanks,<br>Sincerely,<br>sudev.<br><br>************************************************<br> ga-> q file<br>File 1 : FSU Objectively Gridded Indian Monthly Flux Climatology (Filtered)<br>
Descriptor: FSU_flux_ndn_19782003v31a_rcf.nc<br> Binary: FSU_flux_ndn_19782003v31a_rcf.nc<br> Type = Gridded<br> Xsize = 92 Ysize = 60 Zsize = 1 Tsize = 1 Esize = 1<br> Number of Variables = 10<br> wu 0 y,x Psuedostress Climatology (zonal (E-W) component) (Filtered)<br>
wv 0 y,x Psuedostress Climatology (meridional (N-S) component) (Filtered)<br> t_air 0 y,x 10m Air Temperature Climatology (Filtered)<br> q_air 0 y,x 10m Specific Humidity Climatology (Filtered)<br>
sst 0 y,x Sea Surface Temperature Climatology (Filtered)<br> spd 0 y,x 10m Scalar Averaged Wind Speed Climatology (Filtered)<br> tau_u 0 y,x Zonal Stress Climatology (Filtered)<br> tau_v 0 y,x Meridional Stress Climatology (Filtered)<br>
lhf 0 y,x Latent Heat Flux Climatology (Filtered)<br> shf 0 y,x Sensible Heat Flux Climatology (Filtered)<br>ga-> d sst <br>gancgrid error: nc_get_vara_double failed; NetCDF: Index exceeds dimension bound<br>
Data Request Error: Error for variable 'sst'<br> Error ocurred at column 1<br>DISPLAY error: Invalid expression <br> Expression = sst<br>*******************************************************************<br>
<br> <br></div></div> _______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><font color="#888888"><br><div> <div style="font-size: 12px;"><span style="border-collapse: separate; border-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; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; border-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; white-space: normal; 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" target="_blank">jma@cola.iges.org</a></div><div><br>
</div><br></span></span></div> </div><br></font></div></div><br>_______________________________________________<br> gradsusr mailing list<br> <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br> <br></blockquote></div><br> _______________________________________________<br>gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br></blockquote>
</div></div></div><div><div></div><div class="h5"><br><div> <div style="font-size: 12px;"><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" target="_blank">jma@cola.iges.org</a></div><div><br></div><br></div> </div><br></div></div></div><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></blockquote></div><br>