[gradsusr] gancgrid error: nc_get_vara_double failed; NetCDF: Index exceeds dimension bound

Endalkachew Bekele - NOAA Affiliate endalkachew.bekele at noaa.gov
Thu Dec 1 13:08:49 EST 2016


Thank you all! My revised control file works fine now. In addition to the
dimension and unpack related issues, I had to add "yrev" in the "options"
line to get it right.

Endalk

On Thu, Dec 1, 2016 at 12:19 PM, Jeff Duda <jeffduda319 at gmail.com> wrote:

> 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.
>
> Jeff Duda
>
> On Thu, Dec 1, 2016 at 6:43 AM, Endalkachew Bekele - NOAA Affiliate <
> endalkachew.bekele at noaa.gov> wrote:
>
>> Hi All,
>>
>> I have downloaded reforecast data in netcdf format from the the ECMWF s2s
>> project page.
>>
>> Since sdfopen didn't work I created a control file as follows::
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *dset s2s_ecmwf_24_dec_12_1996_2015.nc
>> <http://s2s_ecmwf_24_dec_12_1996_2015.nc>titleundef -9.99e+33dtype
>> netcdfydef 121 linear -90 1.5xdef 240 linear 0 1.5zdef 1 linear 1 1edef 10
>> names e1 e2 e3 e4 e5 e6 e7 e8 e9 e10tdef 20 linear 00Z13DEC1996 1yrvars
>> 1tp  0 99  t,y,x  Total Precipitationendvars*
>>
>> Based on the following partial ncdump output:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *netcdf s2s_ecmwf_24_dec_12_1996_2015 {dimensions:        longitude = 240
>> ;        latitude = 121 ;        number = 10 ;        time = UNLIMITED ; //
>> (20 currently)variables:        float longitude(longitude) ;
>> longitude:units = "degrees_east" ;                longitude:long_name =
>> "longitude" ;        float latitude(latitude) ;
>> latitude:units = "degrees_north" ;                latitude:long_name =
>> "latitude" ;        int number(number) ;                number:long_name =
>> "ensemble_member" ;        int time(time) ;                time:units =
>> "hours since 1900-01-01 00:00:0.0" ;                time:long_name = "time"
>> ;                time:calendar = "gregorian" ;        short tp(time,
>> number, latitude, longitude) ;                tp:scale_factor =
>> 0.00549830333572399 ;                tp:add_offset = 180.157407098332
>> ;                tp:_FillValue = -32767s ;                tp:missing_value
>> = -32767s ;                tp:units = "kg m**-2" ;
>> tp:long_name = "Total Precipitation" ;*
>>
>>
>> I get the following error message while trying to display the variable
>> 'tp' :
>>
>> g
>>
>>
>>
>> *ancgrid error: nc_get_vara_double failed; NetCDF: Index exceeds
>> dimension boundData Request Error:  Error for variable 'tp'  Error ocurred
>> at column 1DISPLAY error:  Invalid expression  Expression = tp*
>>
>> I am using GrADS 2.01. I couldn't figure out the problem from the
>> previous similar posts.
>>
>> Any advice from the forum?
>>
>> Thanks,
>>
>> Endalk
>>
>>
>>
>>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
>
>
> --
> Jeff Duda
> Post-doctoral research fellow
> University of Oklahoma School of Meteorology
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20161201/c62fc340/attachment.html 


More information about the gradsusr mailing list