fmaussion / salem

Add geolocalised subsetting, masking, and plotting operations to xarray
http://salem.readthedocs.io
Other
186 stars 44 forks source link

Small changes that allow for the usage of the rotated pole COSMO data or similarly structured datasets #213

Closed Richteny closed 1 year ago

Richteny commented 3 years ago

These are the small changes I had to implement to evaluate COSMO-CLM data which comes with a rotated pole grid. The changes are very specific to that dataset and might need some extension to be valid for other rotated pole datasets.

Namely I added rlat and rlon to the known dimension names and built upon the open_metum_dataset function and the _salem_grid_from_dataset function to allow the usage of GeoNetcdf and open_metum_dataset and find and assign the correct pyproj string.

Note: One could rename the open_metum_dataset to something like open_rotatedpole_dataset since it should work on metum and COSMO datasets.