The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [resampling]

To alter the frequency of sampled data points in continuous data.

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

Simultaneous raster downsampling/downscaling and upsampling/upscaling for false accuracy minimisation

I want to have a raster stack of two different resolutions. One is from VSNIR and one from SWIR sensors (hyperspectral). The VSNIR has a resolution of 25 cm and the SWIR of 80 cm and both data have ...
0
votes
0answers
18 views

GEE: resampling MODIS LST from 1km to 200km produces gradient

I am trying to resample raster from 1km resolution to 200m using this code: var august = ee.ImageCollection(landsat) .filterDate('2019-08-01', '2019-08-30') .filterBounds(geometry); //Mean ...
0
votes
0answers
7 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
35 views

Comparing two rasters in scatter plot with different resolutions using ArcMap?

I have 2 rasters taken from 2 cameras with different resolution over the same field. One shows NDVI values, the other is temperature. I need to make a scatter plot between these rasters but they have ...
1
vote
0answers
19 views

Description for pixel values in different resampling methods

so I am looking for the description of pixel values for the following methods: Nearest Neighbor Bilinear Interpolation Cubic Convolution Bicubic Spline LaGrange If someone has got some knowledge of ...
1
vote
0answers
27 views

Resampling while drawing rasterfiles in QGIS 3?

I can not find a solution to resample my rasterfiles in QGIS 3. With Arcmap usually I use "resample while drawing" with the method cubic or bilinear interpolation for continuous data to smooth my ...
1
vote
0answers
21 views

Resample a raster to the grid of another unaligned raster using GDAL/pktools

Is there a way to resample a raster to the grid of another raster using Bash utilities (GDAL or pktools), if both of the rasters do not necessarily have their origins aligned (and without an ...
2
votes
1answer
162 views

Should resampling/downsampling a raster (using Rasterio) cause the coordinates to change?

I was able to successfully downsample a raster file, after getting Stack Exchange help. I loaded the new downsampled file into QGIS along with the original file, to check that things went well. The ...
1
vote
1answer
30 views

Merge ImageCollections with different pixel size

I want to combine 2 different Image Collections (i.e. Landsat8 and Sentinel-2), and I want to combine them to a unique ImageCollection (and then run the function qualityMosaic()). However, they have ...
4
votes
1answer
235 views

Creating an in memory rasterio Dataset from numpy array

I am reading in a raster using rasterio, and then upsampling the raster as per the example in the documentation: def upsample_raster(raster): return raster.read( out_shape=(raster.height *...
0
votes
0answers
47 views

ALOS PALSAR resampling

I want to combine Landsat bands with the backscatter coefficients of ALOS PALSAR. I used the following code to resample and combine. However, the HH, HV bands in combine image showed with 'masked'. I ...
1
vote
1answer
198 views

How to downsample raster image for nightlights data in Python?

I'm working with the nightlights data - 30 arc second grids, spanning -180 to 180 degrees longitude and -65 to 75 degrees latitude. I want to downsample it to 5 arc-min resolution. Now my question is ...
1
vote
0answers
31 views

Error 000445 in iterate Resample for rasters in Arcpy

I'm trying to resample rasters using a foor loop. Something is going wrong but i don't know what... This is my code: import arcpy, os, math from arcpy import env from os.path import split, join from ...
1
vote
1answer
85 views

Cell size issue with Landsat data

I have calculated a temperature map from Landsat Image. This map is correct but I the cells can be seen obviously. I have changed the cell size from 30m to match my other products which are 1m. I used ...
1
vote
1answer
39 views

Resample raster to a higher resolution with ArcPy

I am looking for a way to upsample a raster to a higher resolution without interpolating in ArcGIS and arcpy (because I have geoprocessing script which treats a lot of rasters). For example if I ...
5
votes
1answer
142 views

EarthEngine: average/reduce a raster at resolution of coarser raster?

I want to average a 30m raster at the resolution of a 1000m one. Specifically, I want to computer, for each Daymet raster cell, the percentage of cultivated land from the 30m CDL. How can I do that ...
0
votes
0answers
72 views

Resampling raster with rectangular pixels

I have a raster file of deforestation but the pixeles are not square. When I project the raster the information of it says that the pixel size is 0.000275322,-0.000271395. I would like to resample the ...
0
votes
0answers
42 views

resampling/resamplinh from MODIS to Landsat ; Google Earth Engine

Link to GEE I am resampling MODIS to Landsat Data, and my Goal is to get a Landsat like projected Image, but with fuzzy Borders of former MODIS pixels. What I do not want: I tried my Luck with a ...
1
vote
0answers
28 views

Summarise rasters then project, or project then summarise?

I'm working on an analysis that involves summarising a stack of unprojected (WGS84) global 30" climate rasters (various expressions of temperature and precipitation), and generating final output in an ...
0
votes
2answers
258 views

Resampling raster with categorical data in R?

I have a covertype raster layer which is categorical data (1,2,3...19), and I want to change its resolution, coordination system, column numbers and row numbers to fit with other raster layers. But ...
0
votes
0answers
60 views

Why gdal create does not give the proper projection?

Here is my code. I want to resample the raster. But it doesn't set the projection, although I write it. May be there is a simplier way to perform the resampling by pixel size? Is it incorrect to set ...
0
votes
0answers
83 views

[Resolved) Resampling ALOS images with Python

I'm trying to resample an ALOS image of 12.5 m resolution to 1 m resolution with cubic interpolation using GDAL warp. Here is the current code used in pyzo import os from os import path import ...
1
vote
1answer
60 views

Resampling two raster files

I have two rasters, one for road network and another one for the DEM of the country. I have to overlay the road network raster on top of DEM raster so as to get the elevation of roads. But my rasters ...
0
votes
0answers
109 views

Handling of NA (pixels without values) in raster::resample in R?

How does raster::resample handle NA values with the method ngb (or mean but I am most interested in ngb)? I had thought that NA values were ignored within a larger resolution cell-grid and the values ...
0
votes
0answers
20 views

Resampling of Landsat 2 data

I am using data for Landsat 2, Landsat 5, Landsat 7 and Landsat 8 for same region for change detection analysis. As Landsat 2 has spatial resolution of 60 meter while all the other data are in 30 ...
1
vote
1answer
106 views

Resampling 0.7 m LiDAR (in raster already) to 10 m DEM in R?

How do I resample the 0.7 m LiDAR to 10 m DEM in R? What are the basic rules for checking the consistency?
0
votes
0answers
330 views

Changing the spatial resolution - stacked raster in R

Want to change higher spatial resolution UAV dataset stacked in R. Used raster package to stack the individual band. Want to change the spatial resolution to 1 m. stacked_UAV <- stack(stack_list)...
1
vote
0answers
48 views

matching up cells in 2 raster layers

I've been trying to get 2 raster layers to match up, so the cells are in the same locations for both layers (they have the same resolution already). But I can't seem to figure it out, already tried ...
0
votes
1answer
24 views

Resampling raster to even coordinates (no decimals) using ArcGIS Desktop? [duplicate]

I am resampling a raster from one CRS to another, and from 0.5 m resolution to 10 m. But I want the new cells to have even coordinate extents, instead the old coordinate decimals remain. How do I fix ...
0
votes
1answer
73 views

set raster resampling window in ArcGIS

I would like to resample a number of rasters with a small cell size (i.e., 30 m) to a larger cell size (i.e., 100 m) using either ArcMap or ArcGIS Pro. My new, larger cells will each cover 3.33x3.33 ...
2
votes
1answer
206 views

How to resample QgsRasterLayer in QGIS 3?

I am generating png images of concentration maps, resulting from air quality modelling. Resulting files are croped and coverted to tiff files and than loaded into QGIS in Python: rlayer = ...
0
votes
1answer
99 views

Resampling multiple coarser raster images based on another finer resolution raster using R?

I have 2 raster images of different spatial resolution and projection. I want to resample multiple coarser images (0.25 degrees) to finer resolution(4 km) based on one finer resolution image which ...
-1
votes
1answer
154 views

SRTM/DEM 1m resolution (batymetri) to point [closed]

I have bathymetry data (1 huge data) = SRTM/DEM/FGDBRaster (0,9818m resolution pixel, floating, 32 bit, 45 GB size) and an alternative data (split into small pieces data) = same data but with 1m ...
2
votes
0answers
342 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? ...
2
votes
0answers
384 views

Correct resampling method to simulate lower resolution satellite data?

I would like to simulate lower resolution satellite imagery from continuous higher resolution imagery. For example I want to use Landsat derived leaf area index data with a resolution of 30 m and ...
2
votes
1answer
78 views

How does bilinear resampling work when converting a 10 meter raster to 30 meter?

There is a 10 meter resolution land cover raster. An analyst wishes to resample 10 meter raster to 30 meter raster. The analyst selects the Bilinear Resampling technique in the Resample tool of the ...
1
vote
0answers
82 views

How can I stop single pixel nodata values propagating through a tile pyramid when using gdal2tiles?

I am using gdal2tiles_parallel.py to generate a tile pyramid from a single geotiff with nodata value set. I have noticed that if I have a small hole in the original geotiff (say single pixel), then I ...
1
vote
1answer
29 views

Mapnik upsampled raster isn't smooth

I'm using Mapnik to show a map with hillshading. It works well when displaying it up to my tiff's native resolution and a little bit above, for instance at zoom 13 (dataset is SRTM30): But then if I ...
6
votes
2answers
232 views

How does oversampling work in WMTS layers?

(This question arises as a sub-topic of the answer provided here.) In the symbology options for a raster layer in QGIS, there is a setting called "Oversampling" (see image below). How does this ...
8
votes
1answer
320 views

Understanding raster symbology settings

I am trying to understand how to use the symbology options for raster layers in QGIS, particularly the Resampling options, but the official documentation only mentions the setting very briefly and ...
2
votes
1answer
33 views

modal resampling in GDAL: what happens when two classes are equally represented

gdal_translate has a parameter to resample the values based on the most frequent class in the output pixel (-r mode). However, this most frequent class does not necessary exist (when two or more of ...
1
vote
0answers
62 views

Aligning multiple images with different spatial resolutions

I am using 2 different satellite images that have different spatial resolutions. One of them has 1 degree and other has 0.25 degree resolution. I want to subtract one image from another. So I should ...
0
votes
1answer
244 views

What is the default method in raster package R resample?

What is the default method in the resample command from the raster package in R? I see that you can chose some methods like bilinear or nearest neighbor, but what is the default? This is important ...
1
vote
0answers
274 views

Can't resample two images with different coordinates and extents

I am very new to image analysis and GIS. I tried to resample a tiff file based on a reference raster, the following is the code and objects I have: Green_stage_1: class : RasterLayer band ...
1
vote
0answers
55 views

Does raster snapping involve a transformation?

Arc Desktop 10.5.1 Background I am converting an Arc Grid raster to a tif using the Raster To Other Format (multiple) tool. In the tool's Environments... settings, I am snapping the output tif to ...
1
vote
0answers
200 views

R GIS - Error when converting SpatialPointsDataFrame to raster : 'data' must be of vector type, was 'NULL'

I would like to convert a SpatialPointsDataFrame into a fine raster (5m resolution), using R GIS. My SpatialPointsDataFrame is made of 593 points, equally distributed along a 8km-grid. Their ...
1
vote
1answer
439 views

KeyError running python script that aligns the grid cells of two rasters and does resampling if needed

I am currently working on a model that calculates the water balance of a basin "the VIC model". First we need to align (coregister) all of our input raster data sets to the grid template at the ...
1
vote
2answers
635 views

Resampling raster based on mask raster?

I want to resample rasters of e.g. 2 m resolution to the same raster cell size and projection of an existing raster (25 m). However I cannot really find answers how to do it properly. I managed to ...
1
vote
1answer
195 views

Resampling Modis and Sentinel 2 rasters

I am resampling Modis and Sentinel 2 rasters in QGIS. I am working with surface reflectance values and I am having trouble obtaining the results that I am looking for. I have isolated my rasters down ...
5
votes
1answer
4k views

Up-sampling (increasing resolution) raster image using GDAL?

I have a single-band geo-referenced raster image (a DEM) and my goal is to increase the number of pixels in each dimension (x and y) by 3. So given an initial resolution of 1200 * 1200 pixels, I want ...