environmentaltools.processes.create_mesh

environmentaltools.processes.create_mesh(params, mesh='global')[source]

Create a computational mesh for the model domain.

Parameters:
  • params (dict) –

    Dictionary containing mesh parameters including:

    • {mesh}_length_xfloat

      Domain length in x-direction

    • {mesh}_length_yfloat

      Domain length in y-direction

    • {mesh}_nodes_xint

      Number of nodes in x-direction

    • {mesh}_nodes_yint

      Number of nodes in y-direction

    • {mesh}_anglefloat

      Rotation angle in degrees

    • {mesh}_coords_xfloat

      Origin x-coordinate

    • {mesh}_coords_yfloat

      Origin y-coordinate

  • mesh (str, optional) – Mesh identifier prefix. Default is ‘global’.

Returns:

  • lon (np.ndarray) – Longitude coordinates of mesh nodes

  • lat (np.ndarray) – Latitude coordinates of mesh nodes