I have netCDF dataset with x, y as spatial dimensions (in Lambert conic projection) which are just enumerated values [0:495], [0:309], and lat, lon variables as 2D meshes with shapes (309, 495).
I want to assign lon, lat variables to x, y dimensions to get projected data over longitudes and latitudes, but I couldn't find any reference how to do this.
Converting existing dataset would be great, but acceptable options are also recreating new netCDF dataset from existing, or generating hdf-5 instead.
Sorry to realize that my question is unintelligible. I'll try with another example which does not imply geographic spatial projection.
I have netCDF dataset with 3 dimensions. Vertical dimension altitude is expressed in units hPa, while dataset contains variable height which maps each altitude level to meters. I want to change netCDF dataset and assign height variable to altitude dimension. So that when I read netCDF dataset with a program of choice, it will read vertical dimension as height in meters, instead altitude in hPa.
Hope it's easier to understand now.
ncdump -hon your dataset? - Spencer Hill