mpas_tools.mesh.creation.mesh_definition_tools.AtlanticPacificGrid

mpas_tools.mesh.creation.mesh_definition_tools.AtlanticPacificGrid(lat, lon, cellWidthInAtlantic, cellWidthInPacific)[source]

Combine two cell width distributions using a tanh function.

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

  • lon (ndarray) – vector of length m, with entries between -180, 180, degrees

  • cellWidthInAtlantic (float, optional) – vector of length n, cell width in Atlantic as a function of lon, km

  • cellWidthInPacific (float, optional) – vector of length n, cell width in Pacific as a function of lon, km

Returns:

cellWidthOut (ndarray) – m by n array, grid cell width on globe, km