Skip to content

Environment to run `satellite_images_nso` python package in (based on GDAL).

License

Notifications You must be signed in to change notification settings

DanielOverdevestPZH/satellite_images_nso_docker

 
 

Repository files navigation

satellite_images_nso_docker

Environment to run satellite_images_nso python package in (based on GDAL).

TL;DR - Interactive bash

docker run -it --entrypoint bash dockerhubpzh/satellite_images_nso_docker
python
YOUR_USER_NAME_HERE = ""
YOUR_PASSWORD_HERE = ""
import satellite_images_nso.api.nso_georegion as nso
path_geojson = "/src/examples/example.geojson"
# The first parameter is the path to the geojson, the second the map where the cropped satellite data will be installed
georegion = nso.nso_georegion(path_geojson,"/src/output/",\
                              YOUR_USER_NAME_HERE,\
                             YOUR_PASSWORD_HERE)

# This method fetches all the download links to all the satelliet images which contain region in the geojson.
links = georegion.retrieve_download_links()
print(links)

TL;DR - Daily job to fetch new images

  1. Copy .env.example and save as .env.
  2. Fill in credentials in .env
  3. docker run --env-file .env --mount type=bind,src=${PWD}/data,dst=/data satellite-images-nso

DockerHub

https://hub.docker.com/r/dockerhubpzh/satellite_images_nso_docker

About

Environment to run `satellite_images_nso` python package in (based on GDAL).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 60.8%
  • Shell 25.7%
  • Dockerfile 13.5%