Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 22 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,32 @@
# Package Name
# PyRATP
[![Docs](https://readthedocs.org/projects/pyratp/badge/?version=latest)](https://pyratp.readthedocs.io/)
[![Build Status](https://github.com/openalea/PyRatp/actions/workflows/conda-package-build.yml/badge.svg?branch=master)](https://github.com/openalea/PyRatp/actions/workflows/conda-package-build.yml?query=branch%3Amaster)
[![Python Version](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12-blue)](https://www.python.org/downloads/)
[![License](https://img.shields.io/badge/License--CeCILL-C-blue)](https://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html)
[![Anaconda-Server Badge](https://anaconda.org/openalea3/pyratp/badges/version.svg)](https://anaconda.org/openalea3/pyratp)

## Description
# PyRATP
## Software

### Authors
> - Herve Sinoquet
> - Marc Saudreau
> - Jerome Ngao
> - Boris Adam
> - Christophe Pradal
> - Christian Fournier
> - Fabrice Bauget

### Description
RATP: Radiation Absorption, Transpiration and Photosynthesis

## Dependencies
### Status
Python package

### License
CecILL-C
**URL** : <https://pyratp.rtfd.io>

### Dependencies
- meson-python
- numpy
- pandas
Expand All @@ -18,7 +35,7 @@ RATP: Radiation Absorption, Transpiration and Photosynthesis
- openalea.mtg
- QtPy

## Modifications
### Modifications
- Installation with make: it compiles fortran part with f2py then installs the package with setuptools and pip
- Compute transmitted radiation for each voxel
- Intercepted and transmitted radiation among the output results
Expand Down
7 changes: 1 addition & 6 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ Documentation
- A `PDF <../latex/pyratp.pdf>`_ version of |pyratp| documentation is
available.

.. seealso::

More documentation can be found on the
`openalea <http://openalea.gforge.inria.fr/dokuwiki/doku.php?id=packages:alinea:pyratp:pyratp>`__ wiki.

Authors
=======

Expand All @@ -59,4 +54,4 @@ License
.. note:: `Cecill-C <http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html>`_
license is a LGPL compatible license.

.. |pyratp| replace:: Alinea.PyRATP
.. |pyratp| replace:: OpenAlea.PyRATP
6 changes: 3 additions & 3 deletions doc/user/autosum.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ Reference guide
###################################
.. contents::

.. currentmodule:: alinea.pyratp.__init__
.. currentmodule:: openalea.ratp.__init__


:mod:`alinea.pyratp` module
:mod:`openalea.ratp` module
===============================================
.. automodule:: alinea.pyratp.__init__
.. automodule:: openalea.ratp.__init__
:members:
:undoc-members:
:inherited-members:
Expand Down
52 changes: 34 additions & 18 deletions doc/user/ratp.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
**RATP version 2 in OpenAlea environment**

**User’s Guide**
==================
Model description
==================

**H. Sinoquet, UMR PIAF, Clermont-Ferrand, France**

**INTRODUCTION**
INTRODUCTION
------------

The model **RATP** (Radiation Absorption, Transpiration and
Photosynthesis) was designed to simulate the spatial distribution of
Expand All @@ -29,13 +30,16 @@ modules, which can be used as a Python library in the OpenAlea
environment. A Fortran90 module includes public variables and
subroutines, which are all accessible in the OpenAlea environment.

**SOFTWARE INSTALLATION**
Software installation
---------------------

.. code-block:: python

.. python::
mamba install -c openalea3 -c conda-forge openalea.ratp

mamba install -c openalea3 -c conda-forge openalea.pyratp

**RATP MODULES**
RATP modules
------------

Here is the list of RATP modules:

Expand All @@ -59,7 +63,10 @@ Here is the list of RATP modules:

- photosynthesis

1. *module constant_values*


1. module constant_values
^^^^^^^^^^^^^^^^^^^^^^^^^

This module is aimed at setting values for physical constants.

Expand Down Expand Up @@ -97,7 +104,8 @@ Syntax for calling subroutine **cv_set** in OpenAlea environment is:

Ratp.constant_values.cv_set()

2. *module grid3D*
2. module grid3D
^^^^^^^^^^^^^^^^

This module is aimed at building a 3D grid, namely the spatial
distribution of leaf area in the voxels.
Expand Down Expand Up @@ -318,7 +326,8 @@ Syntax in OpenAlea environment is:

Ratp.grid3d.g3d_destroy()

3. *module skyvault*
3. module skyvault
^^^^^^^^^^^^^^^^^^

This module is aimed at creating the skyvault, namely discretising the
sky vault as a set of solid angles characterised by their central
Expand Down Expand Up @@ -367,7 +376,8 @@ module **skyvault**. Syntax in OpenAlea environment is:

Ratp.skyvault.sv_destroy()

4. *module vegetation_types*
4. module vegetation_types
^^^^^^^^^^^^^^^^^^^^^^^^^^

This module is aimed at defining physical and physiological properties
of each vegetation type included in the 3D scene. This includes leaf
Expand Down Expand Up @@ -559,7 +569,8 @@ module **vegetation_types**. Syntax in OpenAlea environment is:

Ratp.vegetation_types.vt_destroy()

5. *module micrometeo*
5. module micrometeo
^^^^^^^^^^^^^^^^^^^^

This module is aimed at setting the micrometeorological environment
experienced by the 3D scene.
Expand Down Expand Up @@ -620,7 +631,8 @@ is:

Ratp.micrometeo.mm_destroy()

6. *module dir_interception*
6. module dir_interception
^^^^^^^^^^^^^^^^^^^^^^^^^^

This module is aimed at computing directional radiation interception in
a vegetated 3D grid where several vegetation types are included. This
Expand Down Expand Up @@ -734,7 +746,8 @@ the OpenAlea environment is:

Ratp.dir_interception.di_destroy()

7. *module hemi_interception*
7. module hemi_interception
^^^^^^^^^^^^^^^^^^^^^^^^^^^

This module is aimed at computing hemispherical radiation interception
in a vegetated 3D grid where several vegetation types are included, by
Expand Down Expand Up @@ -812,7 +825,8 @@ Subroutine **hi_destroy** deallocates allocatable arrays of module

Ratp.hemi_interception.hi_destroy()

8. *module shortwave_balance*
8. module shortwave_balance
^^^^^^^^^^^^^^^^^^^^^^^^^^^

Module **shortwave_balance** computes radiation balance from:

Expand Down Expand Up @@ -902,7 +916,8 @@ is:

Ratp.shortwave_balance.swrb_destroy()

9. *module energy_balance*
9. module energy_balance
^^^^^^^^^^^^^^^^^^^^^^^^^

Module **energy_balance** computes transpiration rates, stomatal
conductance and leaf temperature, in a 3D scene including one or several
Expand Down Expand Up @@ -984,7 +999,8 @@ is:

Ratp.energy_balance.eb_destroy()

10. *module photosynthesis*
10. module photosynthesis
^^^^^^^^^^^^^^^^^^^^^^^^^

Module **photosynthesis** computes assimilation rates by using
Farquhar’s model in a 3D scene including one or several vegetation types
Expand Down
Loading