Create variable aqiw2dso2

Process Step

Description Compute target variable ‘aqiw2dso2’ based on ‘aqiwdso2’, ‘region’ and ‘date’. The worst value for the pollutant across a date and the date before becomes the value of the target variable

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 aqiw2dso2\n(current process step)" tooltip=" " ]; # input parameter parameter_7d6e0e95_572c_40a5_82e4_bc51a2a68c77 [ shape="rect" style="filled" width="2" height="0.1" fontcolor="blue" fontsize="10pt" URL="https://ess-search.nsd.no/en/variable/c9ae5e2b-376b-436d-abd8-f86879f8dc45" target="_blank" label=<<i>Variable date:</i><br/>Date> tooltip="Input parameter for current process step" fillcolor="#ffe119" ]; parameter_7d6e0e95_572c_40a5_82e4_bc51a2a68c77:e -> Step:w [ minlen="2" ]; # previous step step_70b92d2b_cc0a_44a7_9b1b_1e84084f4c50 [ shape="rect" style="filled, rounded" width="2" height="0.075" fontcolor="white" fillcolor="#4363d8" fontsize="10pt" label="Create variable date" URL="../step_70b92d2b-cc0a-44a7-9b1b-1e84084f4c50.html" target="_parent" tooltip="Previous process step:\nUse variables 'DatetimeBegin' and 'DatetimeEnd' to create variable 'date'." ]; step_70b92d2b_cc0a_44a7_9b1b_1e84084f4c50:e -> parameter_7d6e0e95_572c_40a5_82e4_bc51a2a68c77:w [ minlen="2" ]; parameter_87419b24_5963_48e7_8db9_0c6edf44bce6 [ shape="rect" style="filled" width="2" height="0.1" fontcolor="blue" fontsize="10pt" URL="https://ess-search.nsd.no/en/variable/99d07034-b859-4c28-801e-6accb5e9f9da" target="_blank" label=<<i>Variable region:</i><br/>Region> tooltip="Input parameter for current process step" fillcolor="#ffe119" ]; parameter_87419b24_5963_48e7_8db9_0c6edf44bce6:e -> Step:w [ minlen="2" ]; parameter_5d1db345_d4d5_4d64_a3dd_fd2e7d8c8e50 [ shape="rect" style="filled" width="2" height="0.1" fontcolor="blue" fontsize="10pt" URL="https://ess-search.nsd.no/en/variable/5e5337ea-78db-4368-a73f-a7b7d8b273c1" target="_blank" label=<<i>Variable aqiwdso2:</i><br/>Worst air quality index<br/>level SO2, date> tooltip="Input parameter for current process step" fillcolor="#ffe119" ]; parameter_5d1db345_d4d5_4d64_a3dd_fd2e7d8c8e50:e -> Step:w [ minlen="2" ]; # previous step step_920f3b9b_6aa2_4a33_aa15_fa41b3c45ee3 [ shape="rect" style="filled, rounded" width="2" height="0.075" fontcolor="white" fillcolor="#4363d8" fontsize="10pt" label="Create variable aqiwdso2" URL="../step_920f3b9b-6aa2-4a33-aa15-fa41b3c45ee3.html" target="_parent" tooltip="Previous process step:\nCompute target variable 'aqiwdso2' starting from variables 'Concentration' and 'AirPollutant = SO2' for each background station. Compute where 'AirQualityStation' has values for the pollutant. Find 'Concentration' value at the 99th percentile for the pollutant. Create EEA Air Quality Index where SO2: 0 to 100 eq 'Good' represented by value '0'; 100 to 200 eq 'Fair' represented by value '1'; 200 to 350 eq 'Moderate' represented by value '2'; 350 to 500 eq 'Poor' represented by value '3'; 500 to 750 eq 'Very Poor' represented by value '4'; 750 to 1250 eq 'Extremely poor' represented by value '5'. The worst air quality level measured on a specific day on one of the background stations in the region provides values to the variable." ]; step_920f3b9b_6aa2_4a33_aa15_fa41b3c45ee3:e -> parameter_5d1db345_d4d5_4d64_a3dd_fd2e7d8c8e50:w [ minlen="2" ]; # output parameter parameter_3e5a1e7a_0c99_40f3_a8e2_935fbaa3be42 [ shape="rect" style="filled" width="2" height="0.1" fontcolor="blue" fontsize="10pt" URL="https://ess-search.nsd.no/en/variable/08ed7ffc-37ee-447d-8b6f-b4d8a66fe73f" target="_blank" label=<<i>Variable aqiw2dso2:</i><br/>Worst air quality index<br/>level SO2, last two days> tooltip="Output parameter for current process step" fillcolor="#dcbeff" ]; Step:e -> parameter_3e5a1e7a_0c99_40f3_a8e2_935fbaa3be42:w [ minlen="2" ]; # following step step_1a6476be_23a9_4e0f_9a48_f70307579001 [ shape="rect" style="filled, rounded" width="2" height="0.075" fontcolor="white" fillcolor="#4363d8" fontsize="10pt" label="Create variable aqiw2d" URL="../step_1a6476be-23a9-4e0f-9a48-f70307579001.html" target="_parent" tooltip="Following process step:\nCompute target variable 'aqiw2d ' based on 'aqiw2dpm10'; 'aqiw2dpm2_5'; 'aqiw2dso2'; 'aqiwdno2'; 'aqiw2do3', 'region' and 'date'. The maximum value across the source variables becomes the value of the target variable" ]; parameter_3e5a1e7a_0c99_40f3_a8e2_935fbaa3be42:e -> step_1a6476be_23a9_4e0f_9a48_f70307579001: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" ]; }