compass.landice.tests.ismip7_calibration.replication.Replication
- class compass.landice.tests.ismip7_calibration.replication.Replication(test_group)[source]
A test case that reproduces the published ISMIP7 quadratic calibration on the ISMIP 8 km grid, through compass’s own code path.
The protocol reports, for the quadratic local parameterization on the ISMIP 8 km grid (Sect. 4.3.1 and Fig. 5), 5th / 50th / 95th percentiles of K = 4.75e-5 / 8.5e-5 / 1.375e-4. Reproducing those with compass’s area-weighted, mesh-agnostic terms driving the vendored objective function validates the whole of the parameter-selection stage before any MALI run exists, and is the regression test that the unstructured generalization must not break.
This test case deliberately uses the published inputs, including the spatially varying 8 km salinity fields. It replicates a published calculation, so it must not be changed to match the constant-salinity choice the MALI calibration makes; it validates the parameter-selection machinery, not MALI’s physics.
- __init__(test_group)[source]
Create the test case
- Parameters:
test_group (compass.landice.tests.ismip7_calibration.Ismip7Calibration) – The test group that this test case belongs to
Methods
__init__(test_group)Create the test case
add_step(step[, run_by_default])Add a step to the test case
check_validation()Check the test case's "validation" dictionary to see if validation failed.
Check that the ISMIP7 dataset path has been supplied
run()This method is deprecated.
validate()Check the percentiles against the published values, and against a baseline if one was provided