diff --git a/contrib/sequoia/README.md b/contrib/sequoia/README.md deleted file mode 100644 index 90f02853..00000000 --- a/contrib/sequoia/README.md +++ /dev/null @@ -1,27 +0,0 @@ -# Prepare TIFs from Parrot Sequoia - -The Sequoia captures five images per shot, an RGB JPG and four single band TIFs, but only the JPG contains GPS Exif tags. To use the single-band TIFs for multispectral mapping/analysis it’s useful (not technically required) to have them also contain GPS Exif tags. - -## prepare-tifs.sh - -This script will copy the GPS Exif tags from the RGB JPG file to the four TIFs of the same shot. It will process all images in the working directory and use the sequence number in the filename to match JPG to TIFs. Therefore it *must* only be applied to one folder from the Sequoia per run. - -### Requirements -* [exiv2](https://www.exiv2.org/) -* bash (tested in git-bash on Windows, other shells probably work too) - -### Usage -Run the script from a directory of images captured by Sequoia. -``` -./prepare-tifs.sh -``` - -## subfolder-per-band.sh - -This script will move images into a subfolder per band. - -### Usage -Run the script from a directory of images captured by Sequoia. -``` -./prepare-tifs.sh -``` diff --git a/contrib/sequoia/prepare-tifs.sh b/contrib/sequoia/prepare-tifs.sh deleted file mode 100755 index 790974bf..00000000 --- a/contrib/sequoia/prepare-tifs.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -# Copy GPS Exif tags from IMG_*_RGB.JPG to .TIF images - -for rgb in IMG_*_RGB.JPG; do - seqnum=`echo $rgb | sed -r "s/IMG_[0-9]+_[0-9]+_([0-9]+).*/\1/"` - echo $seqnum - exiv2 -PEVk --grep GPS $rgb > $rgb.tags - - for band in GRE NIR RED REG; do - exiv2 -m $rgb.tags IMG_*_$seqnum\_$band.TIF - done - - rm $rgb.tags -done diff --git a/contrib/sequoia/subfolder-per-band.sh b/contrib/sequoia/subfolder-per-band.sh deleted file mode 100755 index 668224a1..00000000 --- a/contrib/sequoia/subfolder-per-band.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -# Move into subfolder per band -for band in RGB GRE NIR RED REG; do - mkdir $band - mv IMG_*_$band.* $band/ -done