Skip to content
Snippets Groups Projects
Commit 30dd811f authored by Geoff Cureton's avatar Geoff Cureton
Browse files

Some updates to the fusion_matlab and vnpaerdt submission scripts, to use some...

Some updates to the fusion_matlab and vnpaerdt submission scripts, to use some updated SIPS utility modules.
parent b5cfb07f
No related branches found
No related tags found
No related merge requests found
import sys
from datetime import datetime, timedelta
import traceback
import logging
import calendar
import logging
from flo.time import TimeInterval
from flo.ui import safe_submit_order
from timeutil import TimeInterval, datetime, timedelta
from flo.sw.fusion_matlab import FUSION_MATLAB
from flo.sw.fusion_matlab.utils import setup_logging
......@@ -17,17 +16,22 @@ setup_logging(2)
comp = FUSION_MATLAB()
satellite = 'aqua'
#satellite = 'snpp'
#satellite = 'aqua'
#granule_length = timedelta(minutes=5)
satellite = 'snpp'
granule_length = timedelta(minutes=6)
version = '1.0dev0'
delivery_id = '20170920-1'
version = '1.0dev0'
# Specify the intervals
#granule = datetime(2014, 7, 6, 2, 0) # Gala Wind
granule = datetime(2015, 4, 17, 0, 0) # Bryan Baum
granule = datetime(2015, 4, 17) # Bryan Baum
#granule = datetime(2015, 4, 17, 17, 55) # Bryan Baum
wedge = timedelta(seconds=1.)
#intervals = [
#TimeInterval(granule, granule + granule_length - wedge)
#TimeInterval(granule, granule + timedelta(hours=1) - wedge)
#TimeInterval(granule, granule + timedelta(days=1) - wedge)
#TimeInterval(granule - timedelta(hours=1), granule + timedelta(hours=1))
......@@ -37,14 +41,14 @@ wedge = timedelta(seconds=1.)
#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)]
intervals = [TimeInterval(datetime(2015, 4, day), datetime(2015, 4, day, 23, 59)) for day in range(1, calendar.monthrange(2015, 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)
contexts = comp.find_contexts(interval, satellite, version)
LOG.info("\tThere are {} contexts in this interval".format(len(contexts)))
contexts.sort()
......
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