Create variable ndyprw
Process Step
Description Compute target variable ‘ndyprw’ based on ‘aqiwdpm10’, ‘aqiwdpm2_5’, ‘aqiwdso2’, ‘aqiwdno2’, ‘aqiwdo3’, ‘region’ and ‘date’. The number of days during the last seven days from date, date included, where one or more of variables ‘aqiwdpm10’, ‘aqiwdpm2_5’, ‘aqiwdso2r’, ‘aqiwdno2’, ‘aqiwdo3’ has value ‘3’ ‘Poor’ or ‘4’ ‘Very poor’ or ‘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 ndyprw\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_83ef6dcf_2d56_4fd6_94e1_8cbbdca65f55 [
shape="rect"
style="filled"
width="2"
height="0.1"
fontcolor="blue"
fontsize="10pt"
URL="https://ess-search.nsd.no/en/variable/06107588-d36d-43c2-be89-b4659999c0c4"
target="_blank"
label=<<i>Variable aqiwdpm10:</i><br/>Worst air quality index<br/>level PM10, date>
tooltip="Input parameter for current process step"
fillcolor="#ffe119"
];
parameter_83ef6dcf_2d56_4fd6_94e1_8cbbdca65f55:e -> Step:w [
minlen="2"
];
# previous step
step_e5719aa7_5c9f_4e8c_b8b2_ff3b6bb1e6c2 [
shape="rect"
style="filled, rounded"
width="2"
height="0.075"
fontcolor="white"
fillcolor="#4363d8"
fontsize="10pt"
label="Create variable aqiwdpm10"
URL="../step_e5719aa7-5c9f-4e8c-b8b2-ff3b6bb1e6c2.html"
target="_parent"
tooltip="Previous process step:\nCompute target variable 'aqiwdpm10' starting from variables 'Concentration' and 'AirPollutant = PM10' 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 PM10: 0 to 20 eq 'Good' represented by value '0'; 20 to 40 eq 'Fair' represented by value '1'; 40 to 50 eq 'Moderate' represented by value '2'; 50 to 100 eq 'Poor' represented by value '3'; 100 to 150 eq 'Very Poor' represented by value '4'; 150 to 1200 eq 'Extremely poor' represented by value '5'. The worst air quality level measured on a specific date on one of the background stations in the region provides values to the variable."
];
step_e5719aa7_5c9f_4e8c_b8b2_ff3b6bb1e6c2:e -> parameter_83ef6dcf_2d56_4fd6_94e1_8cbbdca65f55:w [
minlen="2"
];
parameter_046a6012_3f1e_4945_8e57_7d24b4b9a73f [
shape="rect"
style="filled"
width="2"
height="0.1"
fontcolor="blue"
fontsize="10pt"
URL="https://ess-search.nsd.no/en/variable/48622b44-b269-4183-9bbc-af8c6885252a"
target="_blank"
label=<<i>Variable aqiwdpm2_5:</i><br/>Worst air quality index<br/>level PM2.5, date>
tooltip="Input parameter for current process step"
fillcolor="#ffe119"
];
parameter_046a6012_3f1e_4945_8e57_7d24b4b9a73f:e -> Step:w [
minlen="2"
];
# previous step
step_8e76387e_0a01_4282_89bc_9db776546f98 [
shape="rect"
style="filled, rounded"
width="2"
height="0.075"
fontcolor="white"
fillcolor="#4363d8"
fontsize="10pt"
label="Create variable aqiwdpm2_5"
URL="../step_8e76387e-0a01-4282-89bc-9db776546f98.html"
target="_parent"
tooltip="Previous process step:\nCompute target variable 'aqiwdpm2_5' starting from variables 'Concentration' and 'AirPollutant = PM2.5' 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 PM2.5: 0 to 10 eq 'Good' represented by value '0'; 10 to 20 eq 'Fair' represented by value '1'; 20 to 25 eq 'Moderate' represented by value '2'; 25 to 50 eq 'Poor' represented by value '3'; 50 to 75 eq 'Very Poor' represented by value '4'; 75 to 800 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_8e76387e_0a01_4282_89bc_9db776546f98:e -> parameter_046a6012_3f1e_4945_8e57_7d24b4b9a73f: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"
];
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"
];
parameter_b5ee4a8f_84ea_4b17_8e3a_0f7146cc6f6a [
shape="rect"
style="filled"
width="2"
height="0.1"
fontcolor="blue"
fontsize="10pt"
URL="https://ess-search.nsd.no/en/variable/56904641-4c6d-48c4-be32-272f166689a3"
target="_blank"
label=<<i>Variable aqiwdo3:</i><br/>Worst air quality index<br/>level O3, date>
tooltip="Input parameter for current process step"
fillcolor="#ffe119"
];
parameter_b5ee4a8f_84ea_4b17_8e3a_0f7146cc6f6a:e -> Step:w [
minlen="2"
];
# previous step
step_03e16b5f_7876_4d78_bc64_23e16cfd4500 [
shape="rect"
style="filled, rounded"
width="2"
height="0.075"
fontcolor="white"
fillcolor="#4363d8"
fontsize="10pt"
label="Create variable aqiwdo3"
URL="../step_03e16b5f-7876-4d78-bc64-23e16cfd4500.html"
target="_parent"
tooltip="Previous process step:\nCompute target variable 'aqiwdo3' starting from variables 'Concentration' and 'AirPollutant = O3' 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 O3: 0 to 50 eq 'Good' represented by value '0', 50 to 100 eq 'Fair' represented by value '1'; 100 to 130 eq 'Moderate' represented by value '2'; 130 to 240 eq 'Poor' represented by value '3'; 2040 to 380 eq 'Very poor' represented by value '4'; 380 to 800 eq 'Extremely poor' represented by value '5'. The average of the worst air quality level measured on a specific day on each of the background stations in the region provides values to the variable."
];
step_03e16b5f_7876_4d78_bc64_23e16cfd4500:e -> parameter_b5ee4a8f_84ea_4b17_8e3a_0f7146cc6f6a:w [
minlen="2"
];
# output parameter
parameter_50b171a3_ef1a_4a25_8707_0451d71d69b5 [
shape="rect"
style="filled"
width="2"
height="0.1"
fontcolor="blue"
fontsize="10pt"
URL="https://ess-search.nsd.no/en/variable/451bb92d-fdf2-4abb-91f7-ceb8867929b0"
target="_blank"
label=<<i>Variable ndyprw:</i><br/>Number of days with 'Poor'<br/>air quality level or worse<br/>on one or more pollutant<br/>indicators, week before the<br/>date>
tooltip="Output parameter for current process step"
fillcolor="#dcbeff"
];
Step:e -> parameter_50b171a3_ef1a_4a25_8707_0451d71d69b5: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"
];
}