Пример #1
0
    # Extract CTD runs (if files are not splitted on runs).
    # Note: Saves extended log needed by pattern used in next step with veuszPropagate
    # todo: be able provide log with (Lat,Lon) separately
    CTD_calc([
        'ini/CTD_calc_Brown.ini',
        '--db_path',
        str(path_db_raw),
        '--tables_list',
        f'{device}',
        '--out.db_path',
        str(path_db),
        '--min_samples',
        '50',  # fs*depth/speed = 200: if fs = 10Hz for depth 20m
        '--min_dp',
        '5',
        '--b_keep_minmax_of_bad_files',
        'True',
        '--path_csv',
        str(path_cruise / device / 'txt_processed'),
        '--data_columns_list',
        'Pres, Temp, Temp90, Cond, Sal',  # , sigma0, Temp90  SA,depth, soundV
        '--b_skip_if_up_to_date',
        'True',
        # todo: check it. If False need delete all previous result of CTD_calc() or set min_time > its last log time
        # '--out.tables_list', '',
        '--path_coef',
        r'd:\Work\_Python3\And0K\h5toGrid\scripts\ini\coef#Brawn_190918.txt'
    ])

if st(30):  # False: #
    # Draw {device} data profiles
Пример #2
0
if st(20,
      'Extract CTD runs to "logRuns" table, filling it with CTD & nav params'
      ):  # False: #
    # Extract CTD runs (if files are not splitted on runs).
    # Note: Saves extended log needed by pattern used in next step with veuszPropagate
    # todo: be able provide log with (Lat,Lon) separately
    st.go = () != CTD_calc([
        'ini/CTD_calc-find_runs.ini',
        '--db_path',
        str(path_db),
        '--tables_list',
        f'{device}',
        '--min_samples',
        '50',  # fs*depth/speed = 200: if fs = 10Hz for depth 20m
        '--min_dp',
        '9',
        '--b_keep_minmax_of_bad_files',
        'True',
        # '--b_skip_if_up_to_date', 'True', - not works. Delete previous table manually, and from ~not_sorted!

        # '--out.tables_list', '',
        '--b_interact',
        '0'
    ])

if st(30, f'Draw {device} data profiles'):  # False: #
    from to_pandas_hdf5.h5toh5 import h5log_names_gen
    import re

    cfg_in = {
        'log_row': {},
Пример #3
0
        '--tables_list',
        ',navigation,',  # skip waypoints
        '--table_prefix',
        r''
    ])

if st(5):  # False: #
    # Extract CTD runs (if files are not splitted on runs):
    CTD_calc([
        'CTD_calc-find_runs.ini',
        '--db_path',
        path_db,
        '--tables_list',
        'CTD_SST_48Mc',
        '--min_samples',
        '100',  # '100' is for 20m if Speed=1m/s
        '--min_dp',
        '20',
        '--b_skip_if_up_to_date',
        'True',
        # todo: check it. If False need delete all previous result of CTD_calc() or set min_time > its last log time
        # '--out.tables_list', '',
    ])

if st(7):  # False: #
    # Draw SST 48M data profiles
    veuszPropagate.main([
        'ini/veuszPropagate.ini',
        '--db_path',
        path_db,
        '--pattern_path',
Пример #4
0
                }
            }
        })

if st(20):  # False: #
    # Extract CTD runs (if files are not splitted on runs).
    # Note: Saves extended log needed by pattern used in next step with veuszPropagate
    # todo: be able provide log with (Lat,Lon) separately
    CTD_calc([
        'ini/CTD_calc-find_runs.ini',
        '--db_path',
        str(path_db),
        '--tables_list',
        f'{device}',
        '--min_samples',
        '50',  # fs*depth/speed = 200: if fs = 10Hz for depth 20m
        '--min_dp',
        '15',
        # '--b_keep_minmax_of_bad_files', 'True',
        '--b_skip_if_up_to_date',
        'True',
        # todo: check it. If False need delete all previous result of CTD_calc() or set min_time > its last log time
        # '--out.tables_list', '',
    ])

if st(30):  # False: #
    # Draw {device} data profiles
    veuszPropagate.main([
        'ini/veuszPropagate.ini',
        '--path',
        str(path_db),
        '--pattern_path',
Пример #5
0
        '--table_prefix',
        r'',
        # '--min_date', '2019-07-17T14:00:00',
    ])

if st(5):  # False: #
    # Extract CTD runs (if files are not splitted on runs):
    CTD_calc([
        'CTD_calc-find_runs.ini',
        '--db_path',
        str(path_db),
        '--tables_list',
        f'{device}',
        '--min_samples',
        '99',  # fs*depth/speed = 200: if fs = 10Hz for depth 20m
        '--min_dp',
        '9',
        '--b_keep_minmax_of_bad_files',
        'True',
        '--b_skip_if_up_to_date',
        'True',
        # todo: check it. If False need delete all previous result of CTD_calc() or set min_time > its last log time
        # '--out.tables_list', '',
    ])

if st(7):  # False: #
    # Draw {device} data profiles
    veuszPropagate.main([
        'ini/veuszPropagate.ini',
        '--path',
        str(path_db),