58 lines
1.2 KiB
Python
58 lines
1.2 KiB
Python
""" this file includs global variables shared between tab """
|
|
|
|
import numpy as np
|
|
import pandas as pd
|
|
import datetime
|
|
|
|
# --- load raw data ---
|
|
path_BS_raw_data = ""
|
|
filename_BS_raw_data = ""
|
|
BS_raw_data = np.array([])
|
|
r = np.array([])
|
|
freq = np.array([])
|
|
freq_text = list()
|
|
time = np.array([])
|
|
|
|
path_BS_noise_data = ""
|
|
filename_BS_noise_data = ""
|
|
BS_noise_data = np.array([])
|
|
snr = np.array([])
|
|
|
|
date = []
|
|
date_noise = []
|
|
hour = []
|
|
hour_noise = []
|
|
nb_profiles = 0
|
|
nb_profiles_per_sec = 0.0
|
|
nb_cells = 0
|
|
cell_size = 0.0
|
|
pulse_length = 0.0
|
|
nb_pings_per_sec = 0
|
|
nb_pings_averaged_per_profile = 0.0
|
|
kt = np.array([])
|
|
gain_rx = np.array([])
|
|
gain_tx = np.array([])
|
|
|
|
snr = np.array([])
|
|
snr_reshape = np.array([])
|
|
time_snr = np.array([])
|
|
|
|
# --- reshape raw data for table of values in Acoustic Data tab ---
|
|
time_reshape = np.array([])
|
|
r_reshape = np.array([])
|
|
BS_raw_data_reshape = np.array([])
|
|
snr_reshape = np.array([])
|
|
DataFrame_acoustic = pd.DataFrame()
|
|
|
|
# --- Processed data in Acoustic Data Tab and used in Acoustic processing tab ---
|
|
BS_data = np.array([])
|
|
Noise_data = np.array([])
|
|
SNR_data = np.array([])
|
|
t = np.array([])
|
|
r_bottom = np.array([])
|
|
val_bottom = np.array([])
|
|
ind_bottom = np.array([])
|
|
freq_bottom_detection = 0
|
|
|
|
|