Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

seaduck.get_masks

abandon_stuck

abandon_stuck(p)

Abandon those stucked in mud.


get_mask_arrays

get_mask_arrays(od)

Mask all staggered valocity points.

A wrapper around mask_u_node, mask_v_node, mask_w_node. If there is no maskC in the dataset, just return nothing is masked.

Parameters

Returns


get_masked

get_masked(od, ind, cuvwg='C')

Return whether points are masked.

Return whether the indexes of intersts are masked or not.

Parameters


mask_u_node

mask_u_node(maskC, tp)

Mask out U-points.

for MITgcm indexing, U is defined on the left of the cell, When the C grid is dry, U are either: a. dry; b. on the interface, where the cell to the left is wet. if b is the case, we need to unmask the udata, because it makes some physical sense.

Parameters

Returns


mask_v_node

mask_v_node(maskC, tp)

Mask out v-points.

for MITgcm indexing, V is defined on the “south” side of the cell, When the C grid is dry, V are either: a. dry; b. on the interface, where the cell to the downside is wet. if b is the case, we need to unmask the vdata.

Parameters

Returns


mask_w_node

mask_w_node(maskC, tp=None)

Mask out W-points.

for MITgcm indexing, W is defined on the top of the cell, When the C grid is dry, W are either: a. dry; b. on the interface, where the cell above is wet. if b is the case, we need to unmask the wdata.

Parameters

Returns


which_not_stuck

which_not_stuck(p)

Investigate which points are in land mask.