Description
The project py-cordex includes all CORDEX domains: https://py-cordex.readthedocs.io/en/latest/. It should be quite easy to generate pyresample metadata on-the-fly from the py-cordex project to offer all CORDEX domains as predefined projections in pyku.
Concretely, the pyku project permits to regrid data with either pyresample or xesmf by offering standardized projections. For example, one can project to EUR-11 like so:
ds.pyku.project('EUR-11')
The projections are defined using the pyresample format. For example:
EUR-11:
description: EUR-11 rotated longitude latitude grid in accordance with CORDEX
domains requirements https://cordex.org/domains/
projection:
proj: ob_tran
o_proj: longlat
o_lon_p: 0
o_lat_p: 39.25
lon_0: 18
datum: WGS84
no_defs: null
type: crs
shape:
height: 412
width: 424
area_extent:
lower_left_xy: [-28.43, -23.43]
upper_right_xy: [18.21, 21.89]
CF-conform projection information are defined as separate metadata:
EUR-11:
crs_name: rotated_pole
crs_data:
grid_mapping_name: rotated_latitude_longitude
grid_north_pole_latitude: 39.25
grid_north_pole_longitude: -162.0
long_name: coordinates of the rotated North Pole
y_coordinate: 'rlat'
x_coordinate: 'rlon'
CORDEX_domain: 'EUR-11'
WKT or Proj4 metadata can be automatically determined with the pyku dependency pyresample, or added to the configuration file.
Strictly speaking, the data from py-cordex can already be used to generate the transformations without change:
https://deutscherwetterdienst.github.io/pyku/tutorials/geographic_projections.html#Custom-projection-definition
Also of note is that pyku already offers possibility to resample unstructured grids. Here however, work will be needed in pyku to simplify the usage. Documentation on how to regrid ICON data can be found here:
https://deutscherwetterdienst.github.io/pyku/tutorials/CMORization.html#Attach-the-georeferencing
https://deutscherwetterdienst.github.io/pyku/tutorials/CMORization.html#Regridding-the-data
Description
The project py-cordex includes all CORDEX domains: https://py-cordex.readthedocs.io/en/latest/. It should be quite easy to generate pyresample metadata on-the-fly from the py-cordex project to offer all CORDEX domains as predefined projections in pyku.
Concretely, the pyku project permits to regrid data with either pyresample or xesmf by offering standardized projections. For example, one can project to
EUR-11like so:The projections are defined using the pyresample format. For example:
CF-conform projection information are defined as separate metadata:
WKT or Proj4 metadata can be automatically determined with the pyku dependency pyresample, or added to the configuration file.
Strictly speaking, the data from py-cordex can already be used to generate the transformations without change:
https://deutscherwetterdienst.github.io/pyku/tutorials/geographic_projections.html#Custom-projection-definition
Also of note is that pyku already offers possibility to resample unstructured grids. Here however, work will be needed in pyku to simplify the usage. Documentation on how to regrid ICON data can be found here:
https://deutscherwetterdienst.github.io/pyku/tutorials/CMORization.html#Attach-the-georeferencing
https://deutscherwetterdienst.github.io/pyku/tutorials/CMORization.html#Regridding-the-data