I am using netCDF4-python to create netCDF4 files.
To create a dimensional variable:
createDimension
createVariable
To create other variables:
createVariable(dset.name, dset.dtype, dims)
It works well with panoply or ncdump, but when examined with
cdo sinfo
Grid coordinates shows "generic" instead of "lonlat", and unsurprisingly cdo cant subset the dataset:
cdo sellonlatbox (Abort): Unsupported grid type!
Does anyone here know the solution? Thanks,
-- Jay