compass.landice.tests.ismip7_calibration.objective.scale_to_ensemble

compass.landice.tests.ismip7_calibration.objective.scale_to_ensemble(unit_aggregate, param_values)[source]

Turn a unit-parameter aggregate into the (p1, p2, ...) ensemble.

The toolbox wants each modelled term indexed by (p1, p2, ...), where p1 is the melt parameter being selected and p2 a second parameter that the quadratic parameterizations do not use, so it is a singleton.

Parameters:
  • unit_aggregate (xarray.DataArray) – An aggregate (J1, J2, J3 or J4) computed at a parameter value of 1

  • param_values (numpy.ndarray) – The parameter grid to scale onto

Returns:

scaled (xarray.DataArray) – unit_aggregate broadcast over p1 and a singleton p2