[gradsusr] netcdf - descriptor file ctl

Jennifer Adams jma at cola.iges.org
Sun Sep 29 20:03:17 EDT 2013


The units field of your variable declaration is incorrect -- it needs to have a comma-delimited list of the varying dimensions of the variable, something like t,y,x or t,z,y,x. Also, you are aliasing ET to ET -- change that to ET=>et (GrADS wants lower case alphanumeric characters). If you are still having problems, please send the output from ncdump.h as well as your descriptor. GrADS version would also be useful. 
--Jennifer
p.s. Please read the documentation at http://iges.org/grads/gadoc/SDFdescriptorfile.html 





On Sep 29, 2013, at 10:46 AM, Celso Bandeira de Melo Ribeiro wrote:

> Hello,
> 
> Could someone please help me out?
> 
> I am using a netcdf file that I created using matlab. However, I am still
> having trouble defining the .ctl file. The file contains just one variable
> i.e. ET. I am having trouble defining 'VARS' in the .ctl file. I am
> attaching my file with this email. Following is the .ctl file that I was
> trying to use
> 
> DSET ^ET_2000M01.nc
> UNDEF -3277
> XDEF length 652 LINEAR -80.05 0.05
> YDEF rows 527 LINEAR -20.25 0.05
> *XDEF dimension1 651 LINEAR -80.05 0.05
> *YDEF dimension2 526 LINEAR -20.25 0.05
> *DTYPE netcdf
> VARS 1
> ET=>ET 1 99 ET
> ENDVARS 
> 
> When I try to display ET, I get the following error
> 
> gancgrid error: nc_get_vara_double failed; NetCDF: Start+count exceeds
> dimension bound
> Data Request Error:  Error for variable 'et'
>  Error ocurred at column 1
> DISPLAY error:  Invalid expression 
>  Expression = et
> 
> Thank you very much,
> Celso
> 
> 
> ____________________________________________
> Prof. Celso Bandeira de Melo Ribeiro
> Universidade Federal de Juiz de Fora - UFJF
> Faculdade de Engenharia, Plataforma 4
> Departamento de Engenharia Ambiental e Sanitaria
> Bairro Martelos, Juiz de Fora (MG) CEP. 36036-900
> tel. (32) 2102-3400<ET_2000M01.nc>_______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

--
Jennifer M. Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
111 Research Hall, Mail Stop 2B3
George Mason University
4400 University Drive
Fairfax, VA 22030 





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130929/219106e0/attachment.html 


More information about the gradsusr mailing list