help creating a netcdf file with an irregular grid projection (stereographic)

Any good tutorials or examples that people could point me to on
creating a netcdf file for a grid projected with a stereographic
projection? It's not clear to me how you would create the lat / lon
dimensions.

Thanks,
john

···

--
Configuration
``````````````````````````
Basemap: 1.0
Matplotlib: 1.0.0

Be careful of saying “irregular” grid when what you really mean is non-rectilinear. If the data can be represented in a matrix, then chances are it is regular in some way.

There are a number of schemes for how to organize your data in netcdf. One way I have seen is to represent the data in a 1D array and then have parallel arrays of lat and lon coordinates. This works no matter how irregular the data grid is (particularly nice with sparse data).

If the data can be represented in a regular grid, then you can represent the data in 2D in the netcdf file, and have parallel arrays of 2-D lat and lon arrays. The key point of these two methods is that you would have all three arrays use an index (or two) as the common dimension.

Does that help?

Ben Root

···

On Fri, Oct 29, 2010 at 7:04 PM, John <washakie@…287…> wrote:

Any good tutorials or examples that people could point me to on

creating a netcdf file for a grid projected with a stereographic

projection? It’s not clear to me how you would create the lat / lon

dimensions.

Thanks,

john

John: The nice thing about netcdf is there are conventions for almost any kind of geophysical variable and/or grid.

See http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.4/apf.html

-Jeff

···

On 10/29/10 6:04 PM, John wrote:

Any good tutorials or examples that people could point me to on
creating a netcdf file for a grid projected with a stereographic
projection? It's not clear to me how you would create the lat / lon
dimensions.

Thanks,
john