From 12669e705297c4619a1d15d3db778782cb6367ec Mon Sep 17 00:00:00 2001 From: Geoff Cureton <geoff.cureton@ssec.wisc.edu> Date: Tue, 31 Oct 2017 19:00:02 +0000 Subject: [PATCH] Some tweaks to the cluster submission scripts for the iff_aero, sounder2iff, fusion_matlab and vnpaerdt packages. --- submit_fusion_matlab.py | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/submit_fusion_matlab.py b/submit_fusion_matlab.py index 29cb7c5..36d46c9 100644 --- a/submit_fusion_matlab.py +++ b/submit_fusion_matlab.py @@ -2,6 +2,7 @@ import sys from datetime import datetime, timedelta import traceback import logging +import calendar from flo.time import TimeInterval from flo.ui import safe_submit_order @@ -16,29 +17,39 @@ setup_logging(2) comp = FUSION_MATLAB() -satellite = 'snpp' -#satellite = 'aqua' -delivery_id = '20170831-1' +satellite = 'aqua' +#satellite = 'snpp' + +delivery_id = '20170920-1' # Specify the intervals -granule = datetime(2015, 4, 17, 0, 0) +#granule = datetime(2014, 7, 6, 2, 0) # Gala Wind +granule = datetime(2015, 4, 17, 0, 0) # Bryan Baum wedge = timedelta(seconds=1.) -intervals = [ +#intervals = [ #TimeInterval(granule, granule + timedelta(hours=1) - wedge) - TimeInterval(granule, granule + timedelta(days=1) - wedge) -] + #TimeInterval(granule, granule + timedelta(days=1) - wedge) + #TimeInterval(granule - timedelta(hours=1), granule + timedelta(hours=1)) + #TimeInterval(datetime(2014, 7, 1, 0, 5), datetime(2014, 8, 1) - wedge) + #TimeInterval(datetime(2014, 7, 1, 0, 0), datetime(2014, 7, 1, 0, 10) - wedge) + #TimeInterval(datetime(2015, 4, 1, 0, 0), datetime(2015, 5, 1, 0, 0) - wedge) + #TimeInterval(datetime(2015, 4, 25, 13, 0), datetime(2015, 4, 25, 14, 0) - wedge) +#] + +intervals = [TimeInterval(datetime(2015, 4, day), datetime(2015, 4, day, 23, 59)) for day in range(1, calendar.monthrange(2016, 4)[1]+1)] + LOG.info("Submitting intervals...") for interval in intervals: LOG.info("Submitting interval {} -> {}".format(interval.left, interval.right)) - + contexts = comp.find_contexts(interval, satellite, delivery_id) LOG.info("\tThere are {} contexts in this interval".format(len(contexts))) contexts.sort() - - for context in contexts: - print context + + #for context in contexts: + #print context LOG.info("\tFirst context: {}".format(contexts[0])) LOG.info("\tLast context: {}".format(contexts[-1])) -- GitLab