2xtoNaN8

Changes missing_values into NaNs. Uses either missing_value or valid_range flags. Outputs are both real*4 or both real*8.

var1 var2 2xtoNaN8

Arguments
labeltypedescription
var1 variable Variable with missing_values
var2 variable Variable with missing_values
Returns
var1' variable Variable with missing_values replaced by NaNs
var2' variable Variable with missing_values replaced by NaNs

Description

2xtoNaN8 is a function that converts missing value indicators in up to two immediately previous variables on the stack to "NaN" ("not a number").

Example

SOURCES .NOAA .NCEP .CPC .CAMS .anomaly .temp
SOURCES .NOAA .NCEP .CPC .PRECL .prcp
2xtoNaN8


In this example, missing values of -9999. in the CAMS temperature anomaly variable and of -99.9 in the PRECL precipitation variable are converted to 'NaN'.

Live Example Link