<div dir="ltr"><div>Thank you all! My revised control file works fine now. In addition to the dimension and unpack related issues, I had to add &quot;yrev&quot; in the &quot;options&quot; line to get it right.<br><br></div>Endalk     <br><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 1, 2016 at 12:19 PM, Jeff Duda <span dir="ltr">&lt;<a href="mailto:jeffduda319@gmail.com" target="_blank">jeffduda319@gmail.com</a>&gt;</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>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&#39;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"><div><div class="h5">On Thu, Dec 1, 2016 at 6:43 AM, Endalkachew Bekele - NOAA Affiliate <span dir="ltr">&lt;<a href="mailto:endalkachew.bekele@noaa.gov" target="_blank">endalkachew.bekele@noaa.gov</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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&#39;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 = &quot;degrees_east&quot; ;<br>                longitude:long_name = &quot;longitude&quot; ;<br>        float latitude(latitude) ;<br>                latitude:units = &quot;degrees_north&quot; ;<br>                latitude:long_name = &quot;latitude&quot; ;<br>        int number(number) ;<br>                number:long_name = &quot;ensemble_member&quot; ;<br>        int time(time) ;<br>                time:units = &quot;hours since 1900-01-01 00:00:0.0&quot; ;<br>                time:long_name = &quot;time&quot; ;<br>                time:calendar = &quot;gregorian&quot; ;<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 = &quot;kg m**-2&quot; ;<br>                tp:long_name = &quot;Total Precipitation&quot; ;</b><br><br></div><div><br clear="all"><div><div><div class="m_-1627230604894881481m_-8713560321105099568gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>I get the following error message while trying to display the variable &#39;tp&#39; :<br><br>g<b>ancgrid error: nc_get_vara_double failed; NetCDF: Index exceeds dimension bound<br>Data Request Error:  Error for variable &#39;tp&#39;<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&#39;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></div></div><span class="">______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/li<wbr>stinfo/gradsusr</a><br>
<br></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div class="m_-1627230604894881481gmail_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>
</font></span></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><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div><br><div> </div><br></div>
<div> </div></div></div></div></div></div>
</div></div></div>