compass.landice.tests.ismip7_calibration.terms.calculate_term1

compass.landice.tests.ismip7_calibration.terms.calculate_term1(ensemble, area, mask, basins, melt_obs, cell_dims, var='melt_rate')[source]

J1: basin-integrated present-day melt, in Gt yr-1.

Parameters:
  • ensemble (xarray.Dataset) – Present-day ensemble, with var indexed by at least p1 and p2.

  • area (xarray.DataArray) – Cell area (m2), contributing-cell mask, and IMBIE2 basin number per cell. Basin numbers follow the ISMIP7 0-based convention, which differs by one from MALI’s; see the basin-numbering note in the developer guide for why that matters.

  • mask (xarray.DataArray) – Cell area (m2), contributing-cell mask, and IMBIE2 basin number per cell. Basin numbers follow the ISMIP7 0-based convention, which differs by one from MALI’s; see the basin-numbering note in the developer guide for why that matters.

  • basins (xarray.DataArray) – Cell area (m2), contributing-cell mask, and IMBIE2 basin number per cell. Basin numbers follow the ISMIP7 0-based convention, which differs by one from MALI’s; see the basin-numbering note in the developer guide for why that matters.

  • melt_obs (pandas.DataFrame) – Observational targets, with columns 'BMR (Gt/yr)' and 'BMR uncert (Gt/yr)', one row per basin in basin order.

  • cell_dims (sequence of str) – Cell dimensions of the ensemble.

  • var (str, optional) – Name of the melt-rate variable.

Returns:

model, obs_mean, obs_sigma (xarray.DataArray)