Skip to main content

All Questions

Tagged with
189 questions with no upvoted or accepted answers
5 votes
0 answers
458 views

Reproject WGS84 raster file to topocentric LTP-ENU using GDAL with a custom proj string

I have some raster files which are given in WGS84. As an example, here are some gdalinfo for one of those: Driver: GTiff/GeoTIFF Files: dem_r.tif Size is 2000, 911 Coordinate System is: GEOGCRS["...
swiss_knight's user avatar
  • 10.5k
5 votes
0 answers
2k 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 ...
EnricoVac's user avatar
4 votes
1 answer
187 views

gdalwarp sum resampling algorithm double counting at some specific resolutions

GDALWarp utility is double-counting my pixels in the sum algorithm for resampling in some cases. I don't believe it's something I'm obviously doing wrong. I have a file, at 30 arcsecond resolution for ...
William Abma's user avatar
4 votes
1 answer
792 views

Is there a GDAL function similar to OpenCV's WarpPerspective?

I't trying to mosaic a GeoTiff raster against another. Initially, they were both georeferenced in WGS-84 CRS. Using OpenCV, I calculated a homography transformation (a 3x3 projection matrix), that ...
zuzaanto's user avatar
4 votes
0 answers
1k views

Using max as resampling method with gdal_translate?

My Issue According to the docs it appears that gdalwarp has many more resampling methods than gdal_translate. Can anybody explain why the resampling methods can't be used with both functions? ...
Braden Roseborough's user avatar
4 votes
0 answers
3k views

How to make NoData transparent?

I have been using python to turn a netcdf into a geotiff. Once I have the geotiff, I am using gdalwarp to transfer it into the right projection. Then use gdal_translate to get the tif into a vrt file....
Wesley Bowman's user avatar
4 votes
0 answers
137 views

Cropping EUDEM with GDAL creates zig-zag terrain

I have downloaded EUDEM (20 Gb) from http://www.eea.europa.eu/data-and-maps/data/eu-dem#tab-original-data When I try to crop it by GDAL using: gdalwarp -dstalpha -of EHdr -crop_to_cutline -cutline ...
Matej's user avatar
  • 295
3 votes
1 answer
1k views

Maximize CPU and memory usage when using gdalwarp

I'm using gdalwarp to clip and warp a large (but not huge) GeoTIFF (6.2 GB total size). The GDAL command I am using is: gdalwarp --config GDAL_CACHEMAX 80% -wm 80% -multi -wo NUM_THREADS=ALL_CPUS -...
Nick's user avatar
  • 1,613
3 votes
2 answers
369 views

Convert Sentinel-5P netCDF O3_TCL (Tropospheric Ozone) subdataset to GeoTiff by GDAL?

I've used these steps below to extract the subdataset of Sentinel-5P netCDF file: First, extract the latitude and longitude variables as geolocation arrays gdal_translate -of VRT HDF5:"...
Bằng Rikimaru's user avatar
3 votes
0 answers
1k views

Saving osgeo.gdal.Dataset as GeoTIFF or JPEG with world files using GDAL from Python?

I am trying to take a plain JPEG with no spatial references, apply ground control points (GCPs) to it, and output a georeferenced GeoTIFF or JPEG with world files. I found some code that seemed like ...
Kat's user avatar
  • 131
3 votes
0 answers
537 views

Why can't I transpose a raster across the pole with rasterio or gdal, and how could it be done?

I have a raster in e.g epsg:4326, it covers all world, from 180E to 180W, from 90S to 90N. I want to re-project a part of it to epsg:3031 and also change the grid size and resolution. Here is a ...
user2821's user avatar
  • 398
3 votes
0 answers
588 views

Match Projection & Extent Using GDAL

I am looking to match both the projection and extent of two separate .tif files. The file I want all other .tif files introduced into raster calculations is as follows: The other raster image covers ...
TornadoEric's user avatar
3 votes
0 answers
980 views

Does Gdal read temporary files?

I am trying to change geographic reference system images from landsat 8. I created one method to do it in my class. I used the temporary directory as strategy to convert files and clean all row ...
Diogo Caribé's user avatar
3 votes
0 answers
1k views

Subdividing large files due to gdalwarp - too big image size

I can't figure out how to warp a large file (2GB+) with no specified to CRS, to a specified CRS - I keep getting a "Too big image size" error. For context, I want to take large NITF files, warp them ...
Catsbergers's user avatar
3 votes
0 answers
1k views

Resize raster resolution with Gdal_translate or Gdalwarp

I am trying to change my resolution from 10m x10m raster cells to 25m x 25m raster cells. So far I figured that both gdalwarp and gdal_translate can do this (from python). subprocess.call('...
CLH's user avatar
  • 93

15 30 50 per page
1
2 3 4 5
13