If THRLO is less than or equal to THRHI, values between and including the two thresholds are copied from the input to output array. Any values in the input array greater than the upper threshold will be set to the value of Parameter NEWHI, and anything less than the lower threshold will be set to the value of Parameter NEWLO, in the output data array. Thus the output NDF is constrained to lie between the two bounds.
If THRLO is greater than THRHI, values greater than or equal to THRLO are copied from the input to output array, together with values less than or equal to THRHI. Any values between THRLO and THRHI will be set to the value of Parameter NEWLO in the output NDF.
Each replacement value may be the bad-pixel value for masking.
KAPPA --- Kernel Application Package