flagge

Flags data values greater than or equal to a specified threshold

var flagval flagge

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

Description

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

Example

In the following example flagge is used to identify and help count the number of stations in the GHCN precipitation data set that received precipitation greater than or equal to 500 millimeters in December 2006. "500 flagge" replaces precipitation data values of at least 500 mm with a value of "1" and replaces precipitation values below 500 mm with a value of "0". "[IWMO] sum" sums the flagged data values over the station grid "IWMO" to give a count of the number of stations with at least 500 mm of precipitation.

SOURCES .NOAA .NCDC .GHCN .v2beta
prcp
T (Dec 2006) VALUE
500 flagge
[IWMO]sum


Live Example Link


See also

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