-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig_general.py
65 lines (56 loc) · 2.23 KB
/
config_general.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import os
# --- Reading data --- #
reading_mode = 'Disk'
# Where are the data stored - Disk or Cloud. For cloud, only Google Cloud Platform is implemented
flex_nt = False
# Flexible number of samples per file. Not fully tested
data_path = 'Data'
# Path (relative or absolute) to the folder in which data are stored. Files are read in order after sorting by name
first_file_index = 0
# Serial number of first file to read (useful for visualizing different portions of the dataset)
# --- Data and sampling parameters ###
n_chan = 1280
# number of channels in raw DAS files
last_live_ch = 1160
# last live channel (beyond which we see optical noise). Data are usable up to this channel
first_live_ch = 199
# first live channel for analysis
nt = 30000
# number of time samples in raw DAS files.
dt = 0.0005
# time between adjacent samples (sec)
d_chan = 1.02
# spacing between adjacent channels, after correction for stretching factors
gauge_length = 10.0
# DAS gauge length
# --- Processing parameters --- #
proc_steps = ['median', 'clip', 'bandpass', 'normalize','downsample']
# Processing steps applied to loaded data. Can be: 'median', 'clip', 'bandpass', 'normalize', 'downsample'
# median - median filter (sample-by-sample)
# clip - order filter, percentage chosen by user
# bandpass - bandpass filter, lower and upper bounds chosen by user
# lowpass - lowpass filter, chosen by user
# normalize - trace by trace normalization, type chosen by user
# downsample - downsampling, integer decimation factor chosen by user
clip_perc = 99.0
# Percentage for clipping
bp_low = 2.0
# Lower boundary of bandpass applied (Hz)
bp_high = 100.0
# Higher boundary of bandpass applied (Hz).
lp_cutoff = 100.0
# Cutoff frequency for low-pass filter
norm_type = 'std'
# Type of trace-by-trace normalization (see signal_processing for details)
dt_decim_fac = 4
# Integer decimation factor, Anti-alias filter applied beforehand.
n_ch_stack = 1
# Number of nearby channels to stack and downsample in space
overlap_samples = 0
# number of samples (original sampling rate) in the buffer around each data file to be returned.
# --- Consistency checks - do not modify --- #
orig_dt = dt
if data_path.endswith('/'):
data_path = data_path[:-1]
batch_process_folders = []
events_db_name = []