Skip to content
Snippets Groups Projects
installation.rst 1.31 KiB
Newer Older
Jeremy Commins's avatar
Jeremy Commins committed
=====================
Installation
=====================
Jeremy Commins's avatar
Jeremy Commins committed

Installing sen2chain
--------------------

This package requires Python 3.

.. note:: The current version of sen2chain is not available on Windows.

From Pypy
^^^^^^^^^

.. code-block:: console

    pip install sen2chain

From sources
^^^^^^^^^^^^

.. code-block:: console

    git clone git@framagit.org:jebins/sen2chain.git
    cd sen2chain
    pip install -r requirements.txt
    pip install -e .


Configuration
-------------

's avatar
committed
The configuration file is located at: ``~/sen2chain_data/config/config.cfg``
Jeremy Commins's avatar
Jeremy Commins committed

Configure Sentinel-2 images library
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

's avatar
committed
At first launch default folders are created in ``~/sen2chain_data/data``. You can change the settings by editing the configuration file.
Jeremy Commins's avatar
Jeremy Commins committed

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``

Hubs logins
^^^^^^^^^^^
In order to dowload images, you need a login on the `PEPS <https://peps.cnes.fr/rocket/#/home/>`_  and `Scihub <https://scihub.copernicus.eu/dhus>`_ servers.

* The PEPS login and password must be stored in ``~/sen2chain/config/peps.txt`` like so:

.. code-block:: html

    username password

* The Scihub login and password are stored in the configuration file.