| ... | ... | @@ -6,40 +6,14 @@ Note: The current version of sen2chain is not available on Windows (yet). |
|
|
|
|
|
|
|
### Prerequisites
|
|
|
|
|
|
|
|
**_Important notice (01/08/2019) - Since last update sen2chain no longer uses OTB (scipy is used instead), The installation instructions have therefore been updated_**<br />
|
|
|
|
|
|
|
|
GDAL
|
|
|
|
|
|
|
|
```
|
|
|
|
sudo apt install gdal-bin libgdal-dev python3-gdal
|
|
|
|
```
|
|
|
|
|
|
|
|
**_Important notice (01/08/2019) - Since last update sen2chain no longer uses OTB (scipy is used instead), the installation instructions below could be safely avoided_**<br />
|
|
|
|
|
|
|
|
Orfeo Toolbox (OTB) and its python bindings
|
|
|
|
|
|
|
|
```
|
|
|
|
wget https://www.orfeo-toolbox.org/packages/OTB-6.6.1-Linux64.run
|
|
|
|
chmod +x OTB-6.6.1-Linux64.run
|
|
|
|
./OTB-6.6.1-Linux64.run
|
|
|
|
```
|
|
|
|
As indicated in the [OTB installation](https://www.orfeo-toolbox.org/CookBook/Installation.html#linux-x86-64), you need to modify some files to have functional OTB installation:
|
|
|
|
|
|
|
|
* To use Python3 you need in the file otbenv.profile modify ``lib/python`` into ``lib/python3``, for variable PYTHONPATH
|
|
|
|
|
|
|
|
* You need to add a symlink to libpython3.5m.so.rh-python35-1.0 to make it works. The method is described in the FAQ on the OTB installation page. Note that you can create this symlink regardless of your version of Python3 by pointing to the file libpython3.Xm.so..
|
|
|
|
|
|
|
|
* Finally, you must initialize the environment each time you launch a terminal with
|
|
|
|
|
|
|
|
```
|
|
|
|
source otbenv.profile
|
|
|
|
```
|
|
|
|
You can also indicate in your user's .profile the path to ``otbenv.profile`` (example : ``source /home/user/OTB-6.6.0-Linux64/otbenv.profile``)
|
|
|
|
|
|
|
|
Then you can install Python Numpy for OTB bindings
|
|
|
|
|
|
|
|
```
|
|
|
|
sudo apt install python3-numpy
|
|
|
|
```
|
|
|
|
|
|
|
|
Sen2Cor
|
|
|
|
```
|
|
|
|
wget http://step.esa.int/thirdparties/sen2cor/2.5.5/Sen2Cor-02.05.05-Linux64.run
|
| ... | ... | |
| ... | ... | |