Skip to content

eyeNsky/docker-acolite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-acolite

Dockerfile to set up acolite and gsutil on an Ubuntu 18.04 image.

http://odnature.naturalsciences.be/remsem/software-and-data/acolite

Build the docker container with:

docker build -t acolite_version . 

The build process puts gsutil and acolite in /usr/local/bin so the commands don't need the full path to the binary files.

If you get "ERROR 404: Not Found." the acolite version has changed. Visit their website to determine the new version and update the Dockerfile. Also, file an issue and I will update.

Run:

docker run -it -v /mnt:/mnt acolite_version

This will cross mount the local /mnt directory with the container /mnt directory. Windows users will need to substitute the local directory they shared with Docker for the first /mnt. Similar to:

docker run -it -v C:\path\to\share:/mnt acolite_version

The working directory (/mnt/acolite) will be created on the local machine and the container will start there (see WORKDIR in Dockerfile):

Get the example data used in manual:

gsutil -m cp -r gs://gcp-public-data-sentinel-2/tiles/31/U/ES/S2A_MSIL1C_20170526T105031_N0205_R051_T31UES_20170526T105518.SAFE/ ./ 

Settings file for demo data:

inputfile=/mnt/acolite/S2A_MSIL1C_20170526T105031_N0205_R051_T31UES_20170526T105518.SAFE 
output=/mnt/acolite
limit=51.3,3.0,51.4,3.25
l2w_parameters=rhos_*

Put the settings in to a file (settings.txt) and run:

acolite --cli --settings=settings.txt

The output should look something like this:

Alt text

About

Dockerfiles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published