flaglt

Flags data values less than a specified threshold

var flagval flaglt

Arguments
labeltypedescription
var variable variable on which flags are to be applied
flagval variable or constant threshold value used to apply flags
Returns
flaggedvar variable binary version of var, where values less and greater than flagval are assigned values of 1 and 0, respectively

Description

flaglt replaces values of the input variable "var" with a value of "1" if the input values are less than the user-specified threshold value "flagval" and replaces values of the input variable "var" with a value of "0" if the input values are greater than or equal to the user-specified threshold value "flagval".

Example

In the following example "12 flaglt" is applied to monthly climatological precipitation values from the UEA TS2.1 data set to denote very dry locations that receive less than 12 mm of precipitation per month, on average.

SOURCES .UEA .CRU .TS2p1 .climatology .c7100 .prcp
12 flaglt


Live Example Link


See also

Binary Data Flags: flagge flaggt flagle
Comparing Data: flagge flaggt flagle maskge maskgt maskle masklt max min
Masks: flagge flaggt flagle maskge maskgt maskle masklt masknotrange maskrange