Preprocessing of the emissions for the online emission module of cosmo. Produces gridded annual emissions as well as temporal and vertical profiles.
To use the code, just download or clone the repository. The package can be installed with
$ python setup.py install
The following requirements on third-party packages:
- Python (>= 3.6)
- cartopy
- netCDF4
- numpy
- shapely
- xarray
Please note emission inventories are not included in the repository, but have to be obtained separately.
-
Take one of the configuration files in the cases folder and adjust it to your case.
-
Generate the emission files:
$ python -m emiproc grid --case config_{tno|ch}
- Generate the profiles:
$ python -m emiproc tp --case-file <filename> # for temporal profiles
$ python -m emiproc vp # for vertical profiles
Further examples, including the generation of offline files and inventory merging, can be found in cases/README.md
Emissions are read from the inventory and projected onto the COSMO grid.
The necessary information, such as grid characterstics and species, are supplied via a config file. Since emission inventories can be structured quite differently, it may also be necessary to adapt the main script. The provided examples are a good starting point.
In the file grids.py
you can find definitions for classes handling common gridtypes
(COSMO, TNO, swiss). Use them in your configuration file to specify your grid.
If your grid can not be represented by an existing one, implement your own grid class
by inheriting from the Grid
baseclass and implementing the required methods.
This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.