GNOC.py
A re-implementation of Global Nitrous Oxide Calculator (GNOC) in python, updating IPCC and adding statistics module
Installation
Before installing, please modify the file GNOC.py and adapt the data_dir to your needs. In general, this would be "data/"
Create a new environment with python>3.10 and build:
conda create -n GNOC python=3.11 build
To install all dependencies in development mode, use
pip install --editable .
If you don“t count on changing the code, you can also use
python -m build
Run the programm
A short documentation is also available at https://gnocpy.readthedocs.io/en/latest
Input data
run notebook inputs/create_input_dataset.ipynb
run notebook inputs/crop_trade.ipynb
Emission factors
run notebook inputs/emission_factors/Emission_factors.ipynb
Calculation
run notebook calculation/calculate_emissions.ipynb
Analysis
run notebook analysis/analysis.ipynb for a general analysis of emission factors, country analysis, EU grouping
Visualisation
run notebook visualisations/dash.ipynb to display an interactive, zoomable maps with layers for all input parameters and results.