Create variable ndyprmno2

Process Step

Description Compute target variable ‘ndyprmno2’ based on ‘aqiwdno2’, ‘region’ and ‘date’. The number of days during the last thirty days from date, date included, where ‘aqiwdno2’ = ‘3’ ‘Poor’ or ‘aqiwdno2’ = ‘4’ ‘Very poor’ or ‘aqiwdno2’ = ‘5’ ‘Extremely poor’ 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 ndyprmno2\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_0cb5b141_7c62_4d67_84a5_9c4a6e3cb8d1 [ shape="rect" style="filled" width="2" height="0.1" fontcolor="blue" fontsize="10pt" URL="https://ess-search.nsd.no/en/variable/d72f021d-bb04-4b0f-bcca-d8d28daaf6d1" target="_blank" label=<<i>Variable aqiwdno2:</i><br/>Worst air quality index<br/>level NO2, date> tooltip="Input parameter for current process step" fillcolor="#ffe119" ]; parameter_0cb5b141_7c62_4d67_84a5_9c4a6e3cb8d1:e -> Step:w [ minlen="2" ]; # previous step step_5d4a2d9d_54f8_419e_a4b5_4ef2223dceaa [ shape="rect" style="filled, rounded" width="2" height="0.075" fontcolor="white" fillcolor="#4363d8" fontsize="10pt" label="Create variable aqiwdno2" URL="../step_5d4a2d9d-54f8-419e-a4b5-4ef2223dceaa.html" target="_parent" tooltip="Previous process step:\nCompute target variable 'aqiwdno2' starting from variables 'Concentration' and 'AirPollutant = NO2' 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 NO2: 0 to 40 eq 'Good' represented by value '0'; 40 to 90 eq 'Fair' represented by value '1'; 90 to 120 eq 'Moderate' represented by value '2'; 120 to 230 eq 'Poor' represented by value '3'; 230 to 340 eq 'Very Poor' represented by value '4'; 340 to 1000 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_5d4a2d9d_54f8_419e_a4b5_4ef2223dceaa:e -> parameter_0cb5b141_7c62_4d67_84a5_9c4a6e3cb8d1:w [ minlen="2" ]; # output parameter parameter_48ad7d75_3a71_4960_b234_faf6b43eb0d0 [ shape="rect" style="filled" width="2" height="0.1" fontcolor="blue" fontsize="10pt" URL="https://ess-search.nsd.no/en/variable/e0e3227a-8c78-40e1-a288-0f8007f3ca3e" target="_blank" label=<<i>Variable ndyprmno2:</i><br/>Number of days with 'poor'<br/>air quality level or worse<br/>NO2, month before the date> tooltip="Output parameter for current process step" fillcolor="#dcbeff" ]; Step:e -> parameter_48ad7d75_3a71_4960_b234_faf6b43eb0d0: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" ]; }