diff --git a/python_scripts/arc_sst_anom.py b/python_scripts/arc_sst_anom.py index 505e317..de06e38 100644 --- a/python_scripts/arc_sst_anom.py +++ b/python_scripts/arc_sst_anom.py @@ -2,15 +2,17 @@ import json import matplotlib.pyplot as plt import numpy, pandas import requests +import sys sst_urls = { "world": "https://climatereanalyzer.org/clim/sst_daily/json/oisst2.1_world2_sst_day.json", "natlan": "https://climatereanalyzer.org/clim/sst_daily/json/oisst2.1_natlan1_sst_day.json" } +print(sys.argv[1]) start_range = 29 start_year = 1982 -res = requests.get(sst_urls['world']) +res = requests.get(sst_urls[list(sst_urls)[int(sys.argv[1])]]) data = json.loads(res.text) data = data[1:-3]