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, ...), wherep1is the melt parameter being selected andp2a 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_aggregatebroadcast overp1and a singletonp2