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

Jennifer M Adams jadams21 at gmu.edu
Wed Feb 1 16:50:10 EST 2017


That’s correct; the sdfopen command will not work. You’ll need to interpolate your data to a rectilinear lat/lon grid before writing it out to a file. —Jennifer


On Feb 1, 2017, at 1:38 PM, Jeff Duda <jeffduda319 at gmail.com<mailto:jeffduda319 at gmail.com>> wrote:

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<mailto: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 list
gradsusr at gradsusr.org<mailto: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<mailto:esrl.psd.data at noaa.gov>

_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr




--
Jeff Duda
Post-doctoral research fellow
University of Oklahoma School of Meteorology
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr

--
Jennifer Miletta Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
George Mason University



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


More information about the gradsusr mailing list