Create variable tmpdca

Process Step

Description Compute target variable ‘tmpdca’ based on variable ‘tmpdc’, ‘region_id’, ‘date’ and ‘pop. Calculate average temperature by date for each grid cell to be included in the data. Temperature measured in Kelvin is converted to degrees Celsius (°C) by subtracting 273.15. Calculate temperature averages for each region, 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 tmpdca\n(current process step)" tooltip=" " ]; # input parameter parameter_b811f20c_498d_4d7c_a1b3_86a55fc4283c [ shape="rect" style="filled" width="2" height="0.1" fontcolor="blue" fontsize="10pt" URL="https://ess-search.nsd.no/en/variable/30dc45a1-3597-4b42-8bdb-35b61f7089c2" target="_blank" label=<<i>Variable tmpdc:</i><br/>2 metre temperature> tooltip="Input parameter for current process step" fillcolor="#ffe119" ]; parameter_b811f20c_498d_4d7c_a1b3_86a55fc4283c: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_d570cff6_39ae_4383_a0d6_8e2e502cd55f [ shape="rect" style="filled" width="2" height="0.1" fontcolor="blue" fontsize="10pt" URL="https://ess-search.nsd.no/en/variable/d977ac41-6e88-4413-8999-b7960a988c9f" target="_blank" label=<<i>Variable tmpdca:</i><br/>Temperature in degrees<br/>Celcius, date average> tooltip="Output parameter for current process step" fillcolor="#dcbeff" ]; Step:e -> parameter_d570cff6_39ae_4383_a0d6_8e2e502cd55f:w [ minlen="2" ]; # following step step_e06e5202_2b1d_4f9b_9d3e_3e864f717ee4 [ shape="rect" style="filled, rounded" width="2" height="0.075" fontcolor="white" fillcolor="#4363d8" fontsize="10pt" label="Create variable tmpdcaw" URL="../step_e06e5202-2b1d-4f9b-9d3e-3e864f717ee4.html" target="_parent" tooltip="Following process step:\nCalculate average temperature week (seven days) before the date, date included for each region, based on variables 'tmpdca', 'date' and 'region_id'." ]; parameter_d570cff6_39ae_4383_a0d6_8e2e502cd55f:e -> step_e06e5202_2b1d_4f9b_9d3e_3e864f717ee4:w [ minlen="2" ]; # following step step_5e9724c6_6205_4846_920c_881fe01ae6d0 [ shape="rect" style="filled, rounded" width="2" height="0.075" fontcolor="white" fillcolor="#4363d8" fontsize="10pt" label="Create variable tmpdcam" URL="../step_5e9724c6-6205-4846-920c-881fe01ae6d0.html" target="_parent" tooltip="Following process step:\nCalculate average temperature month (thirty days) before the date, date included for each region, date included, based on variables 'tmpdca', 'date' and 'region_id'." ]; parameter_d570cff6_39ae_4383_a0d6_8e2e502cd55f:e -> step_5e9724c6_6205_4846_920c_881fe01ae6d0:w [ minlen="2" ]; # following step step_770f6e63_8f45_4e8f_a086_c2d2dd774b26 [ shape="rect" style="filled, rounded" width="2" height="0.075" fontcolor="white" fillcolor="#4363d8" fontsize="10pt" label="Create variable tmpdca3m" URL="../step_770f6e63-8f45-4e8f-a086-c2d2dd774b26.html" target="_parent" tooltip="Following process step:\nCalculate average temperature three months (ninty days) before the date, date included for each region, date included, based on variables 'tmpdca', 'date' and 'region_id'." ]; parameter_d570cff6_39ae_4383_a0d6_8e2e502cd55f:e -> step_770f6e63_8f45_4e8f_a086_c2d2dd774b26:w [ minlen="2" ]; # following step step_13fb673d_08a1_4ad3_b7c5_282fdd6030df [ shape="rect" style="filled, rounded" width="2" height="0.075" fontcolor="white" fillcolor="#4363d8" fontsize="10pt" label="Create variable tmpdcay" URL="../step_13fb673d-08a1-4ad3-b7c5-282fdd6030df.html" target="_parent" tooltip="Following process step:\nCalculate average temperature year (three hundred and sixty five days) before the date, date included for each region, based on variables 'tmpdca', 'date' and 'region_id'." ]; parameter_d570cff6_39ae_4383_a0d6_8e2e502cd55f:e -> step_13fb673d_08a1_4ad3_b7c5_282fdd6030df:w [ minlen="2" ]; # following step step_51b90bb6_30b0_4e1c_8c0b_19b2a56e49c4 [ shape="rect" style="filled, rounded" width="2" height="0.075" fontcolor="white" fillcolor="#4363d8" fontsize="10pt" label="Create variable tmpdcacm" URL="../step_51b90bb6-30b0-4e1c-8c0b-19b2a56e49c4.html" target="_parent" tooltip="Following process step:\nCompute target variable 'tmpdcacm' based on variables 'tmpdca', 'region_id' and 'date'. Calculate average temperature for each calendar month for each region." ]; parameter_d570cff6_39ae_4383_a0d6_8e2e502cd55f:e -> step_51b90bb6_30b0_4e1c_8c0b_19b2a56e49c4:w [ minlen="2" ]; # following step step_63d9f86f_b32b_4687_b753_662e9f56747f [ shape="rect" style="filled, rounded" width="2" height="0.075" fontcolor="white" fillcolor="#4363d8" fontsize="10pt" label="Create variable tmpdcamb" URL="../step_63d9f86f-b32b-4687-b753-662e9f56747f.html" target="_parent" tooltip="Following process step:\nCompute target variable 'tmpdcamb' based on variables 'tmpdca', 'region_id' and 'date'. Calculate average temperature for each calendar month for each region, across the baseline period 1991 - 2020." ]; parameter_d570cff6_39ae_4383_a0d6_8e2e502cd55f:e -> step_63d9f86f_b32b_4687_b753_662e9f56747f:w [ minlen="2" ]; # following step step_a56e71e4_f9e9_47d7_8c49_6625de7c6804 [ shape="rect" style="filled, rounded" width="2" height="0.075" fontcolor="white" fillcolor="#4363d8" fontsize="10pt" label="Create variable tmpanod" URL="../step_a56e71e4-f9e9-47d7-8c49-6625de7c6804.html" target="_parent" tooltip="Following process step:\nCompute target variable 'tmpanod' based on variables 'tmpdca', 'tmpdcamb', 'region_id' and 'date'. Calculate 'tmpanod' as day average for each region, minus calendar month average base value 1991 - 2020 (tmpdca - tmpdcamb)." ]; parameter_d570cff6_39ae_4383_a0d6_8e2e502cd55f:e -> step_a56e71e4_f9e9_47d7_8c49_6625de7c6804: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.

Legend:

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" ]; }