-
Notifications
You must be signed in to change notification settings - Fork 0
/
BBP_RTQC_global_vars.py
38 lines (30 loc) · 1.8 KB
/
BBP_RTQC_global_vars.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# these are the tests and their codes
tests = {"A": "Negative (<5 dbar)",
"A2": "Negative (>=5 dbar)",
"B": "Noisy Profile",
"C": "High-Deep Value",
"E": "Missing Data",
"G": "Parking Hook"
}
# Negative BBP
A_MIN_BBP700 = 0 # [1/m]
#A_MAX_BBP700 = 0.01 # [1/m] REVISED VALUE (very conservative estimate based on histograms in fig 2 of Bisson et al., 2019, 10.1364/OE.27.030191)
#A_MAX_BBP700 = 0.03 # [1/m] REVISED VALUE (very conservative estimate based on histograms in fig 2 of Bisson et al., 2019, 10.1364/OE.27.030191)
A_MAX_FRACTION_OF_BAD_POINTS = 0.1
# Noisy profile
B_RES_THRESHOLD = 0.0005 # [1/m] threshold for relative residuals
B_FRACTION_OF_PROFILE_THAT_IS_OUTLIER = 0.1 # fraction of profile with relative residuals above RES_THRESHOLD
B_PRES_THRESH = 100 # [dbar] this is to avoid flagging profiles with spikes in surface data (likely good data)
# High-Deep Value
C_DEPTH_THRESH = 700 # [dbar] pressure threshold below which the test acts
C_DEEP_BBP700_THRESH = 0.0005 # [1/m] threshold for bbp at depth
C_N_DEEP_POINTS = 5 # number of points deeper than C_DEPTH_THRESH required for the test to proceed
# Parking hook
G_DELTAPRES1 = 50 # [dbar] difference in PRES from parking pressure over which the test is implemented
G_DELTAPRES2 = 20 # [dbar] difference in PRES from parking pressure use to compute test baseline
G_DEV = 0.0002 # [1/m] deviation from baseline that identifies anomalous data points
G_DELTAPRES0 = 100 # [dbar] define how close PARK_PRES has to be to max(PRES)
# for the test to proceed
# Missing Data
E_MIN_N_PERBIN = 1 # [-] minimum number of data points per bin
E_MAXPRES = 1000 # [dbar] pressure below which the profile is considered shallow