Skip to content

Commit

Permalink
australia color scale and format
Browse files Browse the repository at this point in the history
  • Loading branch information
vmcnally committed Aug 20, 2024
1 parent 37f6313 commit 71dd6fe
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 19 deletions.
41 changes: 27 additions & 14 deletions docs/indices/australia.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ colorScale([
,{label: 'Extremely poor', color: '#590018'}
])
```
_Note_: Adapted from “About the air quality categories” (n.d.), [www.environment.nsw.gov.au/topics/air/understanding-air-quality-data/air-quality-categories](https://www.environment.nsw.gov.au/topics/air/understanding-air-quality-data/air-quality-categories)[^2]. Accessed 16 Aug. 2024.

## Methods

Expand All @@ -51,7 +52,7 @@ The pollutant thresholds by state as reported by their relevant government websi

\* _Documented as parts per hundred million (pphm) in source material. Converted here to remain consistent with the more common ppm/ppb in the other tables_

_Note_: Adapted from "About the air quality categories" (31 July 2023) https://www.environment.nsw.gov.au/topics/air/understanding-air-quality-data/air-quality-categories [^1]. Accessed August 16, 2024.
_Note_: Adapted from "About the air quality categories" (5 July 2024), https://www.environment.nsw.gov.au/topics/air/understanding-air-quality-data/air-quality-categories [^1]. Accessed 16 Aug. 2024.

### Northern Territory

Expand All @@ -64,9 +65,8 @@ _Note_: Adapted from "About the air quality categories" (31 July 2023) https://w
| SO<sub>2</sub> ppb | 1 hr. | 0-133 | 133-200 | 200-300 | 300-400 | 400+ |
| NO<sub>2</sub> ppb | 1 hr. | 0-80 | 80-120 |120-180 | 180-240 | 240+ |

Carbon monoxide is based on a 8 hour moving average.
_Note_: Adapted from “AQC Summary Dynamic Table” (n.d.), [http://ntepa.webhop.net/NTEPA/Default.ltr.aspx](http://ntepa.webhop.net/NTEPA/Default.ltr.aspx)[^2]. Accessed 16 Aug. 2024.

_Note_: Adapted from “About the air quality categories” (n.d.) [www.environment.nsw.gov.au/topics/air/understanding-air-quality-data/air-quality-categories](https://www.environment.nsw.gov.au/topics/air/understanding-air-quality-data/air-quality-categories)[^2]. Accessed August 16, 2024.

### Queensland

Expand All @@ -80,7 +80,7 @@ _Note_: Adapted from “About the air quality categories” (n.d.) [www.environm
| SO<sub>2</sub> ppb | 1 hr. | 0-133 | 133-200 | 200-300 | 300-400 | 400+ |
| NO<sub>2</sub> ppb | 1 hr. | 0-80 | 80-120 |120-180 | 180-240 | 240+ |

_Note_: Adapted from “Air quality categories” (21 September 2023) [www.qld.gov.au/environment/management/monitoring/air/air-monitoring/air-quality-categories](https://www.qld.gov.au/environment/management/monitoring/air/air-monitoring/air-quality-categories)[^3]. Accessed August 16, 2024.
_Note_: Adapted from “Air quality categories” (21 Sept. 2023), [www.qld.gov.au/environment/management/monitoring/air/air-monitoring/air-quality-categories](https://www.qld.gov.au/environment/management/monitoring/air/air-monitoring/air-quality-categories)[^3]. Accessed 16 Aug. 2024.


### South Australia
Expand All @@ -97,19 +97,29 @@ _Note_: Adapted from “Air quality categories” (21 September 2023) [www.qld.g

\* _Documented as parts per million ppm in source material. Converted here to remain consistent with the more common ppb in the other tables_

_Note_: Adapted from “Air quality monitoring” (14 June 2024) [www.epa.sa.gov.au/environmental_info/air_quality/new-air-quality-monitoring](https://www.epa.sa.gov.au/environmental_info/air_quality/new-air-quality-monitoring)[^4]. Accessed August 16, 2024.
_Note_: Adapted from “Air quality monitoring” (14 June 2024), [www.epa.sa.gov.au/environmental_info/air_quality/new-air-quality-monitoring](https://www.epa.sa.gov.au/environmental_info/air_quality/new-air-quality-monitoring)[^4]. Accessed 16 Aug. 2024.

### Tasmania

Tasmania references a separate 6 point scale and only provides break points for PM<sub>2.5</sub>.

```js
colorScale([
{label: 'Good', color: '#65b249'}
,{label: 'Fairly good', color: '#ffff00'}
,{label: 'Fairly poor', color: '#fdbd77'}
,{label: 'Poor', color: '#f78507'}
,{label: 'Very poor', color: '#ff0000'}
,{label: 'Extremely poor', color: '#9a7660'}
])
```
_Note_: Adapted from “Air Quality” (9 July 2024), [https://www.health.tas.gov.au/health-topics/environmental-health/air-quality][^8]. Accessed 16 Aug. 2024.

| Pollutant |Avg. period | Good | Fairly good | Fairly poor | Poor | Very poor | Extremely poor |
|---|---|---|---|---|---|---|---|
| PM<sub>2.5</sub> µg/m<sup>3</sup> | 1 hr. | 0-9 | 10-24 | 25-49 | 50-99 | 100-299 | 300+ |

_Note_: Color scale adapted from “Air Quality” (9 July 2024) [https://www.health.tas.gov.au/health-topics/environmental-health/air-quality][^8]. Accessed August 16, 2024.

_Note_: Adapted from “Real-time Air Quality Data for Tasmania” (n.d.) [epa.tas.gov.au/environment/air/monitoring-air-pollution/monitoring-data/real-time-air-quality-data-for-tasmania#%E2%80%8BAirQ%E2%80%8BualityStandards](https://epa.tas.gov.au/environment/air/monitoring-air-pollution/monitoring-data/real-time-air-quality-data-for-tasmania#%E2%80%8BAirQ%E2%80%8BualityStandards)[^5]. Accessed August 16, 2024.
_Note_: Adapted from “Real-time Air Quality Data for Tasmania” (n.d.), [epa.tas.gov.au/environment/air/monitoring-air-pollution/monitoring-data/real-time-air-quality-data-for-tasmania#%E2%80%8BAirQ%E2%80%8BualityStandards](https://epa.tas.gov.au/environment/air/monitoring-air-pollution/monitoring-data/real-time-air-quality-data-for-tasmania#%E2%80%8BAirQ%E2%80%8BualityStandards)[^5]. Accessed 16 Aug. 2024.

### Victoria

Expand All @@ -122,8 +132,8 @@ _Note_: Adapted from “Real-time Air Quality Data for Tasmania” (n.d.) [epa.t
| SO<sub>2</sub> ppb | 1 hr. | 0-100 | 100-200 | 200-300 | 300-600 | 600+ |
| NO<sub>2</sub> ppb | 1 hr. | 0-60 | 60-120 |120-180 | 180-360 | 360+ |

_Note_: Adapted from “How we calculate air quality categories” (13 January 2021)
[www.epa.vic.gov.au/for-community/monitoring-your-environment/about-epa-airwatch/calculate-air-quality-categories](https://www.epa.vic.gov.au/for-community/monitoring-your-environment/about-epa-airwatch/calculate-air-quality-categories)[^6]. Accessed August 16, 2024.
_Note_: Adapted from “How we calculate air quality categories” (13 Jan 2021),
[www.epa.vic.gov.au/for-community/monitoring-your-environment/about-epa-airwatch/calculate-air-quality-categories](https://www.epa.vic.gov.au/for-community/monitoring-your-environment/about-epa-airwatch/calculate-air-quality-categories)[^6]. Accessed 16 Aug. 2024.


### West Australia
Expand All @@ -137,13 +147,16 @@ _Note_: Adapted from “How we calculate air quality categories” (13 January 2
| SO<sub>2</sub> ppb | 1 hr. | 0-133 | 133-200 | 200-300 | 300-400 | 400+ |
| NO<sub>2</sub> ppb | 1 hr. | 0-80 | 80-120 |120-180 | 180-240 | 240+ |

_Note_: Adapted from “Air quality index” (n.d) [www.der.wa.gov.au/your-environment/air/air-quality-index](https://www.der.wa.gov.au/your-environment/air/air-quality-index)[^7]. Accessed August 16, 2024.

Carbon monoxide is based on a 8 hour moving average.
_Note_: Adapted from “Air quality index” (n.d.), [www.der.wa.gov.au/your-environment/air/air-quality-index](https://www.der.wa.gov.au/your-environment/air/air-quality-index)[^7]. Accessed 16 Aug. 2024.

Note that in the recorded breakpoint concentrations for all regions except Queensland and Tasmania, there was overlap between the lower and upper limits of subsequent risk categories. To mitigate this, all pollutants were assumed to hold one significant figure for the upper limit based on reported data. We have assumed that the upper limit is not inclusive and is rounded/truncated to the first decimal place. This is inferred as the first column in the provided breakpoint table includes the non inclusive less than symbol.
<div class="note">
In the recorded breakpoint concentrations for all regions except Queensland and Tasmania, there was overlap between the lower and upper limits of subsequent risk categories. To mitigate this, all pollutants were assumed to hold one significant figure for the upper limit based on reported data. We have assumed that the upper limit is not inclusive and is rounded/truncated to the first decimal place. This is inferred as the first column in the provided breakpoint table includes the non inclusive less than symbol.

```tex
\thinspace
```
An exception to this convention is South Australia. In both South Australia and Queensland, breakpoints for O<sub>3</sub>, SO<sub>2</sub>, and NO<sub>2</sub> were converted from ppb to ppm for consistency with the other regions. For South Australia where there was overlap in breakpoint limits, PM<sub>2.5</sub>, PM<sub>10</sub>, and CO were held to one significant figure while O<sub>3</sub>, SO<sub>2</sub>, and NO<sub>2</sub> were rounded to the nearest integer to reflect that of Queensland.
</div>


## References
Expand Down
10 changes: 5 additions & 5 deletions docs/indices/vietnam.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## Background

The Vietnam Air Quality Index (VN AQI) accounts for pollutant concentrations of PM<sub>2.5</sub>, PM<sub>10</sub>, CO, O<sub>3</sub>, SO<sub>2</sub>, and NO<sub>2</sub>. It reports a Daily and Hourly AQI, as well as a Nowcast value exclusivel for particulate matter concentrations.
The Vietnam Air Quality Index (VN AQI) accounts for pollutant concentrations of PM<sub>2.5</sub>, PM<sub>10</sub>, CO, O<sub>3</sub>, SO<sub>2</sub>, and NO<sub>2</sub>. It reports a Daily and Hourly AQI, as well as a NowCast value exclusivel for particulate matter concentrations.

The VVN AQI is calculated using data from continuous automatic air quality stations across the country. The Daily AQI is the AQI value representing one day, while the Hourly AQI is the AQI value representing one hour.

Expand Down Expand Up @@ -38,10 +38,10 @@ _Note_: Adapted from "Quyết định 1459/QĐ-TCMT 2019 kỹ thuật tính toá

It is not specified in Vietnam’s documentation whether sub-index values are rounded or truncated, however the final AQI value is truncated[^1]. For the breakpoint concentrations and for AQI calculations, we assume that all data values are rounded to the nearest integer.

The Nowcast value is a weighted average of the 12 most recent 1-hour average values relative to the calculation time, and is reported for PM<sub>10</sub> and PM<sub>2.5</sub> pollutants only. The AQI value is calculated for the data of each monitoring station, and the final AQI value reported is the largest of the values for each parameter. The AQI calculation requires at least one of PM<sub>10</sub> and PM<sub>2.5</sub> parameters within the formula.
The NowCast value is a weighted average of the 12 most recent 1-hour average values relative to the calculation time, and is reported for PM<sub>10</sub> and PM<sub>2.5</sub> pollutants only. The AQI value is calculated for the data of each monitoring station, and the final AQI value reported is the largest of the values for each parameter. The AQI calculation requires at least one of PM<sub>10</sub> and PM<sub>2.5</sub> parameters within the formula.

Hourly AQI Calculation:
In calculating the hourly index, the weight value of each PM<sub>2.5</sub> and PM<sub>10</sub> is first calculated for reporting the Nowcast values. The weight value is equal to the minimum concentration over the maximum concentrations among the 12 hourly average values. The Nowcast value can only be calculated if at least 3 valid 1-hour average values are collected, otherwise it is reported as “no data.”
In calculating the hourly index, the weight value of each PM<sub>2.5</sub> and PM<sub>10</sub> is first calculated for reporting the NowCast values. The weight value is equal to the minimum concentration over the maximum concentrations among the 12 hourly average values. The NowCast value can only be calculated if at least 3 valid 1-hour average values are collected, otherwise it is reported as “no data.”

${tex`c_1 , c_2 , \dots, c_{12} `}= Averages of 1-hour monitoring values (with ${tex`c_1`} being the current 1-hour averaging monitoring value and ${tex`c_{12}`} being the 1-hour monitoring value 12 hours ago)

Expand Down Expand Up @@ -82,12 +82,12 @@ NowCast = \frac{1}{2} c_1 + (\frac{1}{2})^2 c_2 + \dots + (\frac{1}{2})^{12} c_{
```

<div class="note">
Note that at least 2 of the 3 values ${tex`c_1`}, ${tex`c_2`}, and ${tex`c_3`} must have data in order for the NowCast calculation to be valid. If this requirement is not fulfilled, then the NowCast value cannot be calculated and it is considered ‘no data.’ If ${tex`c_i`} has no data, then ${tex`c^{i-1} = 0`}.
At least 2 of the 3 values ${tex`c_1`}, ${tex`c_2`}, and ${tex`c_3`} must have data in order for the NowCast calculation to be valid. If this requirement is not fulfilled, then the NowCast value cannot be calculated and it is considered ‘no data.’ If ${tex`c_i`} has no data, then ${tex`c^{i-1} = 0`}.
</div>

The Hourly AQI for PM<sub>10</sub> and PM<sub>2.5</sub> is then calculated using the formula:

{custom piecewise where Concentration is the above Nowcast instead}
{custom piecewise where Concentration is the above NowCast instead}

The maximum Hourly AQI value is reported as the aggregate hourly AQI value, with the values being rounded to integers.

Expand Down

0 comments on commit 71dd6fe

Please sign in to comment.