Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 15054

A Geospatial Data Abstraction Library (GDAL) image mosaicing, reprojection, and warping utility.

1 vote
Accepted

Project one raster into another raster's crs in gdal

Using GDALWarp and assuming bilinear resampling: GDALWarp -s_srs EPSG:4272 -t_srs EPSG:2193 -r bilinear <Your Image> <Output Image> Both NZGD49 and NZTM2000 are well known coordinate systems, GDAL should …
Michael Stimson's user avatar
9 votes
Accepted

How do I change the pixel size in GDAL without changing the extent?

Here's a quick script I put together to correct the cell size of a folder of GeoTiff rasters: import os, sys from osgeo import gdal from osgeo import gdalconst WorkingFolder = sys.argv[1] # first c …
Michael Stimson's user avatar
2 votes

Translating multiband netCDF to GTiff using gdalwarp and Python

Year = 'XXXX' Band = 'bandName' OutputName = 'OutputName.tif' GDAL_Command = 'gdalwarp -of Gtiff -co COMPRESS=LZW -co TILED=YES -ot Byte -te '\ … If you don't have OSGeo4W shell there is a shell batch in your GDAL install folder or you could navigate to your GDAL\bin folder with a command like CD /D "C:\Program Files\GDAL" where the gdalwarp executable …
Michael Stimson's user avatar
9 votes

Gdal: clipping a raster with another raster

For irregular polygons, and assuming that your geotiff raster file is a binary raster, you could use GDAL_Calc: GDAL_Calc.py -A Mask.tif -B CutBigImageToClip.tif --outfile=SmallerFile.tif --NoDataVal …
Michael Stimson's user avatar