// // PURPOSE: Trigger the first two on minimum fluorescence threshold and outlier // rejection only. Trigger the rest using the peak detection algorithm. // // AUTHORS: 1) Yanwu and Rob; 2 October 2009 // // Omitting a threshold shuts it off. // // For outlier rejection, there must be ngood samples (that pass the // threshold tests) out of the last nsamples to trigger a gulp. // flag_PTL_INL = 0; // 0 = Phytoplankton Thin Layer (PTL); 1 = Intermediate Nepheloid Layer (INL) flag_BaselineWindow_RunningOrSliding = 1; // Window type for calculating the signal baseline = %d (0 = from time zero to now; 1 = over a number of yo-yo profiles) num_profiles_BaselineWindow = 10; // Number of yo-yo profiles to average for giving the signal background = %d (No more than 200. Used only when window type for calculating the signal baseline = 1) flag_ClosenessOfTwoCrossings = 0; // Whether requiring closeness of the 1st and 2nd crossings. 0 = No; 1 = Yes. flag_PeaksAtSurface = 1; // Whether peaks are likely to be at sea surface. 0 = No; 1 = Yes. ratio_pktrigs_ctrltrigs = 10; // One control-triggering after every 3rd peak-triggering. len_window_full = 8; //timewindow_peakbaseline = 3600.0; // Seconds timewindow_peakbaseline = 1200.0; // Seconds alpha_fl = 1.5; alpha_bb = 1.2; beta_fl = 0.6; beta_bb = 0.6; delta_dep = 0.5; // Meters delta_fl_bb_rise = 1.0e-4; // Raw fl676, or bb470, or bb676 measurement delta_fl_bb_drop = 1.0e-5; // Raw fl676, or bb470, or bb676 measurement dep_shallow_upwelling = 5.0; // In meters. Shallow depth bound for detecting an upwelling water column. dep_deep_upwelling = 20.0; // In meters. Deep depth bound for detecting an upwelling water column thresh_TempDiffInUpwelling = 1.0; // Deg. C. Threshold of temperature difference btn shallow and deep depths for detecting an upwelling water column. thresh_NumProfilesInUpwelling = 5; // Minimum number of consecutive profiles for declaring an upwelling water column. num_ProfilesAvgTempdiff = 5; // Number of profiles for averaging vertical temperature difference num_ProfilesGap = 5; // Gap (in number of profiles) btn present profile and the last profile participating in averaging vertical temperature difference step_TempDiffInFront = 0.2; // Deg. C. Step change of temperature difference btn shallow and deep depths for detecting a front thresh_TempDiffInFront = 1.5; // Deg. C. Upper limit of temperature difference btn shallow and deep depths for detecting a front thresh_NumProfilesInFront = 3; // Minimum number of consecutive profiles for declaring a front. peakDetection0 = 1; upwellingDetection0 = 0; frontDetection0 = 0; mindepth0 = 1.5; // Meters timemaxwait0 = 10800.0; // Seconds peakDetection1 = 1; upwellingDetection1 = 0; frontDetection1 = 0; mindepth1 = 1.5; // Meters timelockoutpeak1 = 3600.0; // Seconds refGulperNumberTimeMaxWait1 = 0; timemaxwait1 = 7200.0; // Seconds peakDetection2 = 1; upwellingDetection2 = 0; frontDetection2 = 0; mindepth2 = 1.5; // Meters timelockoutpeak2 = 3600.0; // Seconds refGulperNumberTimeMaxWait2 = 1; timemaxwait2 = 7200.0; // Seconds peakDetection3 = 0; upwellingDetection3 = 0; frontDetection3 = 1; mindepth3 = 1.5; // Meters timelockoutfront3 = 300.0; // Seconds timemaxwait3 = 28800.0; // Seconds peakDetection4 = 0; upwellingDetection4 = 0; frontDetection4 = 1; mindepth4 = 1.5; // Meters timelockoutfront4 = 300.0; // Seconds refGulperNumberTimeMaxWait4 = 3; timemaxwait4 = 3600.0; // Seconds peakDetection5 = 0; upwellingDetection5 = 0; frontDetection5 = 1; mindepth5 = 1.5; // Meters timelockoutfront5 = 300.0; // Seconds refGulperNumberTimeMaxWait5 = 4; timemaxwait5 = 3600.0; // Seconds peakDetection6 = 0; upwellingDetection6 = 0; frontDetection6 = 1; mindepth6 = 1.5; // Meters timelockoutfront6 = 300.0; // Seconds refGulperNumberTimeMaxWait6 = 5; timemaxwait6 = 3600.0; // Seconds peakDetection7 = 0; upwellingDetection7 = 1; frontDetection7 = 0; mindepth7 = 10.0; // Meters maxdepth7 = 11.0; // Meters timelockoutupwelling7 = 1000.0; // Seconds timemaxwait7 = 43200.0; // Seconds peakDetection8 = 0; upwellingDetection8 = 1; frontDetection8 = 0; mindepth8 = 10.0; // Meters maxdepth8 = 11.0; // Meters timelockoutupwelling8 = 500.0; // Seconds refGulperNumberTimeMaxWait8 = 7; timemaxwait8 = 7200.0; // Seconds peakDetection9 = 0; upwellingDetection9 = 1; frontDetection9 = 0; mindepth9 = 10.0; // Meters maxdepth9 = 11.0; // Meters timelockoutupwelling9 = 500.0; // Seconds refGulperNumberTimeMaxWait9 = 8; timemaxwait9 = 7200.0; // Seconds