From 51f305cdb08c66a627464236d0debe816bde1bef Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Wed, 1 Sep 2021 09:47:08 -0500
Subject: [PATCH] snapshot...

---
 modules/icing/pirep_goes.py | 23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)

diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py
index 0a383550..242715e8 100644
--- a/modules/icing/pirep_goes.py
+++ b/modules/icing/pirep_goes.py
@@ -4,7 +4,7 @@ import pickle
 import matplotlib.pyplot as plt
 import os
 from util.util import get_time_tuple_utc, GenericException, add_time_range_to_filename, is_night, is_day, \
-    get_grid_values_all, check_oblique, make_times, find_bin_index
+    get_grid_values_all, check_oblique, make_times, find_bin_index, get_timestamp
 from aeolus.datasource import CLAVRx, GOESL1B
 from util.geos_nav import GEOSNavigation
 import h5py
@@ -1678,3 +1678,24 @@ def make_for_full_domain_predict(clvrx_file, name_list=l1b_ds_list):
 
     return grd_dct, ll, cc
 # -------------------------------------------------------------------------------------------
+
+
+# --------- Throw away code --------------------------------------------------------------------
+jdays= [['070', '071', '072', '073', '074', '075'], ['078', '079', '080', '081', '082', '084', '085', '086', '087', '088'],
+        ['106', '107', '108', '109', '110', '111', '112', '113', '114'], ['116', '117', '118', '119'],
+        ['128', '129', '130', '131', '132', '133', '134','135'], ['138', '139', '140'], ['149', '150', '151'],
+        ['163', '164', '165'], ['202', '203', '204', '205', '206'], ['231', '232', '233'], ['251', '252', '253', '254']]
+
+
+def make_ts_bins():
+    edges = []
+    nbins = len(jdays)
+    for k in range(nbins):
+        num = len(jdays[k])
+        jd_a = jdays[k][0]
+        ts_a = get_timestamp('2019-'+jd_a+'_00:00', format_code='%Y-%j_%H:%M')
+        jd_b = jdays[k][num-1]
+        ts_b = get_timestamp('2019-'+jd_b+'_23:59', format_code='%Y-%j_%H:%M')
+        edges.append(ts_a)
+        edges.append(ts_b)
+    return edges
\ No newline at end of file
-- 
GitLab