Created
August 26, 2022 16:43
-
-
Save BlasBenito/f7b232094265b8205f29c2865496b994 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#reprojects a geotif from MODIS sinusoidal to EPSG 4326 | |
#check https://gdal.org/programs/gdalwarp.html for further details | |
gdalwarp \ | |
-of GTIFF \ | |
-multi \ | |
--config GDAL_CACHEMAX 1024 \ | |
-s_srs '+proj=sinu +R=6371007.181 +nadgrids=@null +wktext' \ | |
-t_srs '+proj=longlat +datum=WGS84 +no_defs' \ | |
-r near \ | |
-co "COMPRESS=DEFLATE" \ | |
input.tif \ | |
output.tif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment