- added gdal for NDVI
Usage:
-
build with
docker build -t garretw/docker_python3_opencv_exiv2:1.1 . -
Run with
docker run -it --rm -v /$(pwd)/:/data garretw/docker_python3_opencv_exiv2:1.1 -
while in the container you can run python 3
$ python3 >>> import cv2 >>> import pyexiv2
-v connects you to your current directory on your host computer.
- The working directory is set as
/dataon the container.
--rm removes the container once you exit.
for file in *.TIF; do python tiff_2_jpg_convert.py --input $file; doneFor now JPG images used in NDVI calculation are hard coded into the script, so update the file accordingly.
./NDVI-calc.sh