Questions tagged [resampling]

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

Filter by
Sorted by
Tagged with
3 votes
1 answer
40 views

Specifying target resolution when resampling with rasterio

In GDAL warp you can simply set an xRes and yRes value. I'm trying to only use rasterio, but the process seems a lot less clear. According to the docs https://rasterio.readthedocs.io/en/latest/topics/...
user avatar
  • 575
1 vote
0 answers
31 views

How can I group Land Cover Classification into urban vs rural areas and summarize Land Surface Temperature for each class in python? [closed]

I have NLCD land cover classifications from an .img file as follow: I would like to somehow reclassify these into Urban or Rural by taking all developed as urban and the rest, minus water as rural. ...
user avatar
  • 11
0 votes
0 answers
13 views

Resampling/down sampling GPS points in ArcGIS Pro using time interval?

I have a dataset of GPS locations collected over 6 years from animal collars. However, the ping frequency on the collar was drastically increased during the last 2 years, meaning that from 2014-2019 I ...
user avatar
  • 23
2 votes
1 answer
45 views

Zonal Statistics as table on population raster does not produce correct regional population figures using ArcGIS Pro

I have a population raster (from Worldpop.org) with data on the population count of Philippines. It is unconstrained data from 2020, 100m resolution. Link to raster: https://www.worldpop.org/geodata/...
user avatar
0 votes
1 answer
30 views

How does majority resampling technique works in ArcGIS?

I would like to understand how does the majority resampling technique works. To be specific the documentation below states that the method will use a 4X4 filter and will populate the output with the ...
user avatar
1 vote
1 answer
26 views

Resampling high resolution data into lower resolution based on most common value

I want to use a high-resolution classification (3cm) as training data for a classification using Sentinel 2 data (10m). To do so, I want find which high-res value is most common within each Sentinel &...
user avatar
1 vote
0 answers
74 views

Google Earth Engine: Output too large when reducing resolution and exporting to Google Cloud

I'm calculating a bareground layer for Africa using Sentinel-2 at 10m resolution. I want to reduce the resolution to 1000m and then export it to Google Cloud Storage. However, this gives me an error ...
user avatar
  • 85
2 votes
1 answer
68 views

Resample raster but keep sum of total cell values the same

I am trying to resample a raster to a finer resolution, matching the resolution of my raster of interest. The problem is, my raster I'm resampling is a population raster. When I resample, the total ...
user avatar
  • 23
0 votes
0 answers
24 views

How to resample when using Georeferencer in QGIS?

How to resample when using Georeferencer in QGIS? QGIS wants to take GCP using Georeferencing. I have been working on GCP using ERDAS, and even if I zoomed in using 'resampling method-bicubic ...
user avatar
  • 447
0 votes
2 answers
64 views

What's correct order of resampling, reprojecting and composing ImageCollection in GEE?

I want to resample, reproject and compose an image collection in python using the GEE API. My script now is this adm0 = ee.FeatureCollection("FAO/GAUL/2015/level0"); filter = ee.Filter....
user avatar
1 vote
0 answers
27 views

Anti-alias raster layer by upscaling/ resampling

Recently, I performed a VGA analysis using Depthmap X. I moved the date over using a Mapinfo file (vector) and rasterised the values to the associated pixelsize. The analysis was conducted at a 2m ...
user avatar
  • 361
0 votes
0 answers
80 views

User memory limit exceeded in Google Earth Engine

I am trying to resample the MODIS evapotranspiration product from 500m to 30m. I am using the following code: var MODIS_data = ee.ImageCollection('MODIS/006/MOD16A2') .filterBounds(...
user avatar
1 vote
0 answers
38 views

Should you resample rasters before or after raster calculator operations?

I struggle to understand if rasters should be resampled before or after doing some arithmetic. For example: Suppose I have a DTM and DSM of an AOI which were produced from the same instrument, but the ...
user avatar
  • 575
0 votes
0 answers
195 views

Downsample raster with sum as resampling algorithm with gdal/rasterio in Python

Aim I would like to resample a raster from a 100x100m to 10x10km resolution by summing up the corresponding values. Problem/Question Overall, it seems that the GRA_Sum is not integrated in gdal==3.0.2,...
user avatar
  • 45
0 votes
0 answers
63 views

Resampling high resolution binary raster

I have a large, high resolution raster of binary data that I need to reproject and resample to align with a lower resolution dataset. Because the original data is binary, I need to aggregate using the ...
user avatar
  • 83
0 votes
1 answer
289 views

Resampling a raster with R

I'm trying to use the R function resample between two non matching Raster objects. The raster to resample has the following description hydrogate class : RasterLayer dimensions : 1163, 1499, ...
user avatar
0 votes
1 answer
72 views

Resolution of Python GDAL-generated GeoTiff different from plotted image

The Situation I use the GDAL library to warp geotiffs (subsequently referred to as "rasters") of different resolutions (30m and 500m) to a 100m (subsequently referred to as "default&...
user avatar
  • 45
0 votes
1 answer
299 views

Method to resample 2d numpy array to a coarser grid and weighted by pixel area in python (analogy to grass r.resmap.stats -w)

What is the optimal method in Python, when I need to resample 2d numpy array (grid) to coarser resolution (weighted by pixel area, the case when the new resolution is not the exact multiple of the ...
user avatar
  • 989
0 votes
0 answers
53 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('...
user avatar
1 vote
0 answers
90 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 ...
user avatar
  • 575
1 vote
1 answer
37 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 ...
user avatar
  • 343
2 votes
0 answers
97 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') ...
user avatar
  • 1,221
0 votes
0 answers
23 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 ...
user avatar
  • 109
1 vote
1 answer
125 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 ...
user avatar
0 votes
1 answer
119 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 ...
user avatar
  • 91
1 vote
0 answers
79 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....
user avatar
  • 361
1 vote
0 answers
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 ...
user avatar
  • 11
3 votes
2 answers
64 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 ...
user avatar
  • 51
1 vote
0 answers
263 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 ...
user avatar
  • 27
0 votes
0 answers
30 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 ...
user avatar
0 votes
1 answer
432 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 ...
user avatar
  • 101
0 votes
2 answers
109 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(&...
user avatar
0 votes
1 answer
40 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 "...
user avatar
0 votes
0 answers
25 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 ...
user avatar
1 vote
0 answers
50 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 ...
user avatar
  • 11
-1 votes
1 answer
359 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 ...
user avatar
  • 43
0 votes
0 answers
13 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 ...
user avatar
  • 11
0 votes
1 answer
74 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 ...
user avatar
2 votes
0 answers
106 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 ...
user avatar
  • 21
1 vote
1 answer
45 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 ...
user avatar
0 votes
0 answers
101 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 ...
user avatar
  • 1
1 vote
0 answers
47 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, ...
user avatar
1 vote
1 answer
453 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-...
user avatar
0 votes
2 answers
313 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 ...
user avatar
  • 1
1 vote
0 answers
26 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 ...
user avatar
  • 1,015
0 votes
1 answer
209 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(...
user avatar
0 votes
1 answer
92 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. ...
user avatar
3 votes
2 answers
275 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.
user avatar
  • 113
3 votes
0 answers
73 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: ...
user avatar
4 votes
1 answer
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 ...
user avatar

1
2 3 4 5