Skip to content

Instantly share code, notes, and snippets.

@rjsheperd
rjsheperd / gdal-nodata-convert.sh
Created October 4, 2022 19:01
Converts nodata value in a GeoTiff using GDAL
#!/usr/bin/env bash
cp "${INPUT}.tif" "${INPUT}-removed-nodata.tif"
INPUT="${INPUT}-removed-nodata.tif"
OUTPUT="${OUTPUT}.tif"
# Use gdal_edit.py to unset nodata metadata so we can use them in gdal_calc.py
gdal_edit.py -unsetnodata $INPUT
(use-modules (gnu)
(gnu system nss)
(guix utils)
(gnu packages vim)
(nongnu packages linux)
(nongnu system linux-initrd))
(use-service-modules desktop sddm xorg)
(use-package-modules certs gnome)
(operating-system