masknotrange

Masks out all values of a variable not included in the indicated range. Commonly used to select stations within a particular lat/lon range (see Live Example).

variable range_min range_max masknotrange

Arguments
labeltypedescription
variable variable variable on which mask will be applied
range_min number lower threshold of range
range_max number upper threshold of range
Returns
restricted_var variable variable with all values outside of range specified by range_min and range_max masked out
Description
masknotrange masks out all values of a variable not included in the indicated range. Commonly used to select stations within a particular lat/lon range.
Example
lat -20 20 masknotrange
Live Example Link


See also

Masks: flagge flaggt flagle flaglt maskge maskgt maskle masklt maskrange