Commit 59bf558e authored by Carl Schreck's avatar Carl Schreck

adding args to ibt monitor

parent 9e5df604
......@@ -8,6 +8,7 @@ __license__ = "BSD-3.0"
import cjs # '~carl/lib-py'
import ibtracs # '~carl/lib-py'
from datetime import datetime
import argparser
import numpy as np
import pandas as pd
import calendar
......@@ -16,12 +17,18 @@ import calendar
cjs.tstamp('Here we go!')
# These are some parameters that could be useful to have up top
basins = ['NA', 'EP']
end_year = datetime.today().year
parser = argparse.ArgumentParser()
parser.add_argument('--year', default=datetime.today().year)
parser.add_argument('--month', default=(datetime.today().month - 1))
args = parser.parse_args()
end_year = args.end_year
end_month = args.end_month
do_ytd = False
if do_ytd:
months = range(1, datetime.today().month)
months = range(1, end_month + 1)
else:
months = [datetime.today().month - 1]
months = [end_month]
thresh = 35
cjs.tstamp('Downloading/opening data')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment