PM2.5 EWS is a Particulate Matter 2.5 Early Warning System based on CAMS (Copernicus Atmosphere Monitoring Service) that triggers an alert within a certain area when the values reach a specific threshold.
What is PM2.5?
PM2.5 (or fine particles) is particulate matter smaller than 2.5 micrometers in diameter. The World Health Organization states that the most harmful exposure to PM is long-term exposure to fine particles [1, 2].
Sources of PM2.5:
Direct emissions such as forest fires, agricultural waste burning, windblown mineral dust from arid regions, and inefficient fuel combustion. Secondary emissions from atmospheric chemical reactions between pollutant precursors, such as residential energy, vehicles, energy generation, solvent use, industrial processes and agricultural fertilizer application [3].
Extra Layers:
Dust AOD at 550 nm
Dust aerosol optical depth (AOD) at 550 nanometers is a measure of the amount of dust particles in the atmosphere which block sunlight by absorbing or by scattering light. This layer is provided by CAMS, it is dimensionless, and darker orange colors mean larger amounts of particles [4].
Local Machine
1- Open a terminal inside the environment folder;
2- Create the virtual environment python -m venv pm25_ews-env;
3- Activate the virtual environment source pm25_ews-env/bin/activate;
4- Make sure your pip is up to date pip install --upgrade pip;
5- Install the packages pip install -r requirements.txt file;
6- Create your .env file with credentials;
7- Check the user_inpus.py file;
8- Go to Copernicus and accept the dataset's terms;
9- Run data_for_alerts.py to download and process the PM2.5 data. Run daily at 12h UTC;
10- Run app.py and open the generated url on your browser.
PythonAnywhere - Host for free
1- Main page: here;
2- Short tutorial and how to connect with GitHub: here;
3- Set environment: here
4- Set environment variables: here;
5- Schedule tasks: here.
Finally, give a ⭐ to this repository and contact me if you have any doubts.
