Questions tagged [resampling]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
31 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
87 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
29 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: ...
3
votes
1answer
171 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
35 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
47 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
92 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
46 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
29 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
38 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
37 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
42 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
34 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
53 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
141 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
54 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
149 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
546 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
108 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 ...
0
votes
0answers
42 views

Making GEE code for Pansharpening Sentinel-2

The following link contain information about Pansharpening Sentinel-2 https://leclab.wixsite.com/spatial/post/pansharpening-sentinel-2-imagery-in-google-earth-engine The code in picture form and long ....
1
vote
0answers
101 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
vote
0answers
36 views

Bilinear resampling yields inaccurate/small values (Earth Engine)

I am trying to upscale / resample some GSMaP observations from 0.1 x 0.1 degrees to 30m. I want the resolution to match Landsat 8 so that I can perform some modeling. But in Google Earth Engine when ...
0
votes
1answer
55 views

What geoprocessing tool do I use in order to assign a projected coordinate system to a raster?

I want to resample a raster to a smaller cell size. The raster cell size is given in decimal degrees with a GCS of North America 1983. The original raster covers the continental US, and I have clipped ...
1
vote
1answer
34 views

Resampling Method

Which method is good for resampling ASTER land surface temperature image (AST_08) with spatial resolution 90 m to the resolution of MODIS land surface temperature image (MOD11A1) which is 1000 m ?(...
0
votes
1answer
312 views

GEE: Tile Error: Reprojection output too large when joining MODIS and ERA-5 data

I am trying to combine MODIS EVI with climate data from ERA5 in Google Earth Engine. When I run the code I get the following error: Fr_EVI: Tile error: Reprojection output too large (19686x6123 ...
1
vote
1answer
103 views

How to downsample a raster using the gdal max method using python?

I want to downsample a raster image using the max method that is available in GDAL in python. In other words I would like to recreate the following bash command in python code: gdalwarp -tr 32 32 -r ...
0
votes
0answers
16 views

Resample Tool in ArcPro ModelBuilder will not change from 1mx1m cell size

When I attempt to resample my data in ArcPro Model Builder, the parameter values for the output raster will not change from 1m x 1m (original cell size). I am attempting to create a tool that outputs ...
1
vote
1answer
274 views

Earth Engine: Downgrading image resolution

I am trying to downgrade the resolution of high-resolution precipitation product (DayMet) to low resolution using the solution posted here: https://gis.stackexchange.com/a/323143/33177 However, I am ...
0
votes
1answer
32 views

What is the Sentinel-2 level-1B to level-1C interpolation method?

The Sentinel-2 level-1C raster data in cartographic geometry is resampled from level-1B data in sensor geometry, using B-spline interpolation. Which order of B-spline interpolation is used? ESA ...
0
votes
1answer
94 views

Decimated and windowed read in rasterio

In my workflow using rasterio, I'd like to read an overview from a raster and get only a portion of it through a window at the same time. Is this possible? I have a pretty complex script so far and ...
0
votes
1answer
425 views

Bilinear resampling with GDAL leaves holes

I'm attempting to down-sample a raster (resampling to a coarser/ larger pixel size) with continuous, floating-point values. I generally use bilinear resampling for the up-sampling case (resampling to ...
1
vote
0answers
36 views

Does gdalwarp resample when calculating geoid correction?

I wanted to perform a geoid offset correction to a DEM and saw this really useful post: Vertical Datum conversion of a raster with gdal I noticed that although they use gdalwarp, they do not specify ...
3
votes
1answer
481 views

How to resample a raster layer to match a specific raster layer's cell size?

I would like to resample the cell size of a GeoTIFF raster layer with dimensions equal to the reference file (a Sentinel-2 B12 band with 20 m resolution to 10 m resolution). I use the following code ...
1
vote
0answers
81 views

Resample raster image, how to choose new resolution?

I know this is not a new question, and I know it depends on the context and what I would like to do with the data, but I am still finding it difficult to solve this problem in practice. And I haven't ...
1
vote
1answer
414 views

Image Resampling in Google Earth Engine?

I've wrote below code for landsat and sentinel mosaicing, however I don't know how can I resample sentinel-2 pixel size to landsat-8 data? Could anyone guide me please? code link: https://code....
1
vote
0answers
70 views

Which resolution is appropriate for resampling a raster in a specific CRS in QGIS 3.6? [closed]

I'm trying to resample a raster file to obtain smooth interpolated levels in EPSG:3120 - Pulkovo 1942(58) / Poland zone I projection. (following the steps in this answer) 1. Using the raster ...
1
vote
0answers
85 views

Error User-defined methods must return a value - what should my function return?

I have written a function that supppose to reproject my sentinel 1 image (Resolution 10 meters) to my sentinel 2 images (20 meters). I have written the function but I am missing the return part ...
1
vote
0answers
55 views

QGIS - sentinel and cubic resampling

I am having problem with cubic resampling applied on Sentinel S2 (resolution 10 m). I set Cubic resample when Zoom In, but the result is still the same - pixelated. I have tried the same sentinel in ...
2
votes
0answers
80 views

Wrong values after resizing (resampling) rasters using cv2.resize (Python)

I have two images (aerial photographs): ImageA is 4740x4240 and cell size is 0.1 m ImageB is 1849x1653 and cell size is 0.25 m. I want ImageB with the same size than ImageA. I used the following ...
1
vote
1answer
370 views

gdalwarp ignoring multiple srcnodata values?

I'm trying to resample an in image in the MODIS sinusoidal projection. There are several fill/ NoData values that I want to exclude in the resampling. The data are unsigned 16-bit integer values. A ...
2
votes
1answer
1k views

Using xarray to resample and merge two datasets

I have one dataset of satellite based solar induced fluorescence (SIF) and one of modeled precipitation. I want to compare precipitation to SIF on a per pixel basis in my study area. My two datasets ...
1
vote
0answers
86 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
135 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 ...
1
vote
1answer
252 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
26 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
35 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 ...
3
votes
0answers
210 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 ...
6
votes
1answer
3k 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
104 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 ...
13
votes
2answers
2k 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 *...