compass.mesh.IcosahedralMeshStep.get_subdivisions

static IcosahedralMeshStep.get_subdivisions(cell_width)[source]

Find the number of subdivisions of an icosahedron to achieve a resolution as close as possible to cell_width.

Parameters:

cell_width (float) – The approximate size in km of each cell in the resulting mesh.

Returns:

subdivisions (int) – The number of subdivisions of the icosahedron