Skip to content

valentijn7/forecasting_smog_DL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thesis repository: 'Forecasting Smog Clouds With Deep Learning'

This repository contains scripts belonging to a thesis, 'Forecasting Smog Clouds With Deep Learning,' and a paper that followed out of it.

For direct contact or questions, please contact: [email protected] (and [email protected] in cc, in case access to the former is lost).

Description

As the original codebase was quite a mess, the core and most essential bits are bundled here. The GRU and HGRU models are runnable, and upon supplementation of the data, the results can be reproduced.

The scripts cover a pipeline from online-available pollution and meteorological data through preprocessing to forecasting four constituents to smog clouds over two location in the Netherlands. This can be divided into two directories:

  1. pipeline/ contains the pipeline package which takes pollution data published by an initiative of the Dutch Government (including the National Institute for Public Health and the Environment | RIVM) and meteorological data published by the Royal Netherlands Meteorological Institute (KNMI), tidies it, inspects it through various metrics and visualisations, and, eventually, preprocesses it into a ready-to-use dataset. More information about the data below. -- It can be ran either from the command line with preprocess.py or from a notebook preprocess.ipynb.
  2. modelling/ contains the more freely structured modelling package; it defines various classes and functions which come together in the run_models.ipynb notebook to run the models.

Furthermore, the src/ folder's notebooks/ contains a few experimentative notebooks. The scripts contain a fair amount of comments for more explanation and specifics. And, lastly, plots.py of both pipeline/ and modelling/ hosts quite some functions for plotting used in the thesis/paper.

Data

The source location was chosen to be in Utrecht, near the headquarters of the KNMI, and the target location is in Breukelen, both in the Netherlands. Data was sampled from years between 2017 and 2023 and obtained from:

The (raw) data is not uploaded to this repository, but can be added to the /data folders for the code to run.

Dependencies

The dependencies used in this project are listed in requirements.txt, though only "ordinary" libraries such as numpy, pandas, and PyTorch are utilised.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published