|
|
**Installation**
|
|
## Installing sen2chain
|
|
|
|
|
|
|
|
***Installing sen2chain***
|
|
|
|
|
|
|
|
|
|
This package requires pip3, Python 3, GDAL, OTB and [Sen2Cor](<http://step.esa.int/main/third-party-plugins-2/sen2cor/).
|
|
This package requires pip3, Python 3, GDAL, OTB and [Sen2Cor](<http://step.esa.int/main/third-party-plugins-2/sen2cor/).
|
|
|
|
|
|
|
|
Note:: The current version of sen2chain is not available on Windows.
|
|
Note:: The current version of sen2chain is not available on Windows.
|
|
|
|
|
|
|
|
Prerequisites
|
|
### Prerequisites
|
|
|
|
|
|
|
|
pip3, GDAL and OTB
|
|
pip3, GDAL and OTB
|
|
|
|
|
|
|
|
```
|
|
```
|
|
|
code-block:: console
|
|
|
|
|
|
|
|
|
|
sudo apt install gdal-bin libgdal-dev python3-gdal otb-bin python3-otb python3-pip
|
|
sudo apt install gdal-bin libgdal-dev python3-gdal otb-bin python3-otb python3-pip
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
As indicated in the `OTB installation <https://www.orfeo-toolbox.org/CookBook/Installation.html#linux-x86-64>`_, do not forget to initialize the environment when you launch a new terminal with
|
|
As indicated in the [OTB installation](https://www.orfeo-toolbox.org/CookBook/Installation.html#linux-x86-64), do not forget to initialize the environment when you launch a new terminal with
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
source otbenv.profile
|
|
source otbenv.profile
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
Sen2Cor
|
|
Sen2Cor
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
```
|
|
|
|
|
|
|
|
wget http://step.esa.int/thirdparties/sen2cor/2.5.5/Sen2Cor-02.05.05-Linux64.run
|
|
wget http://step.esa.int/thirdparties/sen2cor/2.5.5/Sen2Cor-02.05.05-Linux64.run
|
|
|
chmod +x Sen2Cor-02.05.05-Linux64.run && ./Sen2Cor-02.05.05-Linux64.run
|
|
chmod +x Sen2Cor-02.05.05-Linux64.run && ./Sen2Cor-02.05.05-Linux64.run
|
|
|
|
```
|
|
|
|
|
|
|
|
Install sen2chain from sources
|
|
### Install sen2chain from sources
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
git clone https://framagit.org/jebins/sen2chain.git
|
|
git clone https://framagit.org/jebins/sen2chain.git
|
|
|
cd sen2chain
|
|
cd sen2chain
|
|
|
pip3 install --user -e .
|
|
pip3 install --user -e .
|
|
|
|
|
```
|
|
|
|
|
|
|
|
Configuration
|
|
Configuration
|
|
|
-------------
|
|
-------------
|
| ... | |
... | |
| ... | | ... | |