mpas_tools.mesh.creation.mesh_definition_tools.mergeCellWidthVsLat

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

mergeCellWidthVsLat: combine two cell width distributions using a tanh function. This is inted as part of the workflow to make an MPAS global mesh.

Syntax: cellWidthOut = mergeCellWidthVsLat(lat, cellWidthInSouth, cellWidthInNorth, latTransition, latWidthTransition)

Inputs:

lat - vector of length n, with entries between -90 and 90, degrees cellWidthInSouth - vector of length n, first distribution cellWidthInNorth - vector of length n, second distribution

Optional inputs:

latTransition = 0 # lat to change from cellWidthInSouth to cellWidthInNorth, degrees latWidthTransition = 0 # width of lat transition, degrees

Outputs:

cellWidthOut - vector of length n, entries are cell width as a function of lat