Remove unnecessary scripts for sequoia image preparation.

pull/1144/head
Sam Salway 2020-08-19 20:10:17 +10:00
rodzic 46ab06f91c
commit 00fa45a68c
3 zmienionych plików z 0 dodań i 49 usunięć

Wyświetl plik

@ -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 its 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
```

Wyświetl plik

@ -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

Wyświetl plik

@ -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