VicenteYago / OPTRAM

Satellite and sensor based model to predict soil moisture at the surface level.
7 stars 0 forks source link

build dockerised sen2r script for Sentinel2 imagery #1

Closed VicenteYago closed 2 years ago

VicenteYago commented 2 years ago
VicenteYago commented 2 years ago

The previous docker images needs the installation of G-Cloud devkit : https://luigi.ranghetti.info/post/safe-gcloud/

VicenteYago commented 2 years ago

Solution:

https://github.com/VicenteYago/OPTRAM/blob/main/sen2r/s2.R

For running the script:

https://github.com/VicenteYago/OPTRAM/blob/main/sen2r/runSentinel.sh

Note that in order to use sen2r() you need an ESA account.

VicenteYago commented 2 years ago
./runSentinel.sh ./inputs-config.json ./Walnut-Gulch.geojson 'Walnut-Gulch' '2017-01-01' '2018-01-01'

Rscript s2.R ./inputs-config.json ./Walnut-Gulch.geojson 'Walnut-Gulch' '2017-01-01' '2018-01-01'