Questions tagged [gdalwarp]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
11 views

gdalwarp resampling methond

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 pixel is the ...
1
vote
2answers
32 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
24 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
37 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
16 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
12 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
99 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
66 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
40 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
13 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
21 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
28 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
30 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
45 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
54 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 "...
1
vote
0answers
66 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
0answers
38 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 '...
3
votes
0answers
78 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
26 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
18 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
32 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
41 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
79 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
108 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
165 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
41 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. ...
1
vote
1answer
55 views

Trying to make calculation with gdal_calc.py?

I have a tif image that I'm trying to run gdal_calc.py. In the source file the values are between 1,118-9,704 and I want to divide all the values by 10,000 to get results between 0-1. This is the ...
1
vote
1answer
95 views

Transforming NetCDF file in longlat projection into TIF in EASE 2.0 using gdal_translate and gdalwarp

I am very new in this. My goal is to convert 1 subband from .nc files (which I have several thousand if it matters) stored in longlat projection into .tif files in EASE 2.0 projection. I do that in 2 ...
2
votes
0answers
106 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 ...
0
votes
0answers
13 views

gdal_warp cannot specify target extents

This is related to this previous post. As was trying to implement the said answer and inserting it to my code, but the code doesn't seem to work. #importing all the necessary modules import os, ...
0
votes
1answer
62 views

How do I crop a TIFF down to a specific region?

I have two TIFFs that have the same pixel size. One of them is geolocated inside the other. I would like to crop the larger one down to the exact same extent as the smaller one. Is this possible with ...
1
vote
1answer
146 views

Using GDALwarp for reprojecting netCDF file?

I am trying to re-project a netCDF file using the gdalwarp command. However, the gdalwarp is giving me a black output. Below is my code: import gdal import osr import netCDF4 from osgeo.gdalconst ...
0
votes
0answers
34 views

gdalwarp : I lose some pixels when I crop

My problem: When I crop with gdal gdalwarp -te minX minY maxX maxY input_raster.tif output_raster.tif I expect an output shape of (maxX - minX, maxY - minY) = (10980,10980) BUT : I get an output ...
1
vote
0answers
78 views

Why gdal does not find gcps coordinates on SENTINEL images?

I use gdalwarp with python to overlay polygons on ENVISAT radar images. Everything goes well for this type of images but when I try with SENTINEL images, gdal does not find the georeferencing. It ...
1
vote
1answer
34 views

gdalbuiltvrt output is different than the source images, when using dstalpha?

I have warped some images from various state plane coordinate to EPSG 3857, but the output of gdalbuildvrt is messed up (see image). I've tried dozens of different combinations of gdalwarped and ...
0
votes
1answer
19 views

CGIAR DEM + gdalwarp — projection to Cartesian is not happening

I have downloaded a 30-by-30 tile from http://srtm.csi.cgiar.org/srtmdata/ Then gdalinfo on the obtained single *.tif-file would yield Driver: GTiff/GeoTIFF Files: cut_n30e000.tif ...
1
vote
1answer
37 views

UTM Projection of DEM-data with gdalwarp

I have downloaded a certain tile from https://www.eorc.jaxa.jp/ALOS/en/aw3d30/data/index.htm, and after the requisite logistics (unzipping, putting all *.AVE_DSM.tif files into a single folder), I ...
0
votes
1answer
79 views

Gdal.warp broken in version 2.3.3?

I have two versions of Python gdal running in different environments. One is slightly older (2.1.1) and gdal.Warp seems to work just fine there, the newer version doesn't. Has anyone else had this ...
2
votes
1answer
57 views

GDALwarp HDF5 Image With Unknown Projection

I have a NetCDF file that contains a series of HDF5 bands. I am looking to project one of these bands contained within this file. I've attempted to use the following command to achieve this: gdalwarp ...
0
votes
0answers
27 views

GDALWARP ERROR 6: Only single band dataset supported for non Byte datatype

I'm trying to cut an image using GDALWARP and I have the error: ERROR 6: Only single band dataset supported for non Byte datatype I think my image is of a single band and data type Float32. The result ...
1
vote
1answer
65 views

How do I transform an EPSG:3857 world map to an EPSG:4326 ECE world map?

This follows up a question posted over seven years ago. The results look very similar to the original inquiry without an answer or update I could test successfully. I made a custom stylized EPSG:3857 ...
0
votes
0answers
33 views

Specifying dimension for variable in NetCDF input file using GDAL?

I have a data which is in .nc format. I want to extract a variable which is in XxYxZ dimensions for example 4032x496x3 inside the netcdf file. But the problem is when using gdal_translate it is ...
0
votes
0answers
15 views

How can I convert MISR(multi-angle image spectro-radiometer) level 2 AOD (MIL2ASAE) swath dataset to grid data

I am able to convert as batch the 'Aerosol_Optical_Depth' data set inside MISR(multi-angle image spectro-radiometer) level 2 (MIL2ASAE) swath data to grid data,which is in .nc format, and in 2 ...
0
votes
0answers
130 views

GDALWarp and Target Aligned Pixels Not Effective

I have two sets of TIFFs of different resolutions (100m and 1000m), different alignment, and varying data types with corresponding no data values. I need to downsample the 100m TIFFs to match the ...
0
votes
0answers
51 views

Matching Mollweide extent?

I'm trying to match two rasters to same size, so i can do cell to cell analysis on them. The first cell That I'm trying to match is in Mollweide projection, with 250 m resolution. Here is the gdalinfo ...
1
vote
0answers
34 views

Split raster to many irregular polygons [closed]

I'm splitting a national soils raster file into regional (county) rasters, and organizing the soils classifications into a database keyed by region, eventually plot- or farm-level detail. At the ...
2
votes
1answer
45 views

gdalwarp - correct for a slight spatial misregistration?

Some Sentinel-2B band images have slight spatial misalignments as I explained on the step forum. https://forum.step.esa.int/t/sentinel-2-tci-10m-level-2-images-slight-spatial-misregistrations/14235 ...
2
votes
1answer
64 views

sampling error using gdalwarp on a subsetted VRT?

I am currently trying to prepare an SRTM subset including height conversion from EGM96 to WGS84 using gdalwarp. I encountered some strange shifts in part of the image. Here is a reproducible example: ...
0
votes
1answer
362 views

GDAL and reprojecting a NetCDF file

I have a .nc file that you can download here. This is satellite imagery. I want to re-project this and save it to a new .nc file, without saving to raster. Just NetCDF to NetCDF only. Is this ...
-1
votes
1answer
127 views

Python gdal.Warp doesn't create a file

I would like my code to write a tiff file from GRIB while changing the resolution. So I take file1 (GRIB fmt) and translate it to tiff. The file appears in the folder. Then, I make a warp, but no ...