mpas_tools.ocean.coastal_tools.coastal_refined_mesh

mpas_tools.ocean.coastal_tools.coastal_refined_mesh(params, cell_width=None, lon_grd=None, lat_grd=None)[source]

Optionally create a background field of cell widths, then add a region of refined resolution to the cell widths.

Parameters:
  • params (dict) – A dictionary of parameters determining how the mesh is constructed. See mpas_tools.ocean.coastal_tools.default_params.

  • cell_width (ndarray, optional) – A 2D array of cell widths in meters. If none is provided, one a base cell_width field constructed using parameter values from params to call create_background_mesh.

  • lon_grd (ndarray, optional) – A 1D array of longitudes in degrees in the range from -180 to 180

  • lat_grd (ndarray, optional) – A 1D array of latitudes in degrees in the range from -90 to 90

Returns:

  • cell_width (ndarray) – A 2D array of cell widths in meters.

  • lon_grd (ndarray) – A 1D array of longitudes in degrees in the range from -180 to 180

  • lat_grd (ndarray) – A 1D array of latitudes in degrees in the range from -90 to 90