RAFSEGSUB

NAME
SYNOPSIS
DESCRIPTION

NAME

rafsegsub − conditionally substitutes one variable for another

SYNOPSIS

rafsegsub variable sub_variable test_variable new_variable

DESCRIPTION

Rafsegsub expects a Candis file on the standard input. The same Candis file is written to the standard output, except that a new field with the name ‘‘new_variable’’ is added. ‘‘New_variable’’ contains the values of the field ‘‘variable’’ when the values of ‘‘test_variable’’ are less than or equal to zero. Otherwise, the values of ‘‘sub_variable’’ are written with the following modification: A linear function is added which makes ‘‘sub_variable’’ continuous with ‘‘variable’’ at the transition points.