generate_mask.py#

Generate land and sea binary masks#

Using a UGrid land_area_fraction input file, generate either a land_binary_mask, or a sea_binary_mask. Masks follow the cf convention where:

  • land_binary_mask: 1 = land, 0 = sea

  • sea_binary_mask: 1 = sea, 0 = land

See also

ugants.mask

Command Line Interface#

usage: generate_mask.py [-h] --mask-type {land,sea} land_fraction output

Positional Arguments#

land_fraction

Path to land_fraction.

output

Path to output the results from GenerateMask.

Named Arguments#

--mask-type

Possible choices: land, sea