""" 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([]) BS_data_section = 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 BS_data_subtract_noise = np.array([]) BS_data_filter_snr = np.array([]) BS_data_averaged = np.array([]) # --- Sample Data --- fine_sediment_path = "" fine_sediment_filename = "" fine_sediment_columns = [] sample_distance_from_bank = np.array([]) # distance from left bank (m) sample_depth = np.array([]) # depth (m) sample_time = np.array([]) radius_grain = np.array([]) # grain radius (um) Ctot_fine = np.array([]) # Total concentration (g/L) D50_fine = np.array([]) # median diameter (um) frac_vol_fine = np.array([]) # Volume fraction (%) frac_vol_fine_cumul = np.array([]) # Cumulated volume fraction (%) sand_sediment_path = "" sand_sediment_filename = "" sand_sediment_columns = [] Ctot_sand = np.array([]) # Total concentration (g/L) D50_sand = np.array([]) # median diameter (um) frac_vol_sand = np.array([]) # Volume fraction (%) frac_vol_sand_cumul = np.array([]) # Cumulated volume fraction (%) Ctot_fine_per_cent = np.array([]) Ctot_sand_per_cent = np.array([])