compass.landice.tests.mismipplus.tasks.approx_cell_count

compass.landice.tests.mismipplus.tasks.approx_cell_count(resolution, gutter_length)[source]

Approximate the number of cells based on the resolution ratio squared times the number of cells at 1km resolution. Also do a crude area scaling to account for the additional cells from the gutter (if present).

Parameters:
  • resolution (float) – The nominal resolution requested in the configuration file.

  • gutter_length (float) – Desired gutter length [m] on the eastern domain.

Returns:

cell_count (int) – the number of cells in the mesh