All Questions
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["...
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 ...
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 ...
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 ...
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? ...
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....
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 ...
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 -...
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:"...
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 ...
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 ...
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 ...
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 ...
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 ...
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('...