[gradsusr] writing a netCDF file that conforms to COARDS conventions to be opened using sdfopen
James T. Potemra
jimp at hawaii.edu
Wed Feb 1 13:08:55 EST 2017
Hi Jeff,
I think you need to have dimz = 1, then add that as a dimension to your
variables. More importantly you may need a time dimension.
Jim
On 2/1/17 7:58 AM, Jeff Duda wrote:
> I'm trying to write a netCDF file that I can then open in Grads using
> sdfopen. I'm missing some stuff, though, but I'm not sure what. Here
> is the ncdump of the file I have created:
>
> netcdf sm_raw_dump {
> dimensions:
> dimx = 1568 ;
> dimy = 1120 ;
> dimz = 50 ;
> variables:
> float sm(dimy, dimx) ;
> float lat(dimy, dimx) ;
> lat:units = "degrees_north" ;
> lat:axis = "y" ;
> float lon(dimy, dimx) ;
> lon:units = "degrees_east" ;
> lon:axis = "y" ;
> }
>
> Is there a problem with the names of the dimensions? Should I not have
> 'dimz' in there since none of the arrays use that dimension? Can I not
> use sdfopen if I have 2-D coordinate variables (lat and lon in this
> case)? The field I want to display using Grads is sm
>
> Jeff Duda
>
> --
> 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/20170201/12906d03/attachment.html
More information about the gradsusr
mailing list