Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (14 sloc) 531 Bytes
#!/bin/bash
# this is a script that allows for the batch reprocessing of GeoTiffs to have
# the correct nodata profiles, so they can be used properly in packages that use
# GDAL by storing the nodata value in TIFF Tag ID 42113, instead of as an IEEE.
# This is expanded upon here: gdal_translate -of GTiff -co PROFILE=GeoTIFF input.tif output.tif
echo
for file in *
#
do
ls "$file" # Lists all files in $PWD (current directory).
gdal_translate -of GTiff -co PROFILE=GeoTIFF "$file" trans-"$file"
done
echo; echo
exit 0