Create variable paccta
Process Step
Description Compute target variable ‘paccta’ based on variable ‘pac’, ‘region_id’,’date’ and ‘pop’. Calculate total precipitation by date in mm for each grid cell to be included in the data. The total precipitation over 24 hours is the sum of the individual total precipitation values for each hour. Precipitation measured in m converted to mm. Calculate total precipitation by date for each region as an average of the grid cell value, weighted by variable ‘pop’ that is based on global human settlements statistics.
This step uses a script written in Python3.
Diagram of the Process Step
digraph Diagram {
graph [
stylesheet="../_static/custom.css"
fontnames = "svg" # "... rock solid standards compliant SVG", see: https://graphviz.org/faq/font/#what-about-svg-fonts
rankdir="LR"
nodesep="0.15"
tooltip=" "
];
node [
fontname="sans-serif"
];
Step [
shape="rect"
style="filled, rounded"
width="3"
height="0.8"
fontcolor="white"
fillcolor="#4363d8"
fontsize="13pt"
label="Create variable paccta\n(current process step)"
tooltip=" "
];
# input parameter
parameter_e68f489e_0d26_4c35_8eac_2e6e7d5d6f66 [
shape="rect"
style="filled"
width="2"
height="0.1"
fontcolor="blue"
fontsize="10pt"
URL="https://ess-search.nsd.no/en/variable/9cd32e48-b5bb-4617-ad01-a53195d0fdd9"
target="_blank"
label=<<i>Variable pac:</i><br/>Total precipitation>
tooltip="Input parameter for current process step"
fillcolor="#ffe119"
];
parameter_e68f489e_0d26_4c35_8eac_2e6e7d5d6f66:e -> Step:w [
minlen="2"
];
parameter_30f06f3d_2e0b_4066_8e89_618be51244ce [
shape="rect"
style="filled"
width="2"
height="0.1"
fontcolor="blue"
fontsize="10pt"
URL="https://ess-search.nsd.no/en/variable/812c4035-6886-43aa-a18c-8d797390a8b4"
target="_blank"
label=<<i>Variable region_id:</i><br/>Nuts 2016 region code>
tooltip="Input parameter for current process step"
fillcolor="#ffe119"
];
parameter_30f06f3d_2e0b_4066_8e89_618be51244ce:e -> Step:w [
minlen="2"
];
parameter_3d3e48b0_dc3f_41c3_927e_5a5fb2fb5b72 [
shape="rect"
style="filled"
width="2"
height="0.1"
fontcolor="blue"
fontsize="10pt"
URL="https://ess-search.nsd.no/en/variable/982b1f8a-f1d8-4651-9d87-ef708d0c88b2"
target="_blank"
label=<<i>Variable pop:</i><br/>Estimated population in grid<br/>cell>
tooltip="Input parameter for current process step"
fillcolor="#ffe119"
];
parameter_3d3e48b0_dc3f_41c3_927e_5a5fb2fb5b72:e -> Step:w [
minlen="2"
];
parameter_a4c5a88e_5f12_4bb1_9be7_3f54c54ff4f6 [
shape="rect"
style="filled"
width="2"
height="0.1"
fontcolor="blue"
fontsize="10pt"
URL="https://ess-search.nsd.no/en/variable/0cae5306-79bf-4976-b25a-3f790aa312be"
target="_blank"
label=<<i>Variable date:</i><br/>Date>
tooltip="Input parameter for current process step"
fillcolor="#ffe119"
];
parameter_a4c5a88e_5f12_4bb1_9be7_3f54c54ff4f6:e -> Step:w [
minlen="2"
];
# previous step
step_4fd913d0_c3b2_4e95_8a3b_90a5d34a56d3 [
shape="rect"
style="filled, rounded"
width="2"
height="0.075"
fontcolor="white"
fillcolor="#4363d8"
fontsize="10pt"
label="Create variable date"
URL="../step_4fd913d0-c3b2-4e95-8a3b-90a5d34a56d3.html"
target="_parent"
tooltip="Previous process step:\nCompute target variable 'date' based on variable 'time' and 'region' to convert from UTC to local time zones"
];
step_4fd913d0_c3b2_4e95_8a3b_90a5d34a56d3:e -> parameter_a4c5a88e_5f12_4bb1_9be7_3f54c54ff4f6:w [
minlen="2"
];
# output parameter
parameter_d8db2e66_7d6f_4899_98b2_43d2454be2b2 [
shape="rect"
style="filled"
width="2"
height="0.1"
fontcolor="blue"
fontsize="10pt"
URL="https://ess-search.nsd.no/en/variable/19fc2d5a-6475-4c71-84fd-b8175f7729f3"
target="_blank"
label=<<i>Variable paccta:</i><br/>Total precipitation, date>
tooltip="Output parameter for current process step"
fillcolor="#dcbeff"
];
Step:e -> parameter_d8db2e66_7d6f_4899_98b2_43d2454be2b2:w [
minlen="2"
];
# following step
step_6a68be34_64d3_4a72_8847_4e0645f474c0 [
shape="rect"
style="filled, rounded"
width="2"
height="0.075"
fontcolor="white"
fillcolor="#4363d8"
fontsize="10pt"
label="Create variable pacctaw"
URL="../step_6a68be34-64d3-4a72-8847-4e0645f474c0.html"
target="_parent"
tooltip="Following process step:\nCompute target variable 'pacctaw' based on variables 'paccta', 'date' and 'region_id'. Calculate average total precipitation for the week (seven days) before the date, date included, for each region."
];
parameter_d8db2e66_7d6f_4899_98b2_43d2454be2b2:e -> step_6a68be34_64d3_4a72_8847_4e0645f474c0:w [
minlen="2"
];
# following step
step_b779a530_0e55_4b61_9c2d_7c9dc2017fb2 [
shape="rect"
style="filled, rounded"
width="2"
height="0.075"
fontcolor="white"
fillcolor="#4363d8"
fontsize="10pt"
label="Create variable pacctam"
URL="../step_b779a530-0e55-4b61-9c2d-7c9dc2017fb2.html"
target="_parent"
tooltip="Following process step:\nCompute target variable 'pacctam' based on variables 'paccta', 'date' and 'region_id'. Calculate average total precipitation for the month (thirty days) before the date, date included, for each region."
];
parameter_d8db2e66_7d6f_4899_98b2_43d2454be2b2:e -> step_b779a530_0e55_4b61_9c2d_7c9dc2017fb2:w [
minlen="2"
];
# following step
step_7f344be0_8be6_4c1b_91d2_c689bde5f31f [
shape="rect"
style="filled, rounded"
width="2"
height="0.075"
fontcolor="white"
fillcolor="#4363d8"
fontsize="10pt"
label="Create variable paccta3m"
URL="../step_7f344be0-8be6-4c1b-91d2-c689bde5f31f.html"
target="_parent"
tooltip="Following process step:\nCompute target variable 'paccta3m' based on variables 'paccta', 'date' and 'region_id'. Calculate average total precipitation for the three months (ninty days) before the date, date included, for each region."
];
parameter_d8db2e66_7d6f_4899_98b2_43d2454be2b2:e -> step_7f344be0_8be6_4c1b_91d2_c689bde5f31f:w [
minlen="2"
];
# following step
step_2d3eb36e_15b7_45e6_8f42_824956c550c2 [
shape="rect"
style="filled, rounded"
width="2"
height="0.075"
fontcolor="white"
fillcolor="#4363d8"
fontsize="10pt"
label="Create variable pacctay"
URL="../step_2d3eb36e-15b7-45e6-8f42-824956c550c2.html"
target="_parent"
tooltip="Following process step:\nCompute target variable 'pacctay' based on variables 'paccta', 'date' and 'region_id'. Calculate average total precipitation for the year (three hundred and sixty five days) before the date, date included, for each region."
];
parameter_d8db2e66_7d6f_4899_98b2_43d2454be2b2:e -> step_2d3eb36e_15b7_45e6_8f42_824956c550c2:w [
minlen="2"
];
# following step
step_f047699d_0c01_4289_89fd_bf8d01efb9b0 [
shape="rect"
style="filled, rounded"
width="2"
height="0.075"
fontcolor="white"
fillcolor="#4363d8"
fontsize="10pt"
label="Create variable pacctcm"
URL="../step_f047699d-0c01-4289-89fd-bf8d01efb9b0.html"
target="_parent"
tooltip="Following process step:\nCompute target variable 'pacctcm' based on variables 'paccta', 'date' and 'region_id'. Calculate 'pacctcm' as an average of total precipitation date values for the calendar month."
];
parameter_d8db2e66_7d6f_4899_98b2_43d2454be2b2:e -> step_f047699d_0c01_4289_89fd_bf8d01efb9b0:w [
minlen="2"
];
}
Hint
Move the mouse cursor over a parameter to see more information. Click on a parameter or a related step to go to the corresponding page.
digraph Diagram {
graph [
stylesheet="../_static/custom.css"
fontnames = "svg" # "... rock solid standards compliant SVG", see: https://graphviz.org/faq/font/#what-about-svg-fonts
rankdir="LR"
bgcolor="#eeeeee"
size="5,10!"
nodesep=0.15
tooltip=" "
];
node [
fontname="sans-serif"
];
Step [
width="3"
label="Process step"
tooltip=" "
shape="rect"
style="filled, rounded"
fontcolor="white"
fillcolor="#4363d8"
];
# input parameter
InputParameter [
shape="rect"
width="2"
height="0.1"
style="filled"
label="Input parameter"
tooltip=" "
fillcolor="#ffe119"
];
InputParameter -> Step [
label="used by"
];
OutputParameter [
shape="rect"
width="2"
height="0.1"
style="filled"
label="Output parameter"
tooltip=" "
fillcolor="#dcbeff"
];
Step -> OutputParameter [
label="produces"
];
}