| ... | ... | @@ -8,44 +8,41 @@ Note:: The current version of sen2chain is not available on Windows. |
|
|
|
|
|
|
|
pip3, GDAL and OTB
|
|
|
|
|
|
|
|
```
|
|
|
|
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
|
|
|
|
|
|
|
|
```
|
|
|
|
source otbenv.profile
|
|
|
|
source otbenv.profile
|
|
|
|
```
|
|
|
|
Sen2Cor
|
|
|
|
|
|
|
|
```
|
|
|
|
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
|
|
|
|
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
|
|
|
|
```
|
|
|
|
|
|
|
|
### Install sen2chain from sources
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
git clone https://framagit.org/jebins/sen2chain.git
|
|
|
|
cd sen2chain
|
|
|
|
pip3 install --user -e .
|
|
|
|
git clone https://framagit.org/jebins/sen2chain.git
|
|
|
|
cd sen2chain
|
|
|
|
pip3 install --user -e .
|
|
|
|
```
|
|
|
|
|
|
|
|
Configuration
|
|
|
|
-------------
|
|
|
|
## Configuration
|
|
|
|
|
|
|
|
The configuration file is located at: ``~/sen2chain_data/config/config.cfg``.
|
|
|
|
This file (and corresponding path) is only created after the first sen2chain import in python.
|
|
|
|
|
|
|
|
Configure Sentinel-2 images library
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
### Configure Sentinel-2 images library
|
|
|
|
|
|
|
|
At first launch default folders are created in ``~/sen2chain_data/data``. You can change the settings by editing the configuration file.
|
|
|
|
|
|
|
|
Sen2cor configuration
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
### Sen2cor configuration
|
|
|
|
|
|
|
|
The full path to the sen2cor bashrc file is needed to process L1C to L2A.
|
|
|
|
e.g.: ``/home/user/Sen2Cor-02.05.05-Linux64/L2A_Bashrc``
|
| ... | ... | |
| ... | ... | |