regrid_mesh_to_mesh.py#

Horizontal regrid UGrid mesh to UGrid mesh application.#

Regrids data from a source UGrid mesh to a target UGrid mesh using ugants.regrid.command_line.RegridMeshToMesh. The result is written to an output file. The application supports horizontal regridding only. The default regrid algorithm used is area weighted (conservative).

See also

ugants.regrid

Command Line Interface#

usage: regrid_mesh_to_mesh.py [-h] [--target-mesh-name TARGET_MESH_NAME]
                              --target-mesh TARGET_MESH
                              --horizontal-regrid-scheme
                              {conservative,bilinear,nearest}
                              [--tolerance TOLERANCE]
                              source output

Positional Arguments#

source

Path to source.

output

Path to output the results from RegridMeshToMesh.

Named Arguments#

--target-mesh-name

The name of the mesh contained in the file provided to ‘–target-mesh’.

--target-mesh

Path to target_mesh.

--horizontal-regrid-scheme

Possible choices: conservative, bilinear, nearest

--tolerance

Default is 0.