note: make_old_runoffs.yaml is identical to nowcast.yaml but puts the river output files somewhere other that /results to avoid accidental overwriting
import arrow
from nowcast.workers import make_runoff_file
from types import SimpleNamespace
import yaml
start = arrow.get(2014, 9, 11)
end = arrow.get(2014, 9, 30)
with open('../config/make_old_runoffs.yaml', 'rt') as f:
config = yaml.safe_load(f)
for day in arrow.Arrow.range('day', start, end):
args = SimpleNamespace(run_date=day)
checklist = make_runoff_file.make_runoff_file(args, config)
print (checklist)
{'long': '/data/sallen/MEOPAR/forcing/RLonFraCElse_y2014m09d10.nc', 'allArms': '/data/sallen/MEOPAR/forcing/RallFraCElse_y2014m09d10.nc'} {'long': '/data/sallen/MEOPAR/forcing/RLonFraCElse_y2014m09d11.nc', 'allArms': '/data/sallen/MEOPAR/forcing/RallFraCElse_y2014m09d11.nc'} {'long': '/data/sallen/MEOPAR/forcing/RLonFraCElse_y2014m09d12.nc', 'allArms': '/data/sallen/MEOPAR/forcing/RallFraCElse_y2014m09d12.nc'} {'long': '/data/sallen/MEOPAR/forcing/RLonFraCElse_y2014m09d13.nc', 'allArms': '/data/sallen/MEOPAR/forcing/RallFraCElse_y2014m09d13.nc'} {'long': '/data/sallen/MEOPAR/forcing/RLonFraCElse_y2014m09d14.nc', 'allArms': '/data/sallen/MEOPAR/forcing/RallFraCElse_y2014m09d14.nc'} {'long': '/data/sallen/MEOPAR/forcing/RLonFraCElse_y2014m09d15.nc', 'allArms': '/data/sallen/MEOPAR/forcing/RallFraCElse_y2014m09d15.nc'} {'long': '/data/sallen/MEOPAR/forcing/RLonFraCElse_y2014m09d16.nc', 'allArms': '/data/sallen/MEOPAR/forcing/RallFraCElse_y2014m09d16.nc'} {'long': '/data/sallen/MEOPAR/forcing/RLonFraCElse_y2014m09d17.nc', 'allArms': '/data/sallen/MEOPAR/forcing/RallFraCElse_y2014m09d17.nc'} {'long': '/data/sallen/MEOPAR/forcing/RLonFraCElse_y2014m09d18.nc', 'allArms': '/data/sallen/MEOPAR/forcing/RallFraCElse_y2014m09d18.nc'} {'long': '/data/sallen/MEOPAR/forcing/RLonFraCElse_y2014m09d19.nc', 'allArms': '/data/sallen/MEOPAR/forcing/RallFraCElse_y2014m09d19.nc'} {'long': '/data/sallen/MEOPAR/forcing/RLonFraCElse_y2014m09d20.nc', 'allArms': '/data/sallen/MEOPAR/forcing/RallFraCElse_y2014m09d20.nc'} {'long': '/data/sallen/MEOPAR/forcing/RLonFraCElse_y2014m09d21.nc', 'allArms': '/data/sallen/MEOPAR/forcing/RallFraCElse_y2014m09d21.nc'} {'long': '/data/sallen/MEOPAR/forcing/RLonFraCElse_y2014m09d22.nc', 'allArms': '/data/sallen/MEOPAR/forcing/RallFraCElse_y2014m09d22.nc'} {'long': '/data/sallen/MEOPAR/forcing/RLonFraCElse_y2014m09d23.nc', 'allArms': '/data/sallen/MEOPAR/forcing/RallFraCElse_y2014m09d23.nc'} {'long': '/data/sallen/MEOPAR/forcing/RLonFraCElse_y2014m09d24.nc', 'allArms': '/data/sallen/MEOPAR/forcing/RallFraCElse_y2014m09d24.nc'} {'long': '/data/sallen/MEOPAR/forcing/RLonFraCElse_y2014m09d25.nc', 'allArms': '/data/sallen/MEOPAR/forcing/RallFraCElse_y2014m09d25.nc'} {'long': '/data/sallen/MEOPAR/forcing/RLonFraCElse_y2014m09d26.nc', 'allArms': '/data/sallen/MEOPAR/forcing/RallFraCElse_y2014m09d26.nc'} {'long': '/data/sallen/MEOPAR/forcing/RLonFraCElse_y2014m09d27.nc', 'allArms': '/data/sallen/MEOPAR/forcing/RallFraCElse_y2014m09d27.nc'} {'long': '/data/sallen/MEOPAR/forcing/RLonFraCElse_y2014m09d28.nc', 'allArms': '/data/sallen/MEOPAR/forcing/RallFraCElse_y2014m09d28.nc'} {'long': '/data/sallen/MEOPAR/forcing/RLonFraCElse_y2014m09d29.nc', 'allArms': '/data/sallen/MEOPAR/forcing/RallFraCElse_y2014m09d29.nc'}