A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [gdalwarp]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
27 views

Create VRT from multiple hdf files with Rasterio/GDAL

I have several Landsat 8 Scenes, each consisting of 11 bands. I want to mosaic them by creating a VRT and afterwards exporting the mosaic as TIFF again. I tried using GDAL via Python. But maybe it ...
0
votes
1answer
42 views

Using GdalWarp Polar Stereographic Projection

I want to project a netcdf file projected with the NSIDC Sea Ice Polar Stereographic North (EPSG:3411) to the WGS84 (EPSG:4326). The NETCDF data input file comes from Copernicus Marine Model. I use ...
1
vote
1answer
31 views

Changing the Map Projection of a DEM File using gdalwarp?

I have downloaded the moons dem from: https://astrogeology.usgs.gov/search/details/Moon/LRO/LOLA/Lunar_LRO_LOLA_Global_LDEM_118m_Mar2014/cub I want to change the projection to create a new ...
1
vote
1answer
90 views

Using python GDAL to reproject an HDF

I am working with MODIS data (MOD14) and I only need the fire mask, which is the first dataset. The problem is that MODIS data in the sinusoidal projection and I need to reproject into something else....
1
vote
0answers
27 views

Rasterio 0-360 lon inputfile to -180:180lon WarpedVRT output

I have used rasterio to open netcdf files and by defining a WarpedVRT extract a subarea that can be read with the vrt.read() command. It works like a charm except when the longitude grid is 0:360 ...
1
vote
1answer
25 views

Errors clipping a raster with a vector mask layer

I am running QGIS 3.4.14 (current stable version) on OSX Mojave 10.14.5. I have a vector mask that I want to use to clip out a region of an image. Image was a jpeg originally but I translated it to a ...
1
vote
0answers
41 views

GeoTIFF reprojection to polar stereographic: Can I speed it up?

For a GeoServer project I need to reproject my high resolution (~40000 pixels wide) GeoTIFF files to polar Stereographic (EPSG 3031 and EPSG 3413). I manage to do this with gdalwarp, but this is very ...
1
vote
0answers
22 views

SR EPSG 3035 ETRS/LAEA Europa to EPSG: 6204 Macedonian State Coordinate System python

I would like change a raster dataset from EPSG: 3035 (ETRS89/LAEA Europa) to EPSG: 6204 (Macedonia State Coordinate System) My WKT for the first coordinate system is: PROJCS["ETRS89 / LAEA Europe", ...
0
votes
1answer
14 views

Huge processing time for gdalwarp command extracting ROI by extents

I'm running the below gdalwarp command to extract a 1024 x 1024 ROI from a large raster which has Dimensions X: 34396 Y: 36707 Bands: 4 Input raster has previously been pan-sharpened and ...
2
votes
0answers
23 views

“Warning 1: All options related to creation ignored in update mode” (GDAL)

I am attempting to clip a raster using a polygon file (shapefile) and to save the result in memory. I succeed to do it using gdal.Warp and the option format=VRT using the following code. Please note ...
1
vote
0answers
19 views

Reprojecting raster using gdalwarp “EPSG_Code: 6204”

I want to reproject a raster using the projection of other raster using gdalwarp, however, I am confronting some problems because the raster does not line up when loading them into a GIS Software. ...
1
vote
0answers
26 views

Unable to execute QGIS algorithm while taking Input raster directly from AWS S3 account

I have a raster file (.TIF) in my AWS S3 account. I am using GDAL to open that .TIF file and to save the reprojected .TIF file to my local computer using QGIS GDAL 'Warp (reproject)' algorithm as ...
1
vote
1answer
51 views

gdal.Warp -cutline option (geometry object instead of vector file)

I am new to ogr and vector data manipulation. I am interested to cut an image (in this case a DEM file) using gdal.Warp() with the '-cutline' option to used the borders of a rectangular polygon to ...
0
votes
0answers
36 views

Export a GeoTIFF file to NetCDF in lat lon coordinates

I'm quite new with GDAL and would like to use it to rewrite a GeoTIFF of NSIDC sea ice concentration from GeoTIFF in polar stereographic projection into a NetCDF in Lon Lat coordinates The file is ...
2
votes
0answers
23 views

gdalwarp cuts off top and right edge of globe from gfs data

I am using data from this GFS forecast: https://nomads.ncdc.noaa.gov/data/gfs4/201905/20190502/gfs_4_20190502_1800_000.grb2 Specifically the bands 102 and 103 containing wind data. I first combine ...
2
votes
0answers
45 views

Speed up reprojecting large raster (38 GB) in QGIS

I'm fairly new to QGIS and Python but nevertheless want to reproject a 38GB-DEM to a custom CRS. (The output file is supposed to be 55GB large - don't know why, but if I don't have >55GB of free disk ...
0
votes
0answers
43 views

R: gdal_translate/gdalwarp/gdalUtils for georreferencing raster

I am currently working on georreferencing a 530 X 587 .bmp file called my_raster.bmp with gdal_translate and gdalwarp from gdalUtils package, which is equivalent to using GDAL with those commands. ...
1
vote
0answers
20 views

Getting subset with same cordinates for different rasters using gdal.translate?

I am a new into Python. I have processed 1000 NDVI rasters covering larger area. I need to burn those NDVI raster with Water mask. The water mask came for whole world I need to subset AOI and also ...
1
vote
1answer
45 views

gdalwarp ignoring multiple srcnodata values?

I'm trying to resample an in image in the MODIS sinusoidal projection. There are several fill/ NoData values that I want to exclude in the resampling. The data are unsigned 16-bit integer values. A ...
0
votes
0answers
46 views

Warp using Java GDAL API

I am trying to warp a dataset using Java GDAL API. However, it is not documented and it is unclear which options WarpOptions take. I feed -tr 15 15 just like for gdalwarp. This results in Option not ...
2
votes
0answers
40 views

Transform raster CRS fails [closed]

I have a large amount of .TIF which come in EPSG 31467. I want to transform them into EPSG 3044. My gdalwarp command throws me various errors, no matter what I try: gdalwarp - s_srs EPSG:31467 -t_srs ...
1
vote
1answer
55 views

gdalwarp to change block size also changes pixel values

I'm working with a GeoTIFF from http://www.fao.org/geonetwork/srv/en/main.home?uuid=ba4526fd-cdbf-4028-a1bd-5a559c4bff38 The original has data values from 0-11: $ gdalinfo -hist ./data/FAO/...
0
votes
0answers
72 views

Error “Too many points failed to transform, unable to compute output bounds.” using gdal2tiles

I want to generate tiles from a GeoTIFF file using gdal2tiles. gdal2tiles.py input.tif when I try the above command I got the following error Too many points (10201 out of 10201) failed to ...
0
votes
0answers
11 views

Warping large virtual mosaic into a small raster results in IntegerOverflow error

I'm coming across an interesting situation using gdalwarp. I have a very large virtual mosaic with varying resolutions of source files. I use this virtual mosaic to create smaller rasters using ...
1
vote
1answer
138 views

gdalwarp resampling method

I'm trying to mosaic some georeferenced images using gdalwarp. But if I change the resampling method the result is always the same, why? I need to build a mosaic where the value of each pixel is the ...
1
vote
2answers
84 views

Cut raster by pixels in GDAL

i've some georeferenced images that have the size of 1280 X 960. I need to cut the outer pixels to have a size of 1220 X 900 (i need to cut 30 pixel for each borders). Can i do this using GDAL or a ...
0
votes
1answer
142 views

Converting GeoTIFF to tiles using gdal2tiles

I have a GeoTIFF of weather radar data that I cannot seem to get converted to a raster tileset using gdal2tiles. When the tileset is generated, there are TONS of empty folders in the output directory, ...
2
votes
1answer
82 views

Convert gnomonic projection to Mercator

I'm trying for some time to convert a weather radar map (gnomonical projection) to mercator (EPSG_3395) and then layout it onto third-party web map so far unsuccessfully. The original image: The ...
0
votes
0answers
30 views

Using gdalwarp, how to first transform and then clip instead of vice-versa?

I have a large number of GeoTiffs that I need to clip by a polygon stored in a shapefile and then save them as a new raster. I use a gdalwarp command which I call from a Python script. These GTiffs (...
1
vote
0answers
14 views

Multiband GeoTIFF loading slow in browser

Here's the problem: http://www.doctorharapos.com/webMap/geotiff.html My GeoTIFF files are light, just 4MB My process: starting from an ASCII Esri file I transform it to GeoTIFF using gdalwarp, ...
4
votes
1answer
146 views

MODIS Fire Product tile conversion to GeoTIFF problem

I downloaded a tile (selected tile in the picture) from https://ladsweb.modaps.eosdis.nasa.gov/search/order/3/MOD14--6/2019-08-09/DB/Tile:H25V6 I used gdalinfo on the file. It's output is Driver: ...
1
vote
1answer
133 views

Reproject NetCDF file using gdalwarp?

I'm trying to convert this file to EPSG:3857 with this command: gdalwarp -t_srs EPSG:3857 S2A_rhow_l2r.nc test-proc.nc Warning 1: No UNIDATA NC_GLOBAL:Conventions attribute Warning 1: Several ...
3
votes
1answer
75 views

Problems with analyzing MODIS Aerosol Optical Depth

I want to extract AOD from the following hd5 file.Would be grateful for any help. Objective is to have a tif file projected in EPSG:4326 with values of all 3 bands. https://e4ftl01.cr.usgs.gov/MOTA/...
0
votes
0answers
16 views

Correcting an inaccurate edge effect on MODIS L2 swath data?

I am currently trying to process a MODIS MOD10_L2 product (Snow Cover 5-Min L2 Swath 500m, Version 6) to extract snow cover information. It's in HDF-EOS format and I process it with GDAL in Python and ...
0
votes
0answers
38 views

Problem executing Raster/Extraction/Clip Raster by Mask Layer

QGIS/GDAL environment: QGIS 3.8, gdal 2.4.0, macOS 10.14.6, python 3.6.5 I have successfully added a polygon ( as 2D and 25D objects ) to my project from CSV files using WKT format. With a ...
1
vote
0answers
29 views

Warping a GeoTIFF File (Error1: Cannot open CSV)

Here is my code for the script : import os import subprocess as sub # get your files path = r'C:\Users\User\Downloads\jalna\pdf\test' files = [os.path.join(path, f) for f in os.listdir(path) if f....
0
votes
1answer
58 views

gdal_translate error 1: output driver not found

I'm using gdalwarp from gisinternals msvc compiled binaries. There should be a script which specifies the path variables. It was given inside the binaries. I modified in a small way such that it ...
1
vote
1answer
56 views

File size inflation using GDAL

New to GDAL, have some tiff files and I'm trying to do the following: "0 to NoData" to avoid black background in Mapbox: gdalwarp -dstnodata 0 -dstalpha [input file] [output file] The problem is, ...
0
votes
0answers
121 views

Constructing boundary polygon around raster image when mask layer is ill-defined using GDAL with Python?

I have a raster image and I want to construct a new vector layer that has the boundary of the raster, using python. Below is a sample of the image. The problem is that the nodata value is set to "...
2
votes
1answer
158 views

Gdalwarp orthorectification WorldView-3 not using RPC projection properly

I have a high-resolution WorldView-3 image that I am trying to orthorectify using gdalwarp -rpc -to "RPC_DEM=dem.tif" input.tif output.tif However the output is not aligned with Bing or Google maps ...
2
votes
1answer
111 views

GDAL Warp Memory Datasource as Cutline

I am attempting to use a memory vector to crop a raster using GDAL warp but I get the following error: ERROR 1: Cannot open <osgeo.ogr.DataSource; proxy of <Swig Object of type '...
4
votes
0answers
149 views

“Clip Raster by Mask Layer” produces zero values (and not Nodata) outside mask boundaries

This is my first question here. I have a big raster of the world's nighttime lights and want to clip it down to the Adm0 of a country: In order to do so, in QGIS 2.18 what I do is using the Clipper ...
0
votes
1answer
37 views

Error using gdalwarp

I have this NetCDF file of the Greenland ice sheet velocities but the coordinate system is NSIDC Sea Ice Polar Stereographic North (y: -655750 to -3355750 and x: -639750 to 855750 meters). I wanted to ...
0
votes
0answers
21 views

Gdal_calc changing the values incorrectly

I am trying to re-project a file to a uniform grid EPSG:4326 and for that I am using the command: gdalwarp -t_srs EPSG:4326 -srcnodata -32767 HDF5:"LC08_L1TP_029037_20190611_20190611_01_RT_L2GEN_2.nc"...
1
vote
0answers
39 views

Error when reprojecting raster (warp) QGIS [duplicate]

When trying to reproject a raster from degrees to meters in warp (QGIS) I receive the following error: Processing algorithm… Algorithm 'Warp (reproject)' starting… Input parameters: { 'DATA_TYPE' : ...
1
vote
1answer
56 views

Values change after re-projecting the NetCDF files to TIFF file

I am trying to re-project a NetCDF file to a uniform grid EPSG: 4326 and convert it to a TIFF file. However, after the GDAL re-projection the values in the file change, i.e. the values are not ...
0
votes
1answer
154 views

Transforming a image to a shape defined by image corners in earth coordinates - Python

I have a source satellite image. It is a rectangular shape x by y. I also have the stored lon/lat coordinates of the corners and the center point in the xml meta file. Is there a way with the gdal or ...
1
vote
1answer
376 views

How to convert a TIFF file to HGT file?

In my project I needed to convert TIFF file to SRTM data and came up with following warning/error. gdal_translate -of SRTMHGT Terrain.tif Terrain.hgt Output: Warning 1: The source projection ...
2
votes
2answers
618 views

Averaging overlapping rasters with gdal

I am working on creating a class which will merge several georeferenced rasters into one using different strategies, essentially taking average, max, min where the images are overlapping. So far I've ...
2
votes
0answers
48 views

Is there a difference in using Haversine distance vs re-projecting coordinate frame?

I have a GeoTIFF raster file in the EPSG 4326 (WGS 84) geographic coordinate system. I want to crop a 20 km x 20 km square around a particular (lat, long) coordinate, and save that as a new raster. ...