diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index a9e555aab9873fb92c498f0b4f2bf54c2d40117d..de17a38da6ae571e2451f954c8d252f6dd8fb4aa 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -9,6 +9,7 @@ import h5py import datetime from datetime import timezone goes_date_format = '%Y%j%H' +import re goes16_directory = '/arcdata/goes/grb/goes16' # /year/date/abi/L1b/RadC clavrx_dir = '/apollo/cloud/scratch/ICING/' @@ -203,7 +204,10 @@ def analyze(ice_dct, no_ice_dct): sidxs = np.argsort(times) for i in sidxs: - print(files[i]) + filename = os.path.split(files[i])[1] + so = re.search('_s\\d{11}', filename) + dt_str = so.group() + print(dt_str) def create_file(filename, ds_list, ds_types):