[gradsusr] writing a netCDF file that conforms to COARDS conventions to be opened using sdfopen

Jeff Duda jeffduda319 at gmail.com
Wed Feb 1 12:58:11 EST 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20170201/8820c1fe/attachment.html 


More information about the gradsusr mailing list