Questions tagged [resampling]

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

44 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
408 views

Can extracting raster values work in polygons' CRS without raster resampling?

I am trying to extract raster values using polygon layer with different CRS. Raster is in WGS84 (EPSG:4326) and the polygons in UTM (EPSG:23031). 1. If I want to work in the projection of the ...
3
votes
0answers
794 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 ...
3
votes
0answers
182 views

What is the kernel width of the gdalwarp resampling methods?

gdalwarp provides 7 resampling methods. How many neighborhood pixels do contribute to upsampling respectively downsampling? I will try to guess. Please correct, if values are wrong: Upsampling: ...
3
votes
0answers
244 views

Reprojecting a population raster from LAEA to lonlat

I have a population density raster from the EEA which is based on the CORINE land cover 2000 data. http://www.eea.europa.eu/data-and-maps/data/population-density-disaggregated-with-corine-land-cover-...
2
votes
0answers
298 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
314 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
0answers
775 views

Efficient way to resample, crop, and mask a raster image using R

Does anyone know an efficient way to resample an image? I am currently trying to crop a large image and clip two regions from a shapefile. From this clipped image, I would like to increase the pixel ...
2
votes
0answers
392 views

Why does gdalwarp's cubicspline method expand into nodata areas?

The image below shows part of a peninsula on the Australian island of Tasmania. The black pixels are 9" climate data with GDA94 (EPSG:4283) SRS, projected by QGIS on the fly to Australian Albers (EPSG:...
2
votes
0answers
121 views

Align & Sum Grids in Python

I have two grids. One, call it A, is 4320x2160 cells and spans the whole globe. The other, call it B is 8640x3432 and spans the circumference of the globe, but is clipped toward mid-latitudes. Both ...
2
votes
0answers
138 views

Is it feasible to reclassify a raster which has been resampled/smoothed for display purposes?

Background: I have a Google Earth KMZ file which shows ground movements after an earthquake, arranged into discrete classes: From the KMZ file I'm able to download the original PNG images, which are ...
1
vote
0answers
25 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
13 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 ...
1
vote
1answer
117 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
30 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
0answers
28 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 ...
1
vote
1answer
57 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 ...
1
vote
0answers
48 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 ...
1
vote
0answers
79 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
0answers
53 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 ...
1
vote
0answers
230 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
51 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
178 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 ...
1
vote
0answers
263 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 ...
1
vote
0answers
119 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
0answers
23 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 ...
1
vote
0answers
36 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
425 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
0answers
108 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 ...
1
vote
0answers
337 views

Cell size in Mosaic to New Raster versus Resample cell size

I have several TIF 2 meter LIDAR DEM files (100+) that I am merging into a single raster and then creating 4m, 6m, 10m, and 30m DEM raster variants. I would normally just use the Mosaic to New ...
1
vote
0answers
288 views

Resampling netcdf file?

What is the best way to change the cell size of a netcdf file, keeping it as netcdf? I have looked into ArcGIS and GDAL and have not found anything yet. I prefer to use python if a solution is ...
1
vote
0answers
158 views

Is it valid to resample a raster from 1m to 3 feet?

I know that in general it is not a good idea to up-sample. I am curious if it would still be be a "bad idea" with a minor change like this from 1m resolution to 3 feet? Going to 3 feet would not ...
1
vote
0answers
292 views

Flipped (Y-axis) Raster from point cloud

I have been working on a project where I need to create rasters from irregularly spaced point clouds. I am resampling my point clouds to a regular 0.25 cm grid using a nearest neighbor method ...
1
vote
0answers
516 views

When subtracting two raster with different cell sizes using raster math, what value is used for smaller cells?

After reading the answer to a similar question (What will happen if we subtract two raster with different cell size using Raster Calculator?), I am still left with a question. When the raster with ...
0
votes
1answer
21 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 ...
0
votes
0answers
23 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 ...
0
votes
0answers
62 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 ...
0
votes
0answers
36 views

resampling/resamplinh from MODIS to Landsat ; Google Earth Engine

Link to GEE I am resampling MODIS to Landsat Data, and my Goal is to get a Landsat like projected Image, but with fuzzy Borders of former MODIS pixels. What I do not want: I tried my Luck with a ...
0
votes
0answers
11 views

Resampling categorical habitat variables to larger size in ArcGIS

I want to resample by land use variables (wetlands, waterbodies, roads, tilled areas, beach habitat) to 200m cell size from 15m cell size. However when I resample, the cells are not consistent across ...
0
votes
0answers
52 views

Why gdal create does not give the proper projection?

Here is my code. I want to resample the raster. But it doesn't set the projection, although I write it. May be there is a simplier way to perform the resampling by pixel size? Is it incorrect to set ...
0
votes
0answers
72 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 ...
0
votes
0answers
82 views

Handling of NA (pixels without values) in raster::resample in R?

How does raster::resample handle NA values with the method ngb (or mean but I am most interested in ngb)? I had thought that NA values were ignored within a larger resolution cell-grid and the values ...
0
votes
0answers
17 views

Resampling of Landsat 2 data

I am using data for Landsat 2, Landsat 5, Landsat 7 and Landsat 8 for same region for change detection analysis. As Landsat 2 has spatial resolution of 60 meter while all the other data are in 30 ...
0
votes
0answers
272 views

Changing the spatial resolution - stacked raster in R

Want to change higher spatial resolution UAV dataset stacked in R. Used raster package to stack the individual band. Want to change the spatial resolution to 1 m. stacked_UAV <- stack(stack_list)...
0
votes
0answers
104 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 ...