<div dir="ltr"><div>In the VARS section of a control file for a netCDF dataset, you need to correctly specify the order of the dimensions of each array. Your control file has t,y,x as the dimension order for tp, but in your ncdump output tp is 4-dimensional with an ensemble dimension. So you should change that part of the entry in the control file to t,e,y,x, and see if that works. I'm not sure if Grads handles the ensemble dimension like that correctly, but it should.<br><br></div><div>Jeff Duda <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 1, 2016 at 6:43 AM, Endalkachew Bekele - NOAA Affiliate <span dir="ltr"><<a href="mailto:endalkachew.bekele@noaa.gov" target="_blank">endalkachew.bekele@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi All,<br><br></div>I have downloaded reforecast data in netcdf format from the the ECMWF s2s project page.<br><br></div><div>Since sdfopen didn't work I created a control file as follows::<br><br><b><br>dset <a href="http://s2s_ecmwf_24_dec_12_1996_2015.nc" target="_blank">s2s_ecmwf_24_dec_12_1996_2015.<wbr>nc</a><br>title<br>undef -9.99e+33<br>dtype netcdf<br>ydef 121 linear -90 1.5<br>xdef 240 linear 0 1.5<br>zdef 1 linear 1 1<br>edef 10 names e1 e2 e3 e4 e5 e6 e7 e8 e9 e10<br>tdef 20 linear 00Z13DEC1996 1yr<br>vars 1<br>tp 0 99 t,y,x Total Precipitation<br>endvars</b><br><br></div><div><div>Based on the following partial ncdump output:<b><br><br>netcdf s2s_ecmwf_24_dec_12_1996_2015 {<br>dimensions:<br> longitude = 240 ;<br> latitude = 121 ;<br> number = 10 ;<br> time = UNLIMITED ; // (20 currently)<br>variables:<br> float longitude(longitude) ;<br> longitude:units = "degrees_east" ;<br> longitude:long_name = "longitude" ;<br> float latitude(latitude) ;<br> latitude:units = "degrees_north" ;<br> latitude:long_name = "latitude" ;<br> int number(number) ;<br> number:long_name = "ensemble_member" ;<br> int time(time) ;<br> time:units = "hours since 1900-01-01 00:00:0.0" ;<br> time:long_name = "time" ;<br> time:calendar = "gregorian" ;<br> short tp(time, number, latitude, longitude) ;<br> tp:scale_factor = 0.00549830333572399 ;<br> tp:add_offset = 180.157407098332 ;<br> tp:_FillValue = -32767s ;<br> tp:missing_value = -32767s ;<br> tp:units = "kg m**-2" ;<br> tp:long_name = "Total Precipitation" ;</b><br><br></div><div><br clear="all"><div><div><div class="m_-8713560321105099568gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>I get the following error message while trying to display the variable 'tp' :<br><br>g<b>ancgrid error: nc_get_vara_double failed; NetCDF: Index exceeds dimension bound<br>Data Request Error: Error for variable 'tp'<br> Error ocurred at column 1<br>DISPLAY error: Invalid expression<br> Expression = tp</b><br><br></div><div>I am using GrADS 2.01. I couldn't figure out the problem from the previous similar posts. <br><br></div><div>Any advice from the forum?<br><br></div><div>Thanks,<br><br></div><div>Endalk<br></div><div><br></div><div><br><br></div><div><div> </div></div></div></div></div></div>
</div></div></div></div></div>
<br>______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Jeff Duda<br>Post-doctoral research fellow<br>University of Oklahoma School of Meteorology<br></div></div></div></div></div>
</div>