-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
data problemProblem with model dataProblem with model data
Description
WRF451Q
datasets have inconsistent grid coordinates across variables of the same simulation. This came up when I was trying to align those datasets. This is an example:
import xarray as xr
wrf_tas = xr.open_dataset("/mnt/CORDEX_CMIP6_tmp/sim_data/CORDEX-CMIP6/DD/EUR-12/CESAM-UA/ERA5/evaluation/r1i1p1f1/WRF451Q/v1-r1/mon/tas/v20250520/tas_EUR-12_ERA5_evaluation_r1i1p1f1_CESAM-UA_WRF451Q_v1-r1_mon_198001-198912.nc")
wrf_pr = xr.open_dataset("/mnt/CORDEX_CMIP6_tmp/sim_data/CORDEX-CMIP6/DD/EUR-12/CESAM-UA/ERA5/evaluation/r1i1p1f1/WRF451Q/v1-r1/mon/pr/v20250520/pr_EUR-12_ERA5_evaluation_r1i1p1f1_CESAM-UA_WRF451Q_v1-r1_mon_198001-198912.nc")
now compare:
wrf_tas.rlon.data
gives
array([-10.7745409 , -10.67769241, -10.58078861, -10.48377323,
-10.38669205, -10.28950214, -10.19225407, -10.09489632,
-9.99748039, -9.89994907, -9.80235958, -9.70466328,
...
while
wrf_pr.rlon.data
gives
array([-10.32560158, -10.23278809, -10.13992214, -10.04694939,
-9.95391273, -9.86077309, -9.76757717, -9.6742754 ,
-9.58091831, -9.48745155, -9.39392757, -9.30030251,
...
Unfortunately, we can not rewrite those coordinates because WRF451Q
also has another own definition of EUR-12
in rotated pole coordinates, see WCRP-CORDEX/archive-specifications#28
Metadata
Metadata
Assignees
Labels
data problemProblem with model dataProblem with model data