Function: irlrs_adroop Purpose: applies anti-droop correction for LRS data. Category: IRAS LRS File: irlrs_const.c Author: P.R. Roelfsema Use: IRLRS_ADROOP( DETNO , Input integer DATA , Input real ( >= NDATA ) NDATA ) Input integer IRLRS_adroop returns: 0 success. -1 DETNO is not a legal LRS detector. -5 could not get memory for internal buffers to interpolate over undefined values. DETNO - LRS detector number. DATA - array containing data ( in mV ) to be AD-corrected. NDATA - number of points for which AD correction is to be applied. ADroop performs the anti droop correction by integrating the signal in the DATA array starting when the data value is larger than the droop limit (which can be set by the user using ADLIM=). Before actually performing the anti droop correction, the data are checked on undefined values. If any undefined values are found, the data are interpolated over the undefineds. *** THPF= High-pass filter time constants [ all 10 sec. ] *** ADLIM= Anti-droop limits [ all 0.01 mV. ] Updates: Dec 17, 1990: PRR, Creation date