Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [resampling]

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

1
vote
0answers
36 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
12 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
22 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
26 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
24 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 ...
0
votes
0answers
24 views

Interpolating raster as means of resampling?

I am working on a set of temperature projections (NetCDF files) that are all based on different projection systems. They need to be reprojected on a single grid in order for any comparison to be ...
-1
votes
1answer
57 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
51 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
39 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
42 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
66 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
17 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 ...
5
votes
2answers
73 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 ...
7
votes
1answer
183 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
24 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
33 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
0answers
129 views

How to compare 2 NDVI images using python?

I want to compare NDVI of 2 images(TIF) of the same area of interest using python. My end result is to get the region on the image where NDVI is decreased(to depict crop damage). Problem: Images have ...
0
votes
1answer
103 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
80 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
26 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
99 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 ...
0
votes
0answers
41 views

How to resample the dependent points and make the new data points independent by Qgis?

I have some random data points, but they are not independents. Are there any methods can resample these data points and make the independent? Then, the new samples would create buffer that radius at ...
1
vote
1answer
254 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
242 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 ...
0
votes
0answers
59 views

gdalwarp for CHELSA bioclimate - from EPSG:4326 to EGSP:2154

I am trying to re-sample (and crop, and realign) layers from CHELSA data (http://chelsa-climate.org/) to EPSG:2154. The resolution I wish is 90m, and I just want to crop for the extent of France. The ...
1
vote
1answer
125 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 ...
3
votes
1answer
1k 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 ...
3
votes
1answer
490 views

Pros and Cons of using Bilinear Interpolation and Cubic Convolution when dealing with DEMs? [duplicate]

I am currently processing a handful of DEMs (derived from LiDAR data). I have a conceptual question, when choosing a Resampling Technique what are the pros and cons of using Bilinear Interpolation and ...
1
vote
1answer
78 views

error: wrong resolution for raster calculator, how to work with this?

I have two raster files (lets call them raster A and B) and I would like to multiply them with the raster calculator. I keep getting an error message when working with the raster calculator. I thought ...
3
votes
1answer
470 views

Reproject masked array with rasterio

Is there a way to preserve the mask of a numpy array when reprojecting it with rasterio? See the reproducible example with real data below: import os import tempfile import rasterio from rasterio....
0
votes
0answers
71 views

ArcPy raster output spills over environment extent by one row and one column

I'm resampling a raster, and I would like it to line up and match the dimensions of another template raster. For whatever reason, the output of the Resample_management function has an added row and ...
1
vote
0answers
176 views

Downscaling 1km data to 250m with points

I am doing some species distribution modeling with MODIS 250m data, and would like to downscale 30 arc-second (1km) bioclim data to 250m so that I can use them in my models. My idea is this: Rather ...
0
votes
1answer
31 views

How can I resample statistics from one set of districts to another?

I have statistical data for a certain region based on a subdivision of that region into districts (e.g. number of schools per district). Now I want to resample that data to a different subdivision of ...
1
vote
0answers
112 views

Eliminating large plateaus in coarse resolution DEMs?

I have a 15-meter, integer DEM I converted into a float raster. However, the original DEM contains large lowland areas that are nearly completely flat. Due to the original resolution and integer ...
1
vote
1answer
189 views

Reprojecting a raster

I am trying to reproject a raster and change its resolution with the function projectRaster() in R. I looked up at the R documentation website (https://www.rdocumentation.org/packages/raster/...
0
votes
1answer
44 views

Raster sampling using ArcGIS Desktop?

Is there an ArcGIS function to sample x% where x lies between 0 and 100, of a raster? I do not want point sampling and ArcGIS functions seem to focus on point sampling. For ArcGIS, I use version 10....
2
votes
0answers
530 views

Changing Raster Resolution to match other Raster in QGIS

I have a raster layer of 0.125 degree resolution and another raster layer of 0.0833 degree resolution. Both the raster layers are to be overlapped. So, I want to change the resolution of 0.0833 ...
4
votes
1answer
385 views

Creating RGB composite using GDAL: resampling?

I want to use gdal_merge.py for creating rgb composite from 3 bands with the same qualities (resolution, crs..), but here I found that gdal_merge.py is using nearest neighbor resampling method. Is ...
1
vote
0answers
22 views

Can't have cubic resampleing with base map in QGIS 2.18.3

I want to display a raster with cubic resampling with base map, but it seems impossible in QGIS for some reason. I first change (in the style tab of the raster) the resampling to cubic and I get the ...
2
votes
1answer
3k views

Resampling a raster from python without using gdalwarp

I'm trying to resample a GeoTIFF file to match another raster layer using python GDAL package. Most of the ways I found online is to use gdalwarp resample data from the command line. Is there a way to ...
0
votes
2answers
270 views

Use python to resample a raster 12 times in increments of 10

Objective: I want to take a sample landscape (with a resolution of 10,10) and resample it systematically in increments of 10 until a max of 130,130 (and eventually write each new rasters file path to ...
0
votes
1answer
103 views

A method to match narrow bands from in-situ spectrometer with Landsat-8 central band

Is there a way to resample Landsat-8 bands to match different bands from a spectrophotometer. I'm doing atmospheric correction, comparing in-situ reflectance measurements performed using 10-nm wide ...
2
votes
1answer
704 views

How gdal_rasterize works - how it interpolates / resample values?

I have huge number of points saved as shapefile. I created an empty raster file with low spatial resolution. Next, I applied gdal_rasterize on mentioned .shp and used low resolution raster as ...
1
vote
1answer
77 views

Clipping multiple resampled rasters to same size using ArcGIS Desktop?

I have various rasters of environmental variables that were imported as GeoTiffs or NetCDFs. The rasters had varying cell size which I fixed by resampling them using the Snap Raster function in ...
3
votes
1answer
45 views

GeoServer v2.9.1 re-sampling errors with GetCoverage request

App I'm using Openlayers3 and GeoServer 2.9.1 to create an application allowing users to draw an aoi then download it as raw data subsets (geotiff) of a Canada wide data set (also geotiff). I'm using ...
1
vote
1answer
164 views

Suggestions for open source command line resample algorithm that ignores nodata?

I am trying to automate the downsampling of elevation (and other) data using open source software at command line in an automated workflow via use of windows batch files. Currently the workflow uses ...
1
vote
0answers
34 views

Resampling raster based on more than 16 nearest cells?

I have a habitat suitability map, with cells of 30x30, each with a score of relative suitability for fox. The problem is that, with 30x30 cells, the grain is too fine for getting a broad sense of what ...
1
vote
0answers
278 views

Convert raster LST 1 km to 250m (R resample)

I have two files, where the NDVI is at 250m and the LST is at 1k, I want to use resample of R to convert the LST to 250m. ndvi <- raster("MOD13Q1.A2014017.tif") lst <- raster("MOD11A2....
1
vote
1answer
192 views

Resampling Raster

So I was thinking about a method that would allow me to essentially get the same resolution as a 3 meter DEM but with the size of a 30 meter DEM. As most GIS people know, 3 meter DEMs tend to be ...
1
vote
0answers
96 views

How to change the default resampling method in ArcGIS 10.2.2 to Create Referenced Mosaic Dataset

When creating a reference mosaic dataset in ArcGIS 10.2.2., the default resampling is Nearest Neighbor but I'm using continuous data so I need to change the resampling method. When using the Create ...