mpas_tools.translate.center_on_mesh(mesh, otherMesh)[source]

Translates the coordinate system of the planar MPAS mesh by shifting the origin to the center of the domain described in a separate mesh

  • mesh (xarray.Dataset) – A planar mesh to translate

  • otherMesh (xarray.Dataset) – Another planar mesh whose center will become the center of this mesh. Uses xCell,yCell or, if those fields do not exist, will secondly try x1,y1 fields