pcmdi_metrics.sea_ice.calc_iiee_annual_cycle
- pcmdi_metrics.sea_ice.calc_iiee_annual_cycle(ds_obs, ds_model, obs_data_var='ice_conc', model_data_var='siconc', syear=1988, eyear=2014, identifier=None, save_dir='output', debug=False)[source]
Compute the monthly climatological annual cycle of Integrated Ice-Edge Error (IIEE) between observational and model sea ice concentration datasets.
The function subsets the input datasets to the requested time range, computes monthly climatologies, evaluates IIEE for each month, and optionally saves monthly comparison plots plus a seasonal-cycle summary plot.
- Parameters:
ds_obs (
xarray.Dataset) – Observational dataset containing sea ice concentration and astatus_flagvariable used to identify land points on the observational grid.ds_model (
xarray.Dataset) – Model dataset containing sea ice concentration to compare with the observations.obs_data_var (
str, optional) – Name of the observational sea ice concentration variable inds_obs. Default is"ice_conc".model_data_var (
str, optional) – Name of the model sea ice concentration variable inds_model. Default is"siconc".syear (
int, optional) – Starting year of the analysis period, inclusive. Default is1988.eyear (
int, optional) – Ending year of the analysis period, inclusive. Default is2014.identifier (
str, optional) – Text identifier that to be added to diagnostics’ headser and as a part of output filessave_dir (
strorNone, optional) – Directory where figures are saved. IfNone, figures are not saved. Default is"output".debug (
bool, optional) – IfTrue, print additional diagnostic information. Default isFalse.
- Returns:
dict– Dictionary containing metadata and monthly IIEE metrics.
Examples
This function is mainly intended for development testing or command-line execution. In package usage, call
calc_iiee_annual_cycle()directly:>>> import xcdat as xc >>> ds_obs = xc.open_dataset("data/ice_conc_nh_ease2-250_cdr-v3p0_198801-202012.nc") >>> ds_model = xc.open_mfdataset("data/siconc_SImon_E3SM-1-0_historical_r1i1p1f1_*_*.nc") >>> from pcmdi_metrics.sea_ice import calc_iiee_annual_cycle >>> result = calc_iiee_annual_cycle( ... ds_obs=ds_obs, ... ds_model=ds_model, ... obs_data_var="ice_conc", ... model_data_var="siconc", ... syear=2010, ... eyear=2014, ... save_dir="output", ... )