Commit 89165248 authored by Modellers Operational's avatar Modellers Operational

Bug fix river module to use correct wrf directories

parent 2ae02f7c
......@@ -32,10 +32,10 @@ else:
missing_dates = np.asarray([start_date + dt.timedelta(days=int(this_ind)) for this_ind in np.arange(0, (end_date - start_date).days + 1)])
for this_missing_loop in np.arange(0, no_miss_loops):
for this_missing_loop in np.arange(-1, no_miss_loops):
new_missing_dates = []
for this_date in missing_dates:
if this_missing_loop > 0:
if this_missing_loop >= 0:
print('Trying again to fill for {}'.format(this_date))
else:
print(this_date)
......
[command]
default = cp update_river_data.py ${RIVER_MODEL_PATH}; cd ${RIVER_MODEL_PATH}; python3 update_river_data.py ${WRF_ARCHIVE_DIR} ${START_DAY}; rm update_river_data.py
default = cp update_river_data.py ${RIVER_MODEL_PATH}; cd ${RIVER_MODEL_PATH}; python3 update_river_data.py ${WRF_ARCHIVE_DIR} ${WRF_ARCHIVE_DATEFMT} ${START_DAY}; rm update_river_data.py
......@@ -32,7 +32,7 @@ AIR_PRESSURE_ON='T'
WRF_RUN_SUITE='wrf'
WRF_FORECAST_FILE_DIR='/gpfs1/users/modellers/modop/Models/WRF_transfer_dir/'
WRF_ARCHIVE_DIR='/data/sthenno1/scratch/modop/Model/WRF/output'
WRF_ARCHIVE_DATEFMT='%Y%m%d'
WRF_ARCHIVE_DATEFMT='%Y-%m-%d'
## River setup
......
......@@ -142,6 +142,7 @@
WRF_FORECAST_FILE_DIR={{WRF_FORECAST_FILE_DIR}}
WRF_ARCHIVE_DIR={{WRF_ARCHIVE_DIR}}
WRF_ARCHIVE_DATEFMT={{WRF_ARCHIVE_DATEFMT}}
COMMON_FILES_PATH={{COMMON_FILES_PATH}}
WRF_ARCHIVE_DATESTR=$(rose date --print-format={{WRF_ARCHIVE_DATEFMT}} $CYLC_TASK_CYCLE_POINT)
......
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