Questions tagged [gdal-merge]
A utility used to merge small image tiles to create a bigger image
146
questions
0
votes
0
answers
23
views
Attempting to "Merge" Tiles
I just searched the GIS Stack Exchange using "how to merge DEM tiles" and found out about 'GDAL' -> 'Raster miscellaneous' -> 'Merge'. I tried to utilize this tool to merge 9 rasters ...
0
votes
0
answers
39
views
Use in-memory objects to process raster maps using GDAL's Python API
Below are three GDAL supported raster map processing commands, set inside a Bash shell helper function, defined inside a script that'd patch ERA5-Land with ERA5 data (see also: Merge ERA5-Land and ...
3
votes
1
answer
93
views
GDAL merge within a QGIS model designer
I am attempting to include GDAL's merge but having difficulty with the "Additional creation options" field. I would like to include both COMPRESS=LZW and TILED=YES however I cannot seem to ...
0
votes
1
answer
36
views
QGIS creates BOX with no data when merged
I have 2 rasters. The first one is a lidar which is clipped by a masked layer. (30.53mb, pixel size=1m,float32)
The other is a local survey GEOTIFF. (75kb, pixel size=1m,float32)
When I merge them, ...
1
vote
1
answer
22
views
gdal_merge - what use does the -"init" option have?
Looking at the gdal documenation for gdal_merge the "-init" option pre-initializes output bands with values. I assume this means that the whole band is assigned a certain value before the ...
1
vote
0
answers
57
views
Using GDAL translate with VRT - merge error in overlap creates black 📦
I have a series of hi resolution multispectral images from Maxar's WV2 in .NTF form. I am trying to stitch tiles together to create a single image, and I've been having a lot of trouble. I initially ...
0
votes
0
answers
25
views
using gdal to merge Sentinel 5p projected tiff files without the overlapping at borders?
I have used gdalwarp for extracting Sentinel 5p L2__AER_AI data product to 14 tiff files in EPSG:4326 CRS.
These projected tiff files can be gotten from https://drive.google.com/drive/folders/1AHuH6n-...
0
votes
0
answers
28
views
Gdalwarp for terrain correction in SAR image
I am new to the gdal utility. Using DEM data of the Moon, I am trying to perform terrain correction on SAR images.
Here is gdal commandline code ```
!gdalwarp -multi -wo NUM_THREADS=ALL_CPUS -co ...
0
votes
0
answers
50
views
Polar StereoGraphic projection
I have two files with the projection information
Image 1
'GEOGCS["Moon Spheroid",DATUM["Moon_Spheroid",SPHEROID["Moon Spheroid",1737400,833.3333]],PRIMEM["Greenwich&...
1
vote
1
answer
97
views
Automating gdal_merge [closed]
I would like to call gdal_merge via batch-file, so far this looks like this:
python "C:\Program Files\GDAL\gdal_merge.py" -ot Float32 -of GTiff -co COMPRESS=DEFLATE -co PREDICTOR=2 -co ...
0
votes
0
answers
47
views
Identify real world elevation for digital elevation (DEM) GeoTIFF
This seems like it should be simple, but I have been struggling to figure out the best way to identify the real world minimum and maximum elevations from a GeoTIFF I downloaded from the National Map. ...
0
votes
0
answers
26
views
GDAL_Merge not included in OSGEO4W window
I download QGIS Desktop 3.18.3 which came with OSGEO4W
I ran o-help on the OSGEO4W window and noticed gdal_merge etc werent included as available commands. Yet if I go to apps/python37/scripts folder ...
1
vote
0
answers
17
views
QGIS Raster Merge, Projection Error
I am trying to merge a collection of NED10m tiles using QGIS and the GDAL>Raster miscellaneous>Merge command. The command executes but my output raster has a projections issue. Below are two ...
0
votes
0
answers
338
views
How to merge all raster files in a folder using gdal_merge?
I have DEMs in a folder like this
If I run gdal_merge -o out.tif *.hgt, it says
ERROR 4: `/*.hgt' does not exist in the file system, and is not recognized as a supported dataset name.
A similar ...
2
votes
1
answer
426
views
Fastest Possible Use of GDAL to Merge, Reproject & Convert
I have a ~10GB, Australia-wide, single band dataset consisting of 3,351 GeoTIFFs across 8 projections (Map Grid of Australia [MGA], zones 49 to 56). The data has a 2m resolution but only covers urban ...
2
votes
1
answer
306
views
Merging rasters with alpha channel using GDAL
I need to merge 13 GeoTIFFs with (RGB+alpha channel) into one, some of them touch each other. For tests I used only two of them. I was trying to use gdalbuildvrt tool and gdal_translate afterwards, ...
1
vote
1
answer
249
views
gdal_merge: Ignore NoData value only if present in all bands of multiband image
I have a number of RGB images with NoData areas around them, where each band then has the value 0. To merge them, I can of course use gdal_merge like this:
python gdal_merge.py -n 0 -o output.tif ...
0
votes
0
answers
126
views
Merge raster layer error, illegal size
I have an issue with merging several tiles. I am loading the original XYZ files into QGIS (works fine) and try to merge them afterwards yia Raster/miscellaneous/merge . If I only merge 2 tiles this ...
0
votes
0
answers
87
views
Balancing/equalizing color of geotiffs before creating mosaic
I have multiple geotiffs and I want to balance/equalize the color between them, so when I create the final mosaic there will not be any "too obvious" artefacts.
GDAL helps to create the ...
0
votes
0
answers
98
views
Returned non-zero exit status 2 gdal_merge.py in QGIS plugin
I'm trying to merge several files within a QGIS plugin via gdal_merge.py. In Anaconda distribution exactly the same code works as it is like that. I suppose Python in QGIS can't find gdal_merge.py. ...
2
votes
3
answers
441
views
Merging TIFFs while retaining details in GDAL
I am currently trying to merge overlapping raster TIFFs into one single, continuous image. Just using Merge results in a raster with borders, and it is unsatisfactory :
However, using a pixel ...
2
votes
1
answer
278
views
Limit RAM usage by gdal_merge
When trying to use gdal_merge.py (from alpine-normal-3.2.1) to actually merge 4 large raster files (roughly 6 GB each) this way:
gdal_merge.py -o merged.tif -of GTiff input_*.tif
my computer memory ...
1
vote
0
answers
125
views
Artefacts when merging different resolution DEM
I am trying to merge a 10m DEM with a 30m DEM (10m DEM is a sub area of the 30m DEM). Both DEMs have the same projection and nodata value. I create a .vrt file:
gdalbuildvrt test.vrt *.tif -resolution ...
1
vote
2
answers
439
views
What is the raster merge criteria algorithm on rasterio.merge?
I'm creating a mosaic from many sentinel images with a bunch of overlapping areas, although I'm trying to understand what is criteria. For example:
This is a small piece totally clear of clouds
And ...
2
votes
1
answer
86
views
Why is gdal_merge resulting in massive output file?
When using gdal merge to merge two geotiff files about 20 and 60 MB in size, the output files end up on the order of tens of GB. I have tried a variety of compression types, but they either fail or ...
1
vote
0
answers
33
views
Fixing white portion of a merged TIFF
I am trying to add a merge layer to my project. I noticed that my merged layer has a region that is way too white, I am trying to fix that white space by adjusting the interval value from 0-255 to 0-...
1
vote
0
answers
229
views
ImportError: No module named osgeo
I'm running a .bat script (included) in the cmd prompt. I get the error "ImportError: No module named osgeo" when it tries to call the gdal_merge.py command.
I think this has something to do ...
3
votes
1
answer
272
views
Forming a single TIFF image of a Sentinel 2 tile [closed]
I downloaded the data using the following command from Amazon S3 bucket :
aws s3 cp s3://sentinel-s2-l2a/tiles/51/H/VC/2020/10/19/0/ aus1 --recursive --request-payer.
Then translated the 13 bands ...
2
votes
0
answers
36
views
Altimetric image with blank space when merging
I have downloaded some tiff images that has altimetric data from the Brazilian SRTM website: where i am using raster layers to apply merging. However, i have some problems with my merged images, a ...
0
votes
1
answer
681
views
Using Python GDAL Merge (gdal_merge.py)
I am having a Merging issue with the GDAL python library. I am using gdal_merge.pylink
My issue is when I merge two rasters NoData value of one raster overlaps the other data resulting in not a proper ...
0
votes
0
answers
127
views
Gdal Merge of Raster Fails
I´m trying to merge several partially overlapping rasters using Gdal Merge in QGIS 3.14.15-Pi. The merge process runs without throwing any errors but the output is incorrect. The output has no defined ...
2
votes
1
answer
336
views
QGIS gdal merge not working
I'm getting this error when trying to merge 5 different files:
2020-08-25T15:52:53 WARNING Traceback (most recent call last): File "C:/Users/.../AppData/Roaming/QGIS/QGIS3\profiles\default/...
0
votes
1
answer
19
views
QGIS: Exported layer values differ from the underlying raster layer they were exported from
I´m trying to merge multiple raster layers (partial overlap) and then export them into a single layer for my required area of interest (AOI). When i use the raster merge (gdal_merge) option it merges ...
0
votes
0
answers
74
views
Custom function for mosaic seams in Python GDAL
I was wondering if there is a way to implement a custom function for creating seams between the rasters that create a mosaic. More specifically, if I create a mosaic with gdal_merge or gdalwarp, the ...
-1
votes
1
answer
876
views
Exporting large rasters in Google Earth Engine
When exporting large raster data in Google Earth Engine to your Google Drive, is there a function that prevents the export from automatically tiling into smaller files, or even decreases the number of ...
4
votes
1
answer
403
views
PyQGIS standalone script error message for gdal_merge: "Incorrect parameter value for INPUT"
In my standalone PyQGIS script I would like to merge two raster layer. "zero" and "raster". Both variables are definitly QgsRasterLayer objects. This is the function:
def merge(self):
zero = self....
1
vote
0
answers
56
views
Merging two pyramid tile sets (directory)?
I was searching on the Internet about the merging of GeoTIFF tiles (pyramid tiles) generated by gdal2tiles.
Below are the steps I performed
Downloaded tif-files.
Converted tif to vrt (below command)
...
0
votes
0
answers
18
views
Reducing the number of mosaic elements using gdal_merge
I have 4 thousand mosaic elements. So i would like to reduce their count. (for example to 1 thousand, merge every 4 elements)
How can i do this? gdal_merge give me one big raster
2
votes
1
answer
2k
views
'gdal_merge' is not recognized as an internal or external command, operable program or batch file in OSGeo4w Shell
I am trying to batch mosaic a set of rasters using gdal in OSGeo4w shell command line. When I try to use gdal_merge I am getting error as below.
run o-help for a list of available commands
...
3
votes
0
answers
91
views
gdal_merge runs indefinitely, crashes system, BSOD
I have two small rasters. Same resolution, SRID, type, format. When I use gdal_merge, the console keeps running the command ad infinitum.
import time, os
ot = "UInt16"
of = "GTiff"...
0
votes
1
answer
452
views
Composite bands Sentinel-2
I'm working with Sentinel-2 satellite and i'm working with 2,3,4,8 bands. I have to make composite mergining bands. I download images from https://scihub.copernicus.eu/. I used gdal_merge in console ...
1
vote
0
answers
76
views
GDAL merge problem in Python code
I am getting the error while I am trying to stack individual raster bands into one image.
ValueError: expected array of dim 2
import os
from osgeo import gdal
import numpy as np
os.chdir(r'C:\...
2
votes
0
answers
262
views
Merge raster tiles with different resolution and keep original resolution using Python
Problem
I have two raster images with different size and resolution, which are overlapping and which I'd like to merge. The smaller image has a higher resolution which I want to merge into the larger ...
2
votes
2
answers
1k
views
Merging .tif files downloaded from Google Earth Engine in correct order in Python
When you download a large image from Google Earth Engine, it is in multiple small images. Each sub-image name contains the x_min and y_min coordinates of that image.
It is described here - https://...
4
votes
2
answers
879
views
Merging DEMs in QGIS?
Not the first problem I've had with DEMs in QGIS 3.4. Trying to merge 6 DEM tiles together into one. Process for this is simple: go to Raster --> Miscellaneous --> Merge. Once in the menu, select ...
0
votes
0
answers
280
views
Odd Color Shift after Merging Rasters in QGIS
I have a large number of raster orthophotos that I'm trying to merge into a single image using QGIS. The merge completes but the color is significantly off afterwards, as shown here:
This seems like ...
1
vote
0
answers
138
views
Overlaying and exporting rasters in QGIS?
I have in QGIS a higher quality GeoTIFF overlayed on a larger, lower quality GeoTIFF. I reprojected one raster into the coordinate system of the other.
How can I export these to a single GeoTIFF ...
1
vote
0
answers
440
views
Error in Raster/Merge tool
I am completely new to QGIS. I am on a Mac using OS 10.13.6. I have installed QGIS 3.6, and installed Python 3.6.8 per install instructions. I opened a terminal window to check python install:
...
0
votes
1
answer
102
views
Blown out TIFF image after merge in QGIS?
I'm attempting to merge four GeoTIFF images in QGIS for the first time and am getting unexpected results.
Navigating to Raster --> Miscellaneous --> Merge..., I set up the merge as follows:
Once the ...
1
vote
0
answers
45
views
gdal_merge novalue
I managed to run gdal_merge for multiple geotiles (jpeg).
I am using the following options:
command = "gdal_merge.py -init 0 -a_nodata 0 -co COMPRESS=LZW -co BIGTIFF=YES -o "+out_bez+" -of gtiff " +...