-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrun_conversion_peakolimrad.py
80 lines (73 loc) · 3.07 KB
/
run_conversion_peakolimrad.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#! /usr/bin/env python3
# coding=utf-8
import datetime
#import matplotlib
#matplotlib.use('Agg')
#import numpy as np
#import matplotlib.pyplot as plt
#import sys, os
import peakTree
import peakTree.helpers as h
import gc
import logging
log = logging.getLogger('peakTree')
log.setLevel(logging.INFO)
#log.addHandler(logging.StreamHandler())
#pTB = peakTree.peakTreeBuffer(system='limrad_peako')
# IDEA: for now run with temporal_average = False
# t_avg: number of neighbors in time dimension (both sides)
# h_avg: number of neighbors in range dimension (both sides)
# span: loess span
# width_thres: minimum peak width [m/s]
# prom_thres: minimum peak prominence in dBZ
#pTB.load_limrad_spec('data/20181216-1210-1215_LIMRAD94_spectra.nc', load_to_ram=True)
#pTB.load_limrad_spec('data/20181216-1510-1515_LIMRAD94_spectra.nc', load_to_ram=True)
#pTB.load_limrad_spec('data/20190223-1440-1500_LIMRAD94_spectra.nc', load_to_ram=True)
#pTB.load('data/210319_140002_P05_ZEN.LV0_rpgpy.NC', load_to_ram=True)
#pTB.load('data/rpgpy_limrad_new/190911_030001_P05_ZEN.LV0.NC', load_to_ram=True)
#pTB.load('data/190911_030001_P05_ZEN.LV0.rpgpy.NC', load_to_ram=True)
# with the binary reader
# pTB = peakTree.peakTreeBuffer(system='limrad_punta')
# pTB.load('data/190911_030001_P05_ZEN.LV0', load_to_ram=True)
# pTB.assemble_time_height('output/', fname_system=True)
# del(pTB); gc.collect()
#
# pTB = peakTree.peakTreeBuffer(system='limrad_punta')
# pTB.load('data/190313_080000_P05_ZEN.LV0', load_to_ram=True)
# pTB.assemble_time_height('output/', fname_system=True)
# del(pTB); gc.collect()
#
# pTB = peakTree.peakTreeBuffer(system='limrad_peako')
# pTB.load('data/210319_140002_P05_ZEN.LV0', load_to_ram=True)
# pTB.assemble_time_height('output/', fname_system=True)
# del(pTB); gc.collect()
#
pTB = peakTree.peakTreeBuffer(system='rpg94_eri')
pTB.load('data/rpg94_lacros/220220_020002_P02_ZEN.LV0', load_to_ram=True)
pTB.assemble_time_height('output/', fname_system=True)
del(pTB); gc.collect()
#
# pTB = peakTree.peakTreeBuffer(system='rpg94_eri')
# pTB.load('data/rpg94_lacros/220220_050003_P02_ZEN.LV0', load_to_ram=True)
# pTB.assemble_time_height('output/', fname_system=True)
# del(pTB); gc.collect()
#
# pTB = peakTree.peakTreeBuffer(system='rpg94_eri')
# pTB.load('data/rpg94_lacros/220221_020000_P02_ZEN.LV0', load_to_ram=True)
# pTB.assemble_time_height('output/', fname_system=True)
# del(pTB); gc.collect()
#
# pTB = peakTree.peakTreeBuffer(system='rpg94_eri')
# pTB.load('data/rpg94_lacros/220225_030002_P02_ZEN.LV0', load_to_ram=True)
# pTB.assemble_time_height('output/', fname_system=True)
# del(pTB); gc.collect()
#
# pTB = peakTree.peakTreeBuffer(system='rpg94_eri')
# pTB.load('data/rpg94_lacros/220302_120000_P02_ZEN.LV0', load_to_ram=True)
# pTB.assemble_time_height('output/', fname_system=True)
# del(pTB); gc.collect()
#
# pTB = peakTree.peakTreeBuffer(system='rpg94_eri')
# pTB.load('data/rpg94_lacros/220226_080003_P02_ZEN.LV0', load_to_ram=True)
# pTB.assemble_time_height('output/', fname_system=True)
# del(pTB); gc.collect()