:orphan:
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.
.. raw:: html
.. raw:: html
.. thumbnail-parent-div-open
.. thumbnail-parent-div-close
.. raw:: html
Command line tool
-----------------
``agrifoodpy`` is a command line script that runs a pipeline of functions
defined in a config file.
.. code-block:: console
$ 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
:ref:`config_file`.
.. raw:: html
.. raw:: html
.. thumbnail-parent-div-open
.. thumbnail-parent-div-close
.. raw:: html
Modules
-------
Basic module accesor usage
.. raw:: html
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/modules/images/thumb/sphx_glr_plot_reforest_ALC_4_5_thumb.png
:alt:
:doc:`/examples/modules/plot_reforest_ALC_4_5`
.. raw:: html
Reforest half of UK's ALC 4 and 5 pasture land
.. raw:: html
.. only:: html
.. image:: /examples/modules/images/thumb/sphx_glr_plot_emissions_animal_scaling_thumb.png
:alt:
:doc:`/examples/modules/plot_emissions_animal_scaling`
.. raw:: html
Plot emissions from different item groups and years
.. raw:: html
.. only:: html
.. image:: /examples/modules/images/thumb/sphx_glr_plot_animal_consumption_scaling_thumb.png
:alt:
:doc:`/examples/modules/plot_animal_consumption_scaling`
.. raw:: html
Reducing UK's animal product consumption
.. thumbnail-parent-div-close
.. raw:: html
Pipeline
--------
Basic pipeline examples
.. raw:: html
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/pipeline/images/thumb/sphx_glr_plot_balanced_scaling_food_balance_sheet_pipeline_thumb.png
:alt:
:doc:`/examples/pipeline/plot_balanced_scaling_food_balance_sheet_pipeline`
.. raw:: html
Building a Food Balance Sheet Pipeline
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
:includehidden:
/examples/cli/index.rst
/examples/modules/index.rst
/examples/pipeline/index.rst
.. only:: html
.. rst-class:: sphx-glr-signature
`Gallery generated by Sphinx-Gallery `_