mpas_tools.mesh.creation.mesh_definition_tools.mergeCellWidthVsLat

mpas_tools.mesh.creation.mesh_definition_tools.mergeCellWidthVsLat(lat, cellWidthInSouth, cellWidthInNorth, latTransition, latWidthTransition)[source]

Combine two cell width distributions using a tanh function. This is intended as part of the workflow to make an MPAS global mesh.

Parameters:
  • lat (ndarray) – vector of length n, with entries between -90 and 90, degrees

  • cellWidthInSouth (ndarray) – vector of length n, first distribution

  • cellWidthInNorth (ndarray) – vector of length n, second distribution

  • latTransition (float) – lat to change from cellWidthInSouth to cellWidthInNorth in degrees

  • latWidthTransition (float) – width of lat transition in degrees

Returns:

cellWidthOut (ndarray) – vector of length n, entries are cell width as a function of lat