Questions tagged [resampling]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
19 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....
1
vote
1answer
24 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
45 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
40 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
49 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 ...
2
votes
1answer
160 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
70 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
20 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
29 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
27 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
52 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
21 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
113 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
38 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
12 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
120 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
25 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
56 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
144 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
27 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
235 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
69 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
214 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
64 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
35 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
49 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
48 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
209 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
581 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
68 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
88 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
19 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
178 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
34 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
120 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 ...
3
votes
1answer
2k 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
70 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 ...
6
votes
1answer
1k 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
84 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
678 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
56 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
94 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
93 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 ...
6
votes
1answer
661 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
206 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 ...
1
vote
0answers
35 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
641 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
125 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
86 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 ...