Skip to content
Snippets Groups Projects
README.md 2.12 KiB
Newer Older
# s1tiling_jupyter



cyprien.alexandre_ird.fr's avatar
cyprien.alexandre_ird.fr committed
## Source
cyprien.alexandre_ird.fr's avatar
cyprien.alexandre_ird.fr committed
This project is adapted from the original CNES S1tiling processing chain available here : https://github.com/CNES/S1Tiling.
For more documentation please refere to this repository.
cyprien.alexandre_ird.fr's avatar
cyprien.alexandre_ird.fr committed
## Docker build
From s1tiling main folder run :
cyprien.alexandre_ird.fr's avatar
cyprien.alexandre_ird.fr committed
docker build --tag 's1tiling' .
cyprien.alexandre_ird.fr's avatar
cyprien.alexandre_ird.fr committed
## Eodag config file
This is an example of eodag configuration file
cyprien.alexandre_ird.fr's avatar
cyprien.alexandre_ird.fr committed
```
peps:
    priority: # Lower value means lower priority (Default: 1)
    search:  # Search parameters configuration
    download:
        extract:  # whether to extract the downloaded products (true or false).
        outputs_prefix: # where to store downloaded products.
        dl_url_params:  # additional parameters to pass over to the download url as an url parameter
        delete_archive: # whether to delete the downloaded archives (true or false, Default: true).
    auth:
        credentials:
            username: your@email.com
            password: password
```
## S1Processor config file
Extract of S1Processor.cfg. 
This file contains settings for the input/output folders used by s1tiling, as well as the various processing parameters: date, tile, download, etc. The file is clearly annotated.
Folders output, s1images, srtm, eodag and eventually tmp must link to the host. With the below execution command it must be in "/home"
cyprien.alexandre_ird.fr's avatar
cyprien.alexandre_ird.fr committed
```[Paths]
# Path for result tiled images
output : /home/data_out
cyprien.alexandre_ird.fr's avatar
cyprien.alexandre_ird.fr committed
# Path to store the S1 images to be processed
s1_images : /home/raw
cyprien.alexandre_ird.fr's avatar
cyprien.alexandre_ird.fr committed
# Path to SRTM files
srtm : /home/SRTM
cyprien.alexandre_ird.fr's avatar
cyprien.alexandre_ird.fr committed
# Path to geoid model
# geoid_file : ./Geoid/egm96.grd
cyprien.alexandre_ird.fr's avatar
cyprien.alexandre_ird.fr committed
# Path to a temporary file
tmp : /home/tmp
# tmp : %(TMPDIR)s/s1tiling
```
## Execution
The main change from the original container is the integration of jupyter-lab. When executing the container, you need to assign a communication port to access Jupyter from your browser. To retrieve processed data more easily, we create a bind folder with the "--mount" command. In this folder, you'll place the SRTM folder containing the tiles in .hgt format, as well as the configuration files eodag.yml and S1Processor.cfg.
cyprien.alexandre_ird.fr's avatar
cyprien.alexandre_ird.fr committed
``` 
docker run -it -p 8888:8888 --mount type=bind,source="/path/to/target",target=/home s1tiling
```