Frank Delaglio, Ph.D.

19804 Maycrest Way
Germantown MD 20876 USA

301 806-0867
delaglio@nmrscience.com



NMRPipe Processing Functions
SET: Set Data to a Constant.

Flag Argument Default Description
 -r cR 0.0 Constant for Real Data.
 -i cI 0.0 Constant for Imaginary Data.
 -c cC 0.0 Constant for Real and Imaginary Data.
Processing Region (Valid Units: Pts Hz ppm %).
 -x1 pnt1 1 First Point to set.
 -xn pntN SIZE Last Point to set.

SET sets the value of the real or imaginary part of each vector in the data stream to a given constant. It can operate on all points, or on a range of points within each vector. It is possible to specify separate constants for the real and imaginary parts of the data, however the imaginary constant will only be used if the current dimension of the input data has an imaginary part.

OPTIONS

-c cC
Specifies the same constant for setting both the real part of the data, and also to the imaginary part if it exists.

-r cR
Specifies the constant for setting the real part of the data.

-i cI
Specifies the constant for setting the imaginary part of the data. This has no effect if the input data has no imaginary part.

-x1 pnt1
Specifies the location of the first point in range of points to adjust, with default units in points. The default value is 1, the first point in the data vector. The valid unit labels are: Pts Hz ppm %. When specifying a location with a unit label, there should be no spaces between the numerical value and the label.

-xn pntN
Specifies the location of the last point in range of points to adjust, with default units in points. The default value is the last point in the data vector. The valid unit labels are: Pts Hz ppm %. When specifying a location with a unit label, there should be no spaces between the numerical value and the label.

EXAMPLES

The following example sets all points in the data to 1.0:

   nmrPipe -fn SET -c 1.0

The following example sets all real points to 1.0, and all imaginary points to -1.0, if any:

   nmrPipe -fn SET -r 1.0 -i -1.0

The following example sets the range of points from 5.5ppm to 4.5ppm to zero:

   nmrPipe -fn SET -c 100.0 -x1 5.5ppm -xn 4.5ppm

SEE ALSO

The SET function has corresponding functions ADD and MULT.