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

Cathy Smith (NOAA Affiliate) cathy.smith at noaa.gov
Wed Feb 1 13:19:34 EST 2017


Jeff
You variable array needs to be dimensioned by the coordinate variables. 
That is

float sm(lat, lon) ;

Cathy Smith

On 2/1/17 10: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

-- 
----------------------------------------------
NOAA/ESRL PSD and CU CIRES
303-497-6263
http://www.esrl.noaa.gov/psd/people/cathy.smith/

Emails about data/webpages may get quicker responses from emailing
esrl.psd.data at noaa.gov

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20170201/f69533ed/attachment.html 


More information about the gradsusr mailing list