| 1 |
#!jinja2 |
| 2 |
|
| 3 |
[scheduling] |
| 4 |
# Start the workflow 7 hours before now ignoring minutes and seconds |
| 5 |
# * previous(T-00) takes the current time ignoring minutes and seconds. |
| 6 |
# * - PT7H subtracts 7 hours from the time. |
| 7 |
initial cycle point = previous(T-00) - PT7H |
| 8 |
# Stop the workflow 6 hours after the initial cycle point. |
| 9 |
final cycle point = +PT6H |
| 10 |
[[graph]] |
| 11 |
# Repeat every three hours starting at the initial cycle point. |
| 12 |
PT3H = """ |
| 13 |
get_observations_aldergrove => consolidate_observations |
| 14 |
get_observations_camborne => consolidate_observations |
| 15 |
get_observations_heathrow => consolidate_observations |
| 16 |
get_observations_shetland => consolidate_observations |
| 17 |
""" |
| 18 |
|
| 19 |
# Repeat every six hours starting six hours after the initial |
| 20 |
# cycle point. |
| 21 |
+PT6H/PT6H = """ |
| 22 |
consolidate_observations => forecast |
| 23 |
consolidate_observations[-PT3H] => forecast |
| 24 |
consolidate_observations[-PT6H] => forecast |
| 25 |
get_rainfall => forecast => post_process_exeter |
| 26 |
""" |
| 27 |
|
| 28 |
# Repeat every six hours starting twelve hours after the initial |
| 29 |
# cycle point. |
| 30 |
+PT12H/PT6H = """ |
| 31 |
forecast[-PT6H] => forecast |
| 32 |
""" |
| 33 |
[runtime] |
| 34 |
[[get_observations_aldergrove]] |
| 35 |
script = get-observations |
| 36 |
[[[environment]]] |
| 37 |
SITE_ID = 3917 |
| 38 |
[[get_observations_camborne]] |
| 39 |
script = get-observations |
| 40 |
[[[environment]]] |
| 41 |
SITE_ID = 3808 |
| 42 |
[[get_observations_heathrow]] |
| 43 |
script = get-observations |
| 44 |
[[[environment]]] |
| 45 |
SITE_ID = 3772 |
| 46 |
[[get_observations_shetland]] |
| 47 |
script = get-observations |
| 48 |
[[[environment]]] |
| 49 |
SITE_ID = 3005 |
| 50 |
|
| 51 |
|
| 52 |
[[consolidate_observations]] |
| 53 |
script = consolidate-observations |
| 54 |
[[[environment]]] |
| 55 |
# The dimensions of each grid cell in degrees. |
| 56 |
RESOLUTION = 0.2 |
| 57 |
# The area to generate forecasts for (lng1, lat1, lng2, lat2) |
| 58 |
DOMAIN = -12,46,12,61 # Do not change! |
| 59 |
|
| 60 |
[[get_rainfall]] |
| 61 |
script = get-rainfall |
| 62 |
[[[environment]]] |
| 63 |
# The dimensions of each grid cell in degrees. |
| 64 |
RESOLUTION = 0.2 |
| 65 |
# The area to generate forecasts for (lng1, lat1, lng2, lat2) |
| 66 |
DOMAIN = -12,46,12,61 # Do not change! |
| 67 |
|
| 68 |
[[forecast]] |
| 69 |
script = forecast 60 5 # Generate 5 forecasts at 60 minute intervals. |
| 70 |
[[[environment]]] |
| 71 |
# The dimensions of each grid cell in degrees. |
| 72 |
RESOLUTION = 0.2 |
| 73 |
# The area to generate forecasts for (lng1, lat1, lng2, lat2) |
| 74 |
DOMAIN = -12,46,12,61 # Do not change! |
| 75 |
# The path to the files containing wind data (the {variables} will |
| 76 |
# get substituted in the forecast script). |
| 77 |
WIND_FILE_TEMPLATE = $CYLC_WORKFLOW_WORK_DIR/{cycle}/consolidate_observations/wind_{xy}.csv |
| 78 |
# Offset in hours to cycles to process wind data from. |
| 79 |
WIND_CYCLES = 0, -3, -6 |
| 80 |
# The path to the rainfall file. |
| 81 |
RAINFALL_FILE = $CYLC_WORKFLOW_WORK_DIR/$CYLC_TASK_CYCLE_POINT/get_rainfall/rainfall.csv |
| 82 |
# Create the html map file in the task's log directory. |
| 83 |
MAP_FILE = "${CYLC_TASK_LOG_ROOT}-map.html" |
| 84 |
# The path to the template file used to generate the html map. |
| 85 |
MAP_TEMPLATE = "$CYLC_WORKFLOW_RUN_DIR/lib/template/map.html" |
| 86 |
|
| 87 |
[[post_process_exeter]] |
| 88 |
# Generate a weather report for Exeter 300 minutes in the future. |
| 89 |
script = post-process exeter 300 |
| 90 |
[[[environment]]] |
| 91 |
# The dimensions of each grid cell in degrees. |
| 92 |
RESOLUTION = 0.2 |
| 93 |
# The area to generate forecasts for (lng1, lat1, lng2, lat2) |
| 94 |
DOMAIN = -12,46,12,61 # Do not change! |
| 95 |
|
| 96 |
{% include 'etc/python-job.settings' %} |