-
KZ filter
-
Regression
-
Wind Direction
-
Primary Pollutants
-
Future Data
-
China
-
Spark
I highly recommend to read the following examples:
python detrend.py
This code detrends O3 data from 'Eastern', 'Kwai Chung', 'Tung Chung', 'YL', 'Kwun Tong', 'Macau', 'Sha Tin', 'ShamShuiPo', 'Tap Mun', 'Tsuen Wan' into short-term, seasonal-term, and long-term trends.
It will save graphs into detrend folder
This process can be visualized as the following figure:
Raw data provided from Supplement folder
It prevents drawbacks of cutting heads and tails of data, followed by KZ filter (but not really useful)
This function is to preprocess data (O3 and meteorological variables) and save them in preprocessed folder
This code finds a linear relationship between baseline data of O3 and meteorological variables (temperature, relative humidity, pressure, and wind speed)
It will save graphs into Regression Result Folder.
This process can be visualized as the following figure:
Input data provided from preprocessed folder
Similar to Regression.py code. But this version is for the recent 5 years of data (2013-2017).
This code finds the relationship between short-term trend of O3 and wind direction.
It will save graphs into ST Variation and WD folder.
This process can be visualized as the following figure:
Input data provided from Regression Result folder (wind direction data from csv files)
This code preprocesses primary pollutants data (from NO2, SO2, and Supplement).
It will save csv files into Primary Pollutant folder, which will be later used in Long Term Relation.py
This code finds the relationship between long-term trend of O3 and primary pollutants data (NO2 and SO2).
It will save graphs into Long Term Result folder.
This process can be visualized as the following figure:
Input data provided from Primary Pollutant folder
If we could have future climate data, can we predict future concentration levels of O3?
Download future meteorological data (2045-2050 and 2095-2100) from World Climate Research Programme
-
These are the following models: MRI-CGCM3, MIROC5, HadGEM2-ES, IPSL-CM5A-MR, NorESM1-M, CSIRO-MK3.6, GFDL-ESM2M, GFDL-ESM2G
-
4 experiments: rcp26, rcp45, rcp60, rcp85
-
Time Frequency: day
-
Ensemble: r1i1p1
-
Variable: tasmax (max temperature), rhs (relative humidity), sfcwind (wind speed), psl (pressure)
Testing one model
First convert NC files to csv files, by choosing appropriate latitude and longitude.
The saving directory: 'Future Data Average' folder (+ exp + '' + model + '' + variable + '_' + time + '.csv')
Combine the csv files from 'Future Data Average'
Models: MRI-CGCM3, MIROC5, HadGEM2-ES, IPSL-CM5A-MR, NorESM1-M, CSIRO-MK3.6, GFDL-ESM2M, GFDL-ESM2G, then take an average.
Save them to 'Future Data Preprocess' folder.
Then, I organized the files in 'Model Combine' folder.
Import future climate data from 'Model Combine'
Import regression coefficients from 'Regression Coefficients'
Use KZ filter to detrend O3 and climate data to implement linear regression, which results in future O3 baseline.
New O3 baseline is calculated from 'Subtraction Result' by considering each month.
Save graphs into Future Regression.
Make subplot of different regions to compare (one example of rcp26)
Now we extend to Chinese provinces. 'China' folder.
We can use Spark and Databricks to extend this concept.
[1] Databricks notebook for combining different weather files: https://goo.gl/eVFJVf
[2] Databricks notebook for drawing scatterplots: https://goo.gl/3RTe1t
[3] Databricks notebook for filtering using KZ filter: https://goo.gl/mr6MZa
[4] Databricks notebook for modeling and predicting: https://goo.gl/fyMFuu
- Lu, X., Lin, C., Li, Y., Yao, T., Fung, J. C., & Lau, A. K. (2017). Assessment of health burden caused by particulate matter in southern China using high-resolution satellite observation. Environment international, 98, 160-170.
- Lu, X., & Fung, J. C. (2016). Source apportionment of sulfate and nitrate over the Pearl River Delta region in China. Atmosphere, 7(8), 98.
- World Health Organization, "Ambient air pollution: a global assessment of exposure and burden of disease," 2016.
- “Guangdong-Hong Kong-Macao Pearl River Delta Regional Air Quality Monitoring Network,” Quality Management Committee of Guangdong-Hong Kong-Macao Pearl River Delta Regional Air Quality Monitoring Network, 2016.
- CAAC (Clean Air Alliance of China), "Air Pollution Prevention and Control Action Plan," 2013.
- AQHI (Air Quality Health Index), "Air Quality Trends in Hong Kong," [Online]. Available: http://www.aqhi.gov.hk/api_history/english/report/files/aqt15e.pdf.
- Seo, J., Youn, D., Kim, J. Y., & Lee, H. (2014). Extensive spatiotemporal analyses of surface ozone and related meteorological variables in South Korea for the period 1999–2010. Atmospheric Chemistry and Physics, 14(12), 6395-6415.
- Li, P., Wang, Y., & Dong, Q. (2017). The analysis and application of a new hybrid pollutants forecasting model using modified Kolmogorov–Zurbenko filter. Science of the Total Environment, 583, 228-240.
- Rao, S. T., Zurbenko, I. G., Neagu, R., Porter, P. S., Ku, J. Y., & Henry, R. F. (1997). Space and time scales in ambient ozone data. Bulletin of the American Meteorological Society, 78(10), 2153-2166.
- Environmental Protection Department, Hong Kong, “Guidelines on the Estimation of PM2.5 for Air Quality Assessment in Hong Kong,” 21 07 2018. [Online]. Available: https://www.epd.gov.hk/epd/english/environmentinhk/air/guide_ref/guide_aqa_model_g5.html.