compass.landice.tests.ismip7_calibration.terms.uniform_area
- compass.landice.tests.ismip7_calibration.terms.uniform_area(template, resolution, cell_dims)[source]
Build a uniform cell-area array, for structured grids.
Convenience so that a structured-grid case can call the same functions:
area = uniform_area(melt, 8000.0, ('y', 'x')).- Parameters:
template (xarray.DataArray) – Any array carrying the cell dimensions and their coordinates.
resolution (float) – Grid spacing in m; cell area is
resolution**2.cell_dims (sequence of str) – The cell dimensions.
- Returns:
xarray.DataArray – Constant array of
resolution**2, overcell_dimsonly.