Assign a projection to a raster dataset

gdal_translate

  • Convert raster data between different formats.
    More information: <https://gdal.org/programs/gdal_translate>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

gdal_translate -a_srs {{EPSG:4326}} {{path/to/input.tif}} {{path/to/output.tif}}

click the source code to copy install gdal_translate on any operating system with command-not-found.com