Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (14 sloc) 531 Bytes
# 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
for file in *
ls "$file" # Lists all files in $PWD (current directory).
gdal_translate -of GTiff -co PROFILE=GeoTIFF "$file" trans-"$file"
echo; echo
exit 0