Examples

AgriFoodPy implements models and table manipulation methods to analyse and process agrifood data. In these examples we demonstrate the use of some of these methods and models using python scripts, or a console script.

Command line tool

agrifoodpy is a command line script that runs a pipeline of functions defined in a config file.

$ agrifoodpy examples/cli/scaling_food_supply.yml -o results.json

For more information on how to configure a pipeline using configuration files and execute them using the agrifoodpy command line tool, see Command line tool.

Modules

Basic module accesor usage

Reforest half of UK’s ALC 4 and 5 pasture land

Reforest half of UK's ALC 4 and 5 pasture land

Plot emissions from different item groups and years

Plot emissions from different item groups and years

Reducing UK’s animal product consumption

Reducing UK's animal product consumption

Pipeline

Basic pipeline examples

Building a Food Balance Sheet Pipeline

Building a Food Balance Sheet Pipeline

Gallery generated by Sphinx-Gallery