[gradsusr] writing a netCDF file that conforms to COARDS conventions to be opened using sdfopen
Jeff Duda
jeffduda319 at gmail.com
Wed Feb 1 13:38:32 EST 2017
Cathy,
My grid is irregular (rotated lat/lon projection), so my coordinate
variables are 2-dimensional themselves. Thus I can't really set lat and lon
as dimensions, and thus can't dimension the array by those coordinate
variables. Does this mean I cannot conform this file to the standards
necessary for sdfopen to be used?
Jeff
On Wed, Feb 1, 2017 at 12:19 PM, Cathy Smith (NOAA Affiliate) <
cathy.smith at noaa.gov> wrote:
> 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 listgradsusr at gradsusr.orghttp://gradsusr.org/mailman/listinfo/gradsusr
>
>
> --
> ----------------------------------------------
> NOAA/ESRL PSD and CU CIRES
> 303-497-6263http://www.esrl.noaa.gov/psd/people/cathy.smith/
>
> Emails about data/webpages may get quicker responses from emailing esrl.psd.data at noaa.gov
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
--
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/efecda37/attachment-0001.html
More information about the gradsusr
mailing list