Closed AdamJDuncan closed 5 years ago
Without assertion:
Traceback (most recent call last):
File "./rheas", line 16, in <module>
sys.exit(rheas.run())
File "/home/ubuntu14/RHEAS/src/rheas.py", line 91, in run
forecast.execute(dbname, options)
File "/home/ubuntu14/RHEAS/src/forecast.py", line 98, in execute
runVIC(dbname, options)
File "/home/ubuntu14/RHEAS/src/forecast.py", line 57, in runVIC
models.writeForcings(method, options)
File "/home/ubuntu14/RHEAS/src/ensemble.py", line 140, in writeForcings
self._ESP(options)
File "/home/ubuntu14/RHEAS/src/ensemble.py", line 209, in _ESP
model.writeForcings(prec, tmax, tmin, wind)
File "/home/ubuntu14/RHEAS/src/vic/vic.py", line 404, in writeForcings
prec[i][2], tmax[i][2], tmin[i][2], wind[i][2]))
IndexError: list index out of range
This is not an issue with CHIRPS.
Resolved.
Trouble with most recent update to Master.
ESP forecast runs if the data exists for range between 'startdate' and 'enddate' (ie if it's a hindcast). Extend the enddate past the exiting datarange (ie forecast), and you get the new "Forcing" error. It always raised this issue in the past but just gave a warning. I tried commenting out the assertion as well but it leads to an error now. So forecast appears to require input from the forecast daterange.
Examples:
I have data to Sept 2 for both CMORPH & NCEP.
Works:
Gets ""Missing meteorological data in database for VIC simulation. Exiting...":
Only difference is enddate.