flagle

Flags data values less than and equal to a specified threshold

var flagval flagle

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 than or equal to flagval and greater than flagval are assigned values of 1 and 0, respectively

Description

flagle replaces values of the input variable "var" with a value of "1" if the input values are less than or equal to 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 the user-specified threshold value "flagval".

Example

In the following example, "28 flagle" replaces monthly sea surface temperature values less than or equal to 28°C with a "1" and SST values greater than 28°C with a "0".

SOURCES .NOAA .NCDC .ERSST .version2 .SST
28 flagle


Live Example Link


See also

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