Commit 0ec53b8d authored by Modellers Operational's avatar Modellers Operational

Add hindcast/forecast days option

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