Skip to content
Snippets Groups Projects
Commit d586966f authored by Christoph Fischer's avatar Christoph Fischer
Browse files

moved tracking config param to file

parent e8c4d55e
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,8 @@ degree_len_thr = 5
### TRACKING
duration_threshold = timedelta(days=2)
# max time allowed between detected waves
max_cmp_delta = timedelta(hours=6)
# speed range of AEWs
# at 10°N we have in longitude direction 0.00914 degrees/km (360/(40,000*cos(10deg)))
......
......@@ -16,8 +16,8 @@ in_file = join(data_dir, 'helene_25.nc') # 2008cv.nc helene_25.nc
# out_traj_dir = join(data_dir, 'trajectories/')
# init AEWIdentification strategy, can take different parameters
i_strat = AEWIdentification(wt_out_file=True, cv='cv') # TODO
t_strat = AEWTracking(max_cmp_delta=timedelta(hours=6))
i_strat = AEWIdentification(wt_out_file=False, cv='cv')
t_strat = AEWTracking()
pipeline.set_identification_strategy(i_strat)
pipeline.set_tracking_strategy(t_strat) # None TODO
......
......@@ -13,9 +13,9 @@ class AEWTracking(ObjectComparisonTracking):
Based on comparisons on wavetroughs
"""
def __init__(self, max_cmp_delta=None, **kwargs):
def __init__(self, **kwargs):
self.config = cfg
self.set_max_delta_compare(max_cmp_delta)
self.set_max_delta_compare(cfg.max_cmp_delta)
pass
def correspond(self, time1, obj1, time2, obj2):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment