Open beth182 opened 5 months ago
Code examples for accounting for different resolution:
import xesmf as xe
# ds is in your old resolution shape (which is finer)
ds = xr.Dataset({"lat": (["lat"],old_LAT, {"units": "degrees_north"}),"lon": (["lon"], old_long, {"units": "degrees_east"}),})
# ds_out is the shape you want your data to be in;
ds_out = xr.Dataset({"lat": (["lat"],new_lat, {"units": "degrees_north"}),"lon": (["lon"], new_lon, {"units": "degrees_east"}),})
regridder = xe.Regridder(ds, ds_out, "conservative")
Model_regridded= regridder(Old_model, keep_attrs=True)
With documentation here: https://climate-cms.org/posts/2021-04-09-xesmf-regrid.html https://xesmf.readthedocs.io/en/latest/notebooks/Compare_algorithms.html
How best to take into account other models in the ScenarioMIP