How to create a Cartesian coordinate system grid in python

I want to create netCDF file in Cartesian coordinate system. However, the tutorial only shows how to create it with latitude and longituede:https://unidata.github.io/python-training/workshop/CF%20Conventions/netcdf-and-cf-the-basics/
Please tell me how to create a Cartesian coordinate system grid.

2 Likes

Hi Hyeseong,

The only real difference between creating a Cartesian vs lat-lon CF data set that VAPOR can read is that with Cartesian coordinates VAPOR can’t always infer which coordinates correspond to which axes. Using the “axis” attribute as you have done in the above script should resolve the ambiguity. Have you tried it?