Questions tagged [raster]

Raster is a data format consisting of regular grids of values, usually stored in an image-like format.

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

Reclassify RasterBrick with different values for each band in R

I have a three-band RasterBrick in R. I would like to use raster::reclassify to change some of the cells to NA. However, I want to use a different threshold value for each band. So, for example I can ...
1
vote
0answers
19 views

Getting raster layer path in ArcGIS Pro using C#

I am creating an ArcGIS Pro Extension. I need to know the layer's path. To get the layer path, code developed so far: var pointLayer = MapView.Active.Map.Layers.OfType<FeatureLayer>()....
1
vote
1answer
30 views

Deep machine learning to improve satellite spatial resolution

Are there currently technologies based on deep machine learning that can improve the spatial resolution of satellite images (e.g. Sentinel-2)? An example of the use of such technology to reconstruct a ...
0
votes
0answers
18 views

How to fix "Failed to display the raster layer as Classify"?

I have a flow accumulation raster layer and I am trying to display it using classify to only show prominent flow paths. When I try to use the "Classify" primary symbology, I get the error ...
1
vote
1answer
53 views

terra::rast() vs raster::brick() for loading in .nc files

Long time raster user, first time using terra. I have a large .nc raster file (1,168 cells, 10,000 layers, 168MB in size). When using raster::brick() the file is loaded into my R session within a ...
0
votes
1answer
29 views

Unable to sum raster files in R using raster package

I am trying to sum all of my raster files (over 500) from a single folder in R, using the raster package, but am encountering an error message I cannot figure out how to solve. I am trying to use to ...
1
vote
0answers
19 views

Draw polygon (vectorize) raster based on same colored pixels -- getting bad polygons

So, I have a TIF georeferenced map and a rather messy shape that I need to digitize. It is green but has a lot of holes in it that are light green color. So, I want to capture all green pixels and ...
2
votes
2answers
152 views

Calculating the number of points per raster pixel

I'm working with QGIS 3.14.16, where I have a large dataset of points (in a shapefile) and a raster of my study area. I want to calculate a new raster with the number of points in each cell. I've done ...
0
votes
0answers
13 views

TypeError: in method 'GetDataTypeName', argument 1 of type 'GDALDataType'

I am trying to change the height width, apply CRS and change datatype for my raster but i am getting error. I know the error is coming from "output Type" as i have previous ran the code ...
0
votes
0answers
12 views

Using GDAL, is it possible to know what transformation options were applied on a raster, e.g. when reprojected?

I have two raster files which should be the same in theory (and from what I've been told). But I noticed slight differences when using gdalinfo on these. Mainly in the statistics: raster A: Band 1 ...
0
votes
1answer
59 views

Unable to use gdal_calc from gdal to sum raster files

I am trying to run the following line of code from Anaconda Prompt to add all all of the raster files in a directory/folder together using gdal: for %f in (*.tif) do gdal_calc -A %f -B result.tif --...
0
votes
0answers
28 views

To Plot a multiple TIF file and save a map in JPG format

Hi I am a beginner in python and I try to plot a multiple tif into a map as image file. I get the file and list the all files from the directory. And also create a function to create map as image I ...
0
votes
0answers
18 views

QGIS giving GDAL raster provider error, but I'm only opening vector data

I have a .osm file from openstreetmap, so XML. If I add it to my QGIS project by choosing "Add vector layer" it works well, I get 5 vector layers on the map (lines, multilines, multipolygons,...
5
votes
1answer
78 views

QGIS: overwrite part of a raster by another raster

I am trying to create a single raster file that divides the region of Antwerp, Belgium into 5 categories: high green, low green, agriculture, water, and build-up area. For this, I will have to combine ...
0
votes
1answer
52 views

How to determine North-facing, south, east and west forest edges in QGIS

I am using QGIS. I have a shapefile with 41 polygons representing forest patches. I want to assess the effect the forest edge direction has on vegetation within the forest patches. I have defined ...
2
votes
1answer
82 views

Cropping raster (rectangle) with shapefile (mask) in QGIS

My study area is in black, and in grey the shape of Portugal. I am creating my study area. It corresponds to the coastal area of Portugal. I have a shapefile for Portugal. I want to crop a raster that ...
1
vote
1answer
26 views

Raster Calculation through two iterative loops in R

Here is a list of files I would like to create a loop with for a raster calculation "J:\NAIP\temp5\m_4208902_nw_16_1m3m_sd.tif" "J:\NAIP\temp5\m_4208902_nw_16_3m_sd.tif" "J:\...
1
vote
0answers
34 views

Calculating the Linear Erosion Rate Between Two Rasters in R

I am trying to determine differences in erosion rates based on vegetation type in wetlands. I have two raster layers based on NDVI that allow me to assess broads changes in the vegetation over time. ...
0
votes
0answers
21 views

Copy Raster results in darker satellite image

I am using the copy raster tool from the raster dataset on two Sentinel 2A satellite images so that I can remove the black excess background detail in order to mosaic them together without the black ...
1
vote
0answers
42 views

Processing one single huge DEM in QGIS

I am working on a hydrological model and I needed a DEM for the entire watershed, so I had to merge multiple DEM tiles in order to cover all of the watershed. There were 34 tiles to merge in total. I ...
1
vote
1answer
37 views

Why does aggregation of MODIS pixels not sum to 1?

I want to find the fractional cover of different tree species from MODIS (30 m resolution). I use R to stack, aggregate (1020 m resolution) and thereby find the fractional tree species cover for a ...
0
votes
0answers
27 views

How to convert a data frame to a "GTiff" format com cell-values

I generated this model in R, I think it is a Data Frame file, how can I transform it to a format="GTiff"? relevo.df$precipi <- predict(modelo,relevo.df) print(relevo.df) ggplot(relevo.df)+...
0
votes
0answers
26 views

sf st_make_valid silently failing after st_combine

I'm trying to create an object of class 'sf' that is single multipolygon out of a raster. I'm following the procedure in this SE post: https://gis.stackexchange.com/a/357792/191148, but I want to keep ...
4
votes
2answers
226 views

Why can R not allocate enough memory even for a small raster file?

I have a raster layer of vegetation cover (range from 1 to 3). The size of the file totals 60 Mb so it is not big at all. I know this is duplicating other questions, but they have not helped me out. I ...
0
votes
0answers
20 views

How to make transparent image

Probably duplicated, but can't find solution. I have some TIFF files with white background, and i want to make white colour transparent. I tried: imagemagick magick convert -transparent white input....
0
votes
0answers
29 views

GDAL raster with python error: 'NoneType' when I use gdal.Warp

I'm trying to 'north-up' a georeferenced raster in a python environment, this is the code: from osgeo import gdal import numpy as np import matplotlib.pyplot as plt ds = gdal.Open(r"DJI_0895.TIF&...
0
votes
0answers
25 views

Certain raster layers cannot be merged in GDAL

I attempted to merge a number of raster maps with GDAL in QGIS but got the following error: GDAL execution console output 0...10...20...30...40...50...60..ERROR 5: C:/Users/...
2
votes
0answers
26 views

How to get equal size cells when using rasterize in QGIS on slanted points

I'm trying to get nice, centered cells on every point. I'm using the tool rasterize in QGIS. I have gotten the method to work with uniform point data, however, I am having more trouble with slanted ...
2
votes
1answer
38 views

Is it possible to change the raster image size on the fly?

I am trying to change the raster image size on the fly. I have 10 band therefore I cannot use OpenCV. gdal.Warp() gives the option to change the size but I have to save it in a folder. Is there ...
4
votes
0answers
44 views

Counting pixels of each land cover type within each polygon from raster image using R

I have the following raster image that shows the different types of land covers on the island of Maui (there are 22 in total): The island is divided into "mokus" or large districts, which ...
0
votes
0answers
32 views

Aggregating and calculating fractional vegetation cover from raster using R

I have some MODIS data on vegetation cover. It is at a 250 m resolution and I would like to aggregate the pixels on a 1 km scale, and at the same time calculate the fractional vegetation cover since I ...
0
votes
0answers
30 views

Turn point cloud into rasterized mesh with PDAL-C and it's API

I'm triyng to turn a point cloud into a mesh that's rasterized like the code in c# below describes but I have come to the problem that the filter delaunay does not work with a raster, only with a ...
1
vote
1answer
30 views

How can I create a multiband raster from singleband raster values?

Counter-intuitive to all the other questions about splitting raster bands, I would like to split my single-band raster into a multiband raster stack based on the values given in each pixel (range from ...
2
votes
1answer
32 views

Rendering three-composition raster map with ternary colormap using R

Say there are three raster maps, representing percentages of sand, silt and clay respectively. The three values for each cell are hence summed up to 1. I want to use one raster map to characterize the ...
1
vote
0answers
23 views

Rasterize multiple polygons and calculate average

I have a vector layer that contains many overlapping polygons, each containing a "Value" in the attribute table. I am trying to rasterize each polygon as an individual raster layer, and then ...
0
votes
0answers
15 views

Projecting raster changes the range of values

I am trying to project a 1 second DEM from GDA94 to UTM56 in ArcMap using the Project Raster tool. I tried different methods: bilinear, cubic, nearest neighbor. Nevertheless, the values of the output ...
0
votes
0answers
44 views

QGIS 3.16 and 3.20 Georeferencer freeze issue

Has anyone across the geo-referencer freezing on 3.16 LRE and 3.20? I have tried this with multiple different jpegs and tiffs. The progress indication bar sticks on 0% and the only way to resolve this ...
0
votes
0answers
8 views

How to calculate LST in ECOSTRESS data?

I have downloaded ECOSTRESS images, but the LST band values are way too high. How do I convert the pixel values to degrees celsius? Someone said they use the TES method to retrieve LST from the five ...
0
votes
2answers
38 views

Calculate area for each raster value within a polygons (python) [duplicate]

I have a raster file and polygon shapefile. I need to calculate area for each raster value within a polygons. Example: the polygon below Total area = 1000 ha. I need an area for each raster value in ...
1
vote
1answer
29 views

Avoid warping when georeferending non-equirectangular map in QGIS3

I am trying to georeference an old map of Italy (https://www.mapsland.com/maps/europe/italy/large-scale-old-political-and-administrative-map-of-italy-1890.jpg) using QGIS3. I've set a reasonable ...
0
votes
1answer
44 views

GDAL translate to COG seems altering the original data image

Trying to compare with gdal info on both images, nothing seems been different but when trying preview images on QGIS with same band settings value, the image seems to be altered. Command use for that :...
1
vote
0answers
19 views

Creating a loop to create NDVI images from raster stacks and naming them from the file name [closed]

I have been trying to write a loop to go through two folders of Sentinel 2 satellite images (Band 4 and 5) and get a NDVI for each date. A stack is created for each band, some cropping and resampling ...
0
votes
1answer
26 views

Seeking above ground biomass global map/dataset?

I need a global above-ground biomass raster dataset from which I will subset a certain area of southeast Asia. I tried to use GEDI data but couldn't work out how to use this data. Is there any other ...
1
vote
0answers
19 views

Using surveyed cross section of river to create typical cross section for entire river length in ArcGIS Pro [closed]

I am using ArcGIS Pro. I have 4 surveyed cross sections that includes survey points. I want to create a typical cross section from these and burn them in the the existing raster such that the river ...
2
votes
1answer
80 views

Make one DEM file with the lowest points of two overlapping DEM files with QGIS

I have two rasters DEM files which are exactly overlapping. Now I want to have a new file with the lowest points from both DEMs. I think Raster calculator can do such things, but I dont know how. How ...
1
vote
1answer
26 views

Array is visualized differently in matplotlib than QGIS

I am getting different resutls when plotting a np.array with matplotlib than when doing it in an external software - QGIS. Here is what I have: print(wiw[0].shape) (1, 8433, 9254) print(wiw[0]...
1
vote
0answers
23 views

Merging rasters with pixel/cell offset with QGIS

I want to merge two partly overlapping raster files which are obviously in the same CRS and have the same cell size, while taking the exact values of one of the input rasters in the overlapping areas, ...
1
vote
1answer
31 views

Exporting training data for deep learning in ArcGIS Pro with a fixed buffer area around each polygon

I have a raster image with building polygons and I want to use these to extract data for deep learning using the ArcGIS Pro tool. I would like to have a single polygon per image and therefore I'm ...
2
votes
1answer
31 views

Iterating through a matching set of before and after raster images in Python

I have downloaded a matching set of before and after insect invasion raster images from Google Earth Engine. I now want to loop through these images selecting the matching before and after invasion ...
0
votes
0answers
20 views

Saving multiple classes on raster dataset as individual shapefiles using ArcMap

I have this raster dataset (.tif) of land use cover. There are 22 individual classes in total. Is there any way I can separate these classes and convert them each into individual shapefiles? I want to ...