mpas_tools.mesh.creation.jigsaw_driver.jigsaw_driver

mpas_tools.mesh.creation.jigsaw_driver.jigsaw_driver(cellWidth, x, y, on_sphere=True, earth_radius=6371000.0, geom_points=None, geom_edges=None, logger=None)[source]

A function for building a jigsaw mesh

Parameters:
  • cellWidth (ndarray) – The size of each cell in the resulting mesh as a function of space

  • x (ndarray) – The x and y coordinates of each point in the cellWidth array (lon and lat for spherical mesh)

  • y (ndarray) – The x and y coordinates of each point in the cellWidth array (lon and lat for spherical mesh)

  • on_sphere (logical, optional) – Whether this mesh is spherical or planar

  • earth_radius (float, optional) – Earth radius in meters

  • geom_points (ndarray, optional) – list of point coordinates for bounding polygon for planar mesh

  • geom_edges (ndarray, optional) – list of edges between points in geom_points that define the bounding polygon

  • logger (logging.Logger, optional) – A logger for the output if not stdout