Skip to contents

This module creates fields with a constant value or missing value. The fields in infile are handled as a mask. A value not equal to zero is treated as \"true\ zero is treated as \"false\".

Usage

cdo_ifnotthenc(ifile, c = NULL, ofile = NULL)

cdo_ifthenc(ifile, c = NULL, ofile = NULL)

Arguments

ifile

String with the path to the input file.

c

FLOAT - Constant

ofile

String with the path to the output file.

Details

ifthenc     If then constant
                     / c      if i(t,x) NE 0  AND  i(t,x) NE miss
            o(t,x) =
                     \\ miss   if i(t,x) EQ 0  OR   i(t,x) EQ miss
ifnotthenc  If not then constant
                     / c      if i(t,x) EQ 0  AND  i(t,x) NE miss
            o(t,x) =
                     \\ miss   if i(t,x) NE 0  OR   i(t,x) EQ miss