Commit a04f1319 authored by Modellers Operational's avatar Modellers Operational

Merge branch 'master' of gitlab.ecosystem-modelling.pml.ac.uk:pml-modelling/rose_fvcom_setup

parents 585d41be a553305f
[command] [command]
default = today_output=/${ARCHIVE_DIR}/${START_DAY}/${GRID_NAME}_0001.nc; echo ${today_output} default = today_output=/${ARCHIVE_DIR}/${FORECAST_DAY}/${GRID_NAME}_0001.nc; echo ${today_output}
python3 plot_var.py ${today_output} temp 8 18; python3 plot_var.py ${today_output} salinity 31 36; python3 plot_var.py ${today_output} temp 8 18; python3 plot_var.py ${today_output} salinity 31 36;
mkdir -p /${PLOT_DIR}/${START_DAY}/; mv *.png /${PLOT_DIR}/${START_DAY}/ mkdir -p /${PLOT_DIR}/${FORECAST_DAY}/; mv *.png /${PLOT_DIR}/${FORECAST_DAY}/
[command] [command]
default = dst=/pml${ARCHIVE_DIR}/${START_DAY}/; default = dst=/pml${ARCHIVE_DIR}/${FORECAST_DAY}/;
src=${ROSE_DATAC}/output/${GRID_NAME}_0001.nc; src=${ROSE_DATAC}/output/${GRID_NAME}_0001.nc;
ssh ceto6 -t "rsync -aph --no-o --no-g $src $dst"; ssh ceto6 -t "rsync -aph --no-o --no-g $src $dst";
[command] [command]
default = src=${ROSE_DATAC}/output/${GRID_NAME}_0001.nc; default = src=${ROSE_DATAC}/output/${GRID_NAME}_0001.nc;
dst=/pml${ARCHIVE_DIR}today/; dst=/pml${ARCHIVE_DIR}/today/;
rm /pml${ARCHIVE_DIR}today/*; rm /pml${ARCHIVE_DIR}/today/*;
ssh ceto6 -t "rsync -aph --no-o --no-g $src $dst"; ssh ceto6 -t "rsync -aph --no-o --no-g $src $dst";
...@@ -8,9 +8,11 @@ MAX_NODES=10 ...@@ -8,9 +8,11 @@ MAX_NODES=10
FORECAST=True FORECAST=True
REMOTE_USER='modop' REMOTE_USER='modop'
INITIAL_START_DATE='2019-01-31T00:00:00Z' INITIAL_START_DATE='2019-02-05T00:00:00Z'
FINAL_CYCLE_POINT='NONE' FINAL_CYCLE_POINT='NONE'
RUNDAYS=1 HINDCAST_DAYS=1
FORECAST_DAYS=2
MAIL_TO='mbe@pml.ac.uk' MAIL_TO='mbe@pml.ac.uk'
## Grid properties and files ## Grid properties and files
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
{% endif %} {% endif %}
{% if FORECAST %} {% if FORECAST %}
write_run_namelist => run_fvcom => transfer_data_today => transfer_data write_run_namelist => run_fvcom => transfer_data => transfer_data_today
{% else %} {% else %}
write_run_namelist => run_fvcom => transfer_data write_run_namelist => run_fvcom => transfer_data
{% endif %} {% endif %}
...@@ -88,12 +88,14 @@ ...@@ -88,12 +88,14 @@
mail to = {{MAIL_TO}} mail to = {{MAIL_TO}}
submission timeout = P1D submission timeout = P1D
[[[environment]]] [[[environment]]]
START_DATE=$(rose date --print-format='%Y-%m-%d %H:%M:%S' $CYLC_TASK_CYCLE_POINT) START_DATE=$(rose date --offset=-P{{HINDCAST_DAYS|int}}D --print-format='%Y-%m-%d %H:%M:%S' $CYLC_TASK_CYCLE_POINT)
END_DATE=$(rose date --offset=P1D --print-format='%Y-%m-%d %H:%M:%S' $CYLC_TASK_CYCLE_POINT) END_DATE=$(rose date --offset=P{{FORECAST_DAYS|int}}D --print-format='%Y-%m-%d %H:%M:%S' $CYLC_TASK_CYCLE_POINT)
START_DATE_STR=$(rose date --print-format='%Y-%m-%d_%H:%M:%S' $CYLC_TASK_CYCLE_POINT) START_DATE_STR=$(rose date --offset=-P{{HINDCAST_DAYS|int}}D --print-format='%Y-%m-%d_%H:%M:%S' $CYLC_TASK_CYCLE_POINT)
END_DATE_STR=$(rose date --offset=P1D --print-format='%Y-%m-%d_%H:%M:%S' $CYLC_TASK_CYCLE_POINT) END_DATE_STR=$(rose date --offset=P{{FORECAST_DAYS|int}}D --print-format='%Y-%m-%d_%H:%M:%S' $CYLC_TASK_CYCLE_POINT)
START_DAY=$(rose date --print-format='%Y-%m-%d' $CYLC_TASK_CYCLE_POINT) START_DAY=$(rose date --offset=-P{{HINDCAST_DAYS|int}}D --print-format='%Y-%m-%d' $CYLC_TASK_CYCLE_POINT)
END_DAY=$(rose date --offset=P1D --print-format='%Y-%m-%d' $CYLC_TASK_CYCLE_POINT) END_DAY=$(rose date --offset=P{{FORECAST_DAYS|int}}D --print-format='%Y-%m-%d' $CYLC_TASK_CYCLE_POINT)
FORECAST_DAY=$(rose date --print-format='%Y-%m-%d' $CYLC_TASK_CYCLE_POINT)
GRID_NAME={{GRID_NAME}} GRID_NAME={{GRID_NAME}}
RIVER_MODEL_PATH={{RIVER_MODEL_PATH}} RIVER_MODEL_PATH={{RIVER_MODEL_PATH}}
......
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