Fork from alinea.pyratp: https://github.com/openalea-incubator/PyRATP
RATP: Radiation Absorption, Transpiration and Photosynthesis
- make
- gcc 64 bits
- Python 3
- numpy
- pandas
- scipy
- openalea.plantgl
- openalea.mtg
- 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
- leaf angle distribution for each voxel
- Local or solar hour option for computing sun position
- Possibility for external use of the sun computation routine
- install gcc 64 bits (MinGW with Windows OS)
- install miniconda 64 bits: https://docs.conda.io/en/latest/miniconda.html
- Create a conda environment:
conda create -n myenvname openalea.mtg openalea.plantgl numpy=1.20.3 scipy pandas -c conda-forge -c fredboudon
- set conda in the created environment:
conda activate myenvname
- download the repository:
git clone git@github.com:mwoussen/PyRATP_MobiDiv.git
orgit clone https://github.com/mwoussen/PyRATP_MobiDiv.git
cd PyRATP_MobiDiv
- install the package:
make
if you want to edit the source files in the current folder :make mode=develop
- clean the compilation step:
make clean
- test the package:
python tests/smalltests.py
- PyRATP_Mobidiv works only in 64 bits
- It seems like the installation doesn't work with numpy >= 1.23
- Compilation error:
undefined reference to __intrinsic_setjmpex l.3335 pyratpmodule.c
- replace
#include<setjmp.h>
with#include<setjmpex.h>
in the filepyratpmodule.c
(building folder) - relauch the compilation
f2py -c ...
l.58 in the Makefile
- replace