Skip to main content

SEN3R (Sentinel-3 Reflectance Retrieval over Rivers) enables extraction of reflectance time series from images over water bodies.

Project description

DOI PyPI version

SEN3R - Sentinel 3 Reflectance Retrieval over Rivers

SEN3R is a stand-alone command-line utility inspired by MOD3R and made to simplify the pipeline of image processing over ESA's Sentinel-3 mission.

⚠️ GDAL is a requirement for the installation, therefore, usage of a conda environment (Anaconda.org) is strongly recommended. Unless you know what you are doing (-:

Installation

Create a Conda environment (python versions above 3.7 were not tested but they should also be compatible):

conda create --name sen3r python=3.7

Activate your conda env:

conda activate sen3r

Install GDAL before installing requirements.txt to avoid dependecy error with pyshp:

conda install -c conda-forge gdal

Install the requirements:

python -m pip install -r requirements.txt

We recommend you to run the internal setup (more up-to-date) but you can also use PyPI pip install sen3r:

python setup.py install 

Do a quick test:

sen3r -h 

If all runs well, you should see:

(sen3r) D:\user_path\sen3r>sen3r -h
usage: sen3r [-h] [-i INPUT] [-o OUT] [-r ROI] [-p PRODUCT] [-c CAMS]
             [-k CLUSTER] [-s] [-v]

SEN3R (Sentinel-3 Reflectance Retrieval over Rivers) enables extraction of
reflectance time series from Sentinel-3 L2 WFR images over water bodies.

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        The products input folder. Required.
  -o OUT, --out OUT     Output directory. Required.
  -r ROI, --roi ROI     Region of interest (SHP, KML or GeoJSON). Required
  -p PRODUCT, --product PRODUCT
                        Currently only WFR is available.
  -c CAMS, --cams CAMS  Path to search for auxiliary CAMS file. Optional.
  -min IRMIN, --irmin IRMIN
                        Default bottom dropping threshold for IR. Optional.
  -max IRMAX, --irmax IRMAX
                        Default upper dropping threshold for IR. Optional.
  -k CLUSTER, --cluster CLUSTER
                        Which method to use for clustering. Optional.
  -s, --single          Single mode: run SEN3R over only one image instead of
                        a whole directory. Optional.
  -v, --version         Displays current package version.

Windows users: For OS compatibility reasons the supported vector formats for -r are .json and .geojson. But if you are under Linux there are implementations in the code to also support .shp, .kml and .kmz. Just check for them inside commons.py > Utils > roi2vertex.

Usage

For a folder of WFR files:

sen3r -i "C:\PATH\TO\L2_WFR_FILES" -o "C:\sen3r_out" -r "C:\path\to\your_vector.json"

For a single WFR file:

sen3r -s -i "C:\PATH\TO\L2_WFR_IMG" -o "C:\sen3r_out" -r "C:\path\to\your_vector.json"

Citing

While the official paper is not published you can use the Zenodo citation:

Franca, David, Martinez, Jean-Michel, & Cordeiro, Mauricio. (2021). SEN3R - Sentinel 3 Reflectance Retrieval over Rivers (v1.0.0). Zenodo. https://doi.org/10.5281/zenodo.5710870

or the BibTex:

@software{franca_david_2021_5710870,
  author       = {Franca, David and Martinez, Jean-Michel and
                  Cordeiro, Mauricio},
  title        = {{SEN3R - Sentinel 3 Reflectance Retrieval over 
                   Rivers}},
  month        = nov,
  year         = 2021,
  publisher    = {Zenodo},
  version      = {v1.0.0},
  doi          = {10.5281/zenodo.5710870},
  url          = {https://doi.org/10.5281/zenodo.5710870}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sen3r-1.0.5.tar.gz (33.8 kB view details)

Uploaded Source

Built Distribution

sen3r-1.0.5-py3-none-any.whl (35.5 kB view details)

Uploaded Python 3

File details

Details for the file sen3r-1.0.5.tar.gz.

File metadata

  • Download URL: sen3r-1.0.5.tar.gz
  • Upload date:
  • Size: 33.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.13

File hashes

Hashes for sen3r-1.0.5.tar.gz
Algorithm Hash digest
SHA256 14b05d5fe4af07685cb667c28687e6c9adf0aa4df1d00c7bdfb5f8da1e9ce070
MD5 19d156f54f5f30776b819709d9b4f7e7
BLAKE2b-256 bbfef106b6d474d22f8769127ad5408d28d558ee73ad73bd2f527bf95fd5d346

See more details on using hashes here.

Provenance

File details

Details for the file sen3r-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: sen3r-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 35.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.13

File hashes

Hashes for sen3r-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1db469f434590e9d9fba7359e2b24f5c569543f9c7542e9f7bbe4e7f5ed22431
MD5 d530f26c6c7660c61ec167b6a991089b
BLAKE2b-256 33f3646b74a31f88cc654e446a3b87f087e72f76cee323216c616ce01e2a0e4f

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page