Questions tagged [resampling]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
18 views

Resampling of Sentinel-1 data to 1km resolution using gdal and snappy modules

I am trying to resample my preprocessed Sentinel-1 data to 1km resolution. I am facing the following issues when I try to do it using snappy and gdal modules. Using gdal, Used code: os.system('...
1
vote
0answers
15 views

Build VRT to merge overlapping rasters always takes max values?

I'm attempting to merge two overlapping rasters from the same source with the same resolution. I would like the overlapping pixels to take the average value of the two overlapping pixels. When I ...
1
vote
1answer
25 views

Resample layer but keep RGB bands (QGIS)

I have an orthophoto from a drone with a spatial resolution of 0.02m and would like to reduce the resolution to 1m. The simplest way of doing this is using the export>save as>and manually fill ...
1
vote
0answers
29 views

Can I resample a raster in R using "max" as function?

With a raster and a reference raster, I'd like to do something like this: # resample raster to ref_raster to match resolution/origin using max as aggregate raster = resample(raster, ref_raster, 'max') ...
0
votes
0answers
21 views

Preserve NA areas in resampled raster

I got a raster image with 2m pixel size, there are some areas with value 1 (black) and roads with value NA (white): It is made from a rasterized shape: Now I resample my raster to 5 m pixels, the ...
1
vote
1answer
43 views

Resampling nighttime satellite imagery with rasterio (Python)

I am working with a GeoTIFF file from the Earth Observation Group (3rd download on this page). Once extracted, the file is too large (5.6gb) to do much with on my laptop - so I am trying to downsample ...
0
votes
1answer
56 views

How to downsample a GeoTIFF in QGIS using GRASS

I need to downsample a GeoTIFF image. I have been trying to test this using a simple example like using the following r.samp.res dialog. (I know I could also export the TIF file directly following ...
1
vote
0answers
33 views

How does Google Earth Engine deal with scaling up/down categorical data?

I read the docs on Resampling and Reducing Resolution and Projections. I sort of get that the scale/projection is determined by the final outcome but I still don't get how categorical data are handled....
1
vote
0answers
16 views

Actual area from polygons is either under- or overestimated when extracting raster values - any solutions?

I am trying to use ModelBuilder to iterate through sets of polygons to overlay on top of two rasters and extract the total area of each value from each raster, but am having issues with the estimated ...
3
votes
2answers
46 views

Differencing two rasters with very different resolutions (QGIS 3.20.3)

I am having a problem with analysing two rasters with 2 significantly different resolutions. Background on the two rasters: DEM is the ALOS_30m DEM which is in the WGS_84 format. Merged together ...
1
vote
0answers
66 views

Generation of snow cover area time series in GEE using MODIS Snow Cover product

My aim is to resample MOD10A1/MYD10A1 to the same scale as that of MOD11A1/MYD11A1, mask the image collection to obtain the best pixels, and finally to obtain the time series plot of the total area ...
0
votes
0answers
23 views

Customizing factor in aggregate tool in ArcMap

I have a raster of 30m cell size, with either value 0 or 1. I try to aggregate this into a 1000m cell size. I can then see the proportion of '1's, in a 1000m cell size raster. But the Aggregate tool ...
0
votes
0answers
151 views

Resampling Sentinel-2 bands (reduce resolution :10m) to 20m resolution in Google Earth Engine

I am trying to reduce the resolution of 10m bands (B2-4,B8) to 20m resolution so that I have uniform resolution for all bands I want to use. I tried a solution provided by Jepson Nomad for similar ...
0
votes
2answers
44 views

Resampling Error for raster layers in R

I am trying to resample settlements raster layer to have the same no. of rows and columns as NDVI layer using this code in R. setwd('F:/IIRS/Project/biomod2/workdir') library(raster) LULC=raster(&...
0
votes
1answer
23 views

Error in Resample

I am currently working on a Project that I thought I had finished. After closing everything down and re-running the code to check that everything was in order I encountered an error message on a "...
0
votes
0answers
19 views

Reproject OSGB36 *.asc files to WGS84 netcdf

I am trying to reproject emissions data in OSGB36 easting and northings to WGS84 latitudes and longitudes, with the intention of then regridding the output to a regular grid. I need to do this for a ...
1
vote
0answers
24 views

QGIS merging grid cells together changing resolution from 250x250m to 500x500m [closed]

I want to change the resolution of a grid in QGIS and can't make it work. I have checked the site for similar problems but couldn't find a simple and good solution. My Grid looks like this: and I ...
-1
votes
1answer
156 views

Resample (spatially-average) DataArray / raster to match the grid of another DataArray in Python [closed]

I would like to resample a DataArray / raster object to exactly match the spatial grid of another DataArray / raster object. In particular, the operation I want to perform is a spatial averaging to ...
0
votes
0answers
9 views

How can we resample the InSAR results into an identical grid?

In time series InSAR, the PS pixels from different tracks are usually located in different positions. How to resample them into the same grid so that 2D or 3D displacement can be calculated? There is ...
0
votes
1answer
36 views

Change GLDAS Pixel Size in Google Earth Engine?

As everyone knows GLDAS data in Google Earth Engine has 25 kilometers spatial resolution. Accordingly I called these data in code editor in order to change the pixel size from 25000m to 250m. I tested ...
2
votes
0answers
76 views

Raster resampling using PyQGIS

I am trying to apply resampling to Rasters generated from an nc file, rendered using PyQGIS in my Python application. Used QgsSingleBandPseudoColorRenderer() for it. I could use resampling in the QGIS ...
0
votes
0answers
34 views

Raster error calculating TWI with dynatopmodel

I am trying to calculate elevation, upslope and TWI from an ASTER DEM in R using dynatopmodel. The build_layers function requires that the raster has a resolution of at least 30m and is in a projected ...
1
vote
1answer
34 views

ArcPy block statistics need to output different resolution

I am attempting to script a BlockStatistics where the outRaster has a resolution different from the input raster. Input raster cells are approx 5.8 cm, and I want to resample taking the mean of a ...
0
votes
0answers
50 views

Is there a way to batch resample and mosaic/merge many large raster files at once?

I have over 400 large raster DEM files at 1 m resolution that I need to resample to 10 m resolution and merge/mosaic them all into one file. I am wondering if there is a way to do this all in one step ...
1
vote
0answers
40 views

Using RasterResampling with PyQGIS

I have a Python application and it uses PyQGIS to - read NetCDF file, convert it to GeoTIFF by writing the rasterlayer with rasterpipe, QgsRasterFileWriter and rasterShader related methods. However, ...
1
vote
1answer
181 views

Resampling Sentinel-2 ImageCollection on GEE having the bands with the same spatial resolution

I'm a beginner at Google Earth Engine. I've seen on previous topics that resampling can be made on single images, like in this topic on downscaling raster images. I have an ImageCollection of Sentinel-...
0
votes
2answers
209 views

Rasterio reading outshape resample does not give correct array

I have a population grid and want to decrease the resolution by a factor 2. I would like to get a raster that has 2 times less rows and columns, a resolution that is 2 times as large as the original ...
1
vote
0answers
20 views

Deleting/resampling every second column and row of point data from raster in ArcGIS Pro?

I have converted a raster to a point file and now need to thin/resample the points and delete every second row and every second column (as shown in the upper left corner). I do not want to interpolate ...
0
votes
0answers
24 views

Resample raster layer to non-uniform raster

I have checked so many websites already, but I can't find an answer to my problem! I'm using ArcMap and I have a raster layer in 20x20m resolution containing discrete land use data (values from 1 to ...
0
votes
1answer
71 views

Positional argument error using rasterio to reduce raster pixel size

I'm new with rasterio and I need to reduce the pixel size of a GeoTiff. Using the code below def resample(input_raster: str, output_raster: str = None): upscale_factor = 2 with rasterio.open(...
0
votes
1answer
62 views

Resample of mean of ImageCollection to higher resolution

I want to resample the mean of 48 images of GPM with 10000m to MODIS in GEE. My code works perfectly for one image but the result for the mean or median of 48 images (or any number) does not correct. ...
3
votes
2answers
213 views

Is Satellite Image Continuous Data?

I have a satellite image of one region. I perform interpolation on this image. However, I am not sure Satellite Image is continuous or discrete data.
3
votes
0answers
53 views

How to harmonize two raster of different spatial resolution? [closed]

To harmonize two raster of different spatial resolution, what is most preferred and scientific to do: To make coarse resolution finer or To make fine resolution coarser? The datasets includes: ...
4
votes
1answer
2k views

Aligning two rasters of same resolution perfectly on top of each other in QGIS

I have two rasters, that I managed to make in the same resolution using the 'Raster tools --> Resampling' tool by SAGA. The pixel sizes are exactly the same, however the new resampled raster, in ...
1
vote
0answers
80 views

GDAL - average and mode resampling

I could not understand the source code of GDAL. The task is to understand and implement the above resampling algorithms for images. What is the main idea of ​​average resampling in GDAL? Official ...
1
vote
1answer
157 views

QGIS - raster resampling having no effect=pixelization

In QGIS I cannot make the resampling setting (changing it from nearest neighbour to bilinear or cubic) to smooth the pixels of Sentinel-2 imagery, both as jp2 or tif. If I export the image, convert it ...
1
vote
1answer
139 views

gdalwarp does not use lanczos resampling on image with alpha channel

I want to warp Geotiff image of shaded relief (RGBA) in projection EPSG:8353 to the projection EPSG:3857 to use it in Mapnik web tiled map. I want to use lanczos resampling, but the result image looks ...
1
vote
0answers
95 views

GDAL cubic oversampling problem

I am trying to oversample a part of a big GeoTIFF DEM to display it as a hillshade. I'm doing the process in 3 steps: extract a part of my GeoTIFF oversample that part generate the hillshade with ...
1
vote
0answers
31 views

Syntax for SAGA resampling

How can I link the GUI to my processing code as shown in the image below so that it uses any number selected (between 20 and 100) in the spinSize value space? # Perform task if layer.type() == ...
-2
votes
1answer
58 views

SAGA RESAMPLING SYNTAX

How can I solve the problem shown below: I am trying to build a plugin that allows me to resample the raster data to any desired resolution of my choice with 20 being the minimum input value, as ...
0
votes
0answers
106 views

r.resamp.interp is not giving correct results

I am doing resampling uisng r.resamp.interp in GRASS GIS, but, after applying each time It reduces the size of raster. I am using this command g.region raster=raster r.resamp.interp input=raster ...
0
votes
0answers
51 views

Raster resampling using ArcGIS Desktop

I have gridded raster files with 6 km resolution, and each cell has its own respective Snow Cover value. Now, I want to change the resolution of this raster to 500 m, and based on the 6 km pixel ...
0
votes
0answers
53 views

Resampling for cellsize when exporting raster to GeoTIFF - GM

I used Global Mapper v20.0 for exporting the raster image GeoTIFF (32bit, from cellsize x= 0.008333333333000000898 arcdegree, y= 0.008333333332999999163 arcdegree) to cellsize x= 0....
2
votes
1answer
119 views

Sample all existing points of a polygon in Python

I'm trying to sample raster values to points based on the geometries of a shapefile using the below code but the raster values are only sampled at the coordinates of the polygon geometry. Is there a ...
1
vote
0answers
415 views

Reading in GeoTIFF with different CRS and Transform with rasterio

I have multiple TIF files with different resolutions that I want to combine using rasterio. I am using a modification of the example given in the documentation here. However, on closer inspection ...
0
votes
1answer
103 views

Sampling raster data and classifying the pixels

I'm completely new to python usage in GIS. I'm working with Sentinel images and want to sample the pixels of raster file only in the places which are represented by the geometry of the truth data ...
1
vote
1answer
499 views

Rasterio Window on Resampling open

Rasterio supports processing using window in order to avoid loading the entire image (as can be seen here). It also supports resampling images when using read (as can be seen here). However, I am ...
3
votes
1answer
2k views

Using shapely interpolate to evenly re-sample points on a linestring geodataframe at specified interval

I have a GeoPandas LineString GeoDataFrame. I am trying to evenly interpolate the spacing of the nodes that make up each line, with a couple constraints: keep endpoints unchanged, and specify maximum ...
0
votes
2answers
195 views

How to resample a raster considering a minimum number of valid pixels

I'm looking for a function to resample a raster that can consider a minimum number of valid pixels in order to compute the new pixel value. E.g. If I have to resample a raster of 300m/px to 1Km/px I ...
1
vote
0answers
379 views

Python GDAL resampling incorrectly: masking actual data points

I am trying to resample GeoTIFF image from 460 m resolution to 500 m using the Python gdal library. But somehow GDAL is not resampling correctly. It is also resampling noData values, so resulting ...

1
2 3 4 5