Due to a shift in policy, from 0900 GMT on Wednesday 14th July 2021, we will be disabling ssh access to the server for external users. External users who wish to continue to access code repositories on the server will need to switch to using https. This can be accomplished in the following way: 1) On the repo on gitlab, use the clone dialogue and select ‘Clone with HTTPS’ to get the address of the repo; 2) From within the checkout of your repo run: $ git remote set-url origin HTTPS_ADDRESS. Here, replace HTTPS_ADDRESS with the address you have just copied from GitLab. Pulls and pushes will now require you to enter a username and password rather than using a ssh key. If you would prefer not to enter a password each time, you might consider caching your login credentials.

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