Template NETCDF

Jennifer Adams jma at COLA.IGES.ORG
Tue Feb 19 10:14:18 EST 2008


Guilherme --
I dont' think there is anything wrong with your template
substitutions, I believe your problem is in your descriptor file in
the variable declaration. The third column should have comma-
delimited letters, such as "t,y,x" (with no spaces) instead of  "1,
1, 0, 0". Look in the output of ncdump for something like this:
         float sst(time, lat, lon) ;
This should tell you the shape of the variable sst. If you cannot get
it to work, please send the output from "ncdump -h" with your
descriptor file.
Jennifer




On Feb 18, 2008, at 5:53 PM, Guilherme Martins wrote:

> Hello users...
>
> I created a template file and when I run it I see the
> message
>
> ga-> d sst
> NetCDF Error (nc_get_vara_float): Index exceeds
> dimension bound
> Data Request Error:  Error for variable 'sst'
>   Error ocurred at column 1
> DISPLAY error:  Invalid expression
>   Expression = sst
>
>
>
> This is my template:
>
> dset ^sst4-path-eot.%y4%m2%d2.nc
> options template
> dtype netcdf
> undef 1e+20
> xdef 1440 linear 0.125000 0.250000
> ydef 720 linear -89.875000 0.250000
> zdef 1 levels 1013
> tdef 10 linear 0Z22jan1985  1dy
> vars 4
> sst       0    1,  1,  0,  0 Daily sea surface
> temperature []
> anom      0    2,  1,  0,  0 Daily sea surface
> temperature anomalies []
> err       0    3,  1,  0,  0 Estimated error standard
> deviation of analysed_sst []
> ice       0    4,  1,  0,  0 Sea ice concentration []
> endvars
>
>
> here my files:
>
> sst4-path-eot.19851222.nc
> sst4-path-eot.19851223.nc
> sst4-path-eot.19851224.nc
> sst4-path-eot.19851225.nc
> sst4-path-eot.19851226.nc
> sst4-path-eot.19851227.nc
> sst4-path-eot.19851228.nc
> sst4-path-eot.19851229.nc
> sst4-path-eot.19851230.nc
> sst4-path-eot.19851231.nc
>
>



More information about the gradsusr mailing list