Skip to content
Snippets Groups Projects
Commit d71b876c authored by tomrink's avatar tomrink
Browse files

add extra time_filter method

parent 1169c531
No related branches found
No related tags found
No related merge requests found
......@@ -1716,6 +1716,24 @@ def time_filter_2(times, dt_str_0=None, dt_str_1=None, format_code='%Y-%m-%d_%H:
return keep_times, keep_idxs
def time_filter_3(icing_dct, ts_0, ts_1):
keep_reports = []
keep_times = []
keep_lons = []
keep_lats = []
for ts in list(icing_dct.keys()):
if ts_0 <= ts < ts_1:
rpts = icing_dct[ts]
for idx, tup in enumerate(rpts):
keep_reports.append(tup)
keep_times.append(ts)
keep_lats.append(tup[0])
keep_lons.append(tup[1])
return keep_times, keep_lons, keep_lats, keep_reports
def analyze_moon_phase(icing_dict):
ts = api.load.timescale()
eph = api.load('de421.bsp')
......
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