A container for lsdtopotools that includes a build of opencv
967

This docker container allows you to run the LSDTopoTools command line tools for valley extraction. It has the OpenCV dependency installed.
These instructions tell you how to download the valley extraction tools and run them in a Docker environment.
These are the bare bones instructions. For a bit more detail and potential bug fixes, scroll down to the section on Docker notes.
brew cask install dockersudo usermod -a -G docker $USERC:\LSDTopoTools.Preamble: Once you have downloaded docker, you can control how much memory you give the docker containers. The default is 3Gb. If you have even moderate sized DEM data, this will not be enough. You can go into the docker settings (varies by operating system, use a search engine to figure out where they are) and increase the memory.
git clone https://github.com/LSDtopotools/lsdtt_opencv_docker
cd lsdtt_opencv_docker
and then build the docker file
docker build -t lsdtt_opencv .
$ docker run -it -v C:\LSDTopoTools:/LSDTopoTools lsdtt_opencv
-it means "interactive".-v stands for "volume" and in practice it links the files in the docker container with files in your host operating system.-v you need to tell docker where the directories are on both the host operating system (in this case C:\LSDTopoTools) and the container (in this case /LSDTopoTools). These are separated by a colon (:).# symbol showing that you are inside the container. You can now do LSDTopoTools stuff.Command line tools are ready for use immediately. Try # lsdtt-valley-metrics
To run the valley extraction methods, you need to have a DEM in ENVI bil format and a suitable parameter file in your C:\LSDTopoTools directory. Let's assume your parameter file is called LSDTT_valleys.param. We would run the valley metrics algorithm by navigating to the LSDTopoTools where the DEM is stored in docker and then run:
lsdtt-valley-metrics LSDTT_valleys.param
-h flag, which will print an html and csv file with the various options that you can use in your parameter files:lsdtt-valley-metrics -h
If you want to know all about Docker, make sure to read the docker documentation. A note of warning: Docker documentation is similar to documentation for the turbo encabulator. Below are some brief notes to help you with the essentials.
Here are some shortcuts if you just need a reminder of how docker works.
List all containers
$ docker ps -a
List containers with size
$ docker ps -as
Remove all unused containers
$ docker system prune
After you install docker on Linux, you will need to add users to the docker permissions:
$ sudo usermod -a -G docker $USER
Once you have done this you will need to log out and log back in again.
This section used to be very complicated, with many tips and tricks and gotchas. But Docker Desktop for Windows is much more streamlined now and you should just follow the instructions on the Docker for Windows installation website
Content type
Image
Digest
Size
1.6 GB
Last updated
over 4 years ago
docker pull lsdtopotools/lsdtt_opencv_docker