Commit f845697a authored by Beatriz Recinos's avatar Beatriz Recinos
Browse files

support transition between years

parent eebc7c7b
......@@ -27,15 +27,16 @@ from sst_tools import plot_sst as plot_sst
from sst_tools import workflow_sst as workflow_sst
# Define year
year = int(sys.argv[1])
start_year = int(sys.argv[1])
# Define start_date
start_month = int(sys.argv[2])
start_day = int(sys.argv[3])
# Month and days to process for CCI SST data
month = int(sys.argv[4])
day_to_plot = int(sys.argv[5]) # From SLURM ARRAY
year = int(sys.argv[4])
month = int(sys.argv[5])
day_to_plot = int(sys.argv[6]) # From SLURM ARRAY
lat_bnds = [-90, -25]
lon_bnds = [-120, 120]
......@@ -44,7 +45,7 @@ extent = np.append(lon_bnds, lat_bnds)
print(extent)
# Define date arrays to process buoy data
start_date = datetime(year=year, month=start_month, day=start_day)
start_date = datetime(year=start_year, month=start_month, day=start_day)
end_date = datetime(year=year, month=month, day=day_to_plot,
hour=23, minute=59, second=59)
......
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