Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Remote Sensing Metadata

Remote sensing metadata extracted for Alplakes from the operational products produced using Sencast and the Alplakes Airflow instance.

License: MIT Python

This dockerized code operates as follows:

  • Sync GeoTiff files from a S3 buckets to a local folder and record a list of changed
  • Iterate over the changes, parse the GeoTiff files, extract metadata and produce lake subsets
  • Sync metadata and lake subsets to an S3 bucket

A local folder of GeoTiff files can also be processed in place — pass a filesystem path to --remote_tiff instead of an S3 URI and the rclone sync step is skipped. Outputs that target local paths (no :// in the URI) are written directly without uploading.

Getting started

1. Clone repository

git clone https://github.com/eawag-surface-waters-research/alplakes-sencast-metadata.git

2. Install conda environment

Command must be run from inside the root of the repository

conda env create -f environment.yml

3. Run commands

For a full list of options run

python src/main.py -h

Example python call (S3)

python src/main.py -u -rt s3://bucket/tiff -rtc s3://bucket/tiff_cropped -g https://eawagrs.s3.eu-central-1.amazonaws.com/alplakes/metadata/lakes.geojson -rm s3://bucket/metadata 

Example python call (local folder)

python src/main.py -rt /path/to/local/tiffs -ltc /path/to/cropped -lm /path/to/metadata -g https://eawagrs.s3.eu-central-1.amazonaws.com/alplakes/metadata/lakes.geojson

Example docker call

docker run -e AWS_ACCESS_KEY_ID=XXXXXXXX -e AWS_SECRET_ACCESS_KEY=XXXXXXXX -v /home/user/alplakes-sencast-metadata:/repository -v /home/user/local_tiff:/local_tiff -v /home/user/local_tiff_cropped:/local_tiff_cropped -v /home/user/local_metadata:/local_metadata --rm eawag/sencast-metadata:1.0.0 -u -rt s3://bucket/tiff -rtc s3://bucket/tiff_cropped -g https://eawagrs.s3.eu-central-1.amazonaws.com/alplakes/metadata/lakes.geojson -rm s3://bucket/metadata

About

Generate summary statistics and metadata from Alplakes satellite data produced with Sencast

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages