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
19 views

Using x,y coordinates and a value gathered in an Excel file, set these values in a raster with Python and GDAL

I have an Excel file with X, Y coordinates and one Altitud value for each coordinate. I have already gather these values in Python dict (see image) Also, I have a raster NetCDF file, which i have ...
0
votes
0answers
16 views

Distance to forest edge in R

I have a raster layer consisting 41 forest polygons and would like to calculate the distance of forest pixels to the edge within each forest polygon. I tried the code below but the result looks like ...
1
vote
0answers
14 views

Why is the preview in SCP working, but the actual classification not?

I am using the Semi-automatic Classification Plugin (SCP) to classify Sentinel and Landsat satellite imagery. I have training ROIs saved in a file (.scp) and (re)calculated their spectral signatures. ...
2
votes
1answer
23 views

Differencing two rasters with very different resolutions (QGIS 3.20.3)

I am having a problem with analysing two rasters with 2 significantly different resolutions. Background on the two rasters: DEM is the ALOS_30m DEM which is in the WGS_84 format. Merged together ...
0
votes
0answers
22 views

EucDistance fails on last iteration of loop using ArcPy with ArcGIS Pro

I am building a tool for ArcGIS Pro 2.8.0 with Python using the template that ESRI provides. The first part of the tool defined in the execute function takes a point feature and loops through a search ...
0
votes
0answers
20 views

GeoServer Image Mosaic time dimension is disabled

I am trying to create NDVI map for 100 tiles. For each tile I have more than 10 TIFF files belonging to different dates. To do that, It appears that the Image Mosaic module can be useful with the time ...
0
votes
1answer
33 views

How to align rasters with small gap and overlap perfectly for merging

I have two raster files A and B, raster A lies completely in the extent of raster B. These rasters I want to merge into one while taking the exact values of raster A in the overlapping areas. To ...
0
votes
0answers
27 views

Calculating overlapping areas using QGIS

I am new to QGIS. I have a grid layer as layer one. Polygon’s layer with many polygons as layer two. I need to calculate the ratio of an overlapping area in one square of the grid where two polygons ...
0
votes
1answer
15 views

Georeferencing a raster image in a Mosaic Dataset greyed out in ArcGIS Pro

I have a Worldview 2 product from Digital Globe. To add it to ArcGIS I am first creating a Mosaic Dataset and selecting the Worldview 2 product definition and setting the coordinate system to be the ...
1
vote
2answers
48 views

Error when clipping raster by mask layer (polygon) in QGIS

I'm using QGIS 3.14.16-Pi and I'm trying to clip a raster layer by a multipolygon layer representing a network of protected areas. My raster has 4 categories of values: -3, -1, 0 and 2. I've tried ...
0
votes
0answers
33 views

ArcGIS Pro raster layer showing up in wrong place

I am very new to GIS and have only just started learning ArcGIS Pro. I have some satellite images that I have processed using a program called ACOLITE which outputs a NetCDF file. I am trying to use ...
1
vote
0answers
26 views

NetCDF with negative dimensions

I am trying to read a NetCDF file with rasterio (Python), however, the resulting affine is showing negative numbers. The .nc4 file comes from NOAA. How can I correct these negative dimensions? nc_fo = ...
1
vote
2answers
63 views

How to manually adjust QGIS raster histogram X-values?

Background: At 3.20.2 I am unable to manually adjust the raster histogram minimum and maximum X-values, as shown in the screen shot below. There are fill-in boxes (within the red graphic box) which ...
0
votes
2answers
61 views

Split a huge .jp2 file into GeoTIFF tiles using R

I have the 2018 orthophoto of Luxembourg (RGB IR, entire country, 25 GB) and it is way too large to work with. Furthermore, it is in .jp2 format. I want to translate it into smaller GeoTIFF tiles, ...
1
vote
0answers
27 views

Fast retreival of single-point bicubic interpolation from a raster? [closed]

I have a raster data set with a grid size of 100m. I want to get information from it for a single point within the grid, using bicubic interpolation to use a bit more of the information from the data ...
0
votes
0answers
30 views

How can I merge the bands for each ID to create two multi-band TIFFs in R?

I have 16 separate raster files, named by ID and band, for 8 bands and 2 IDs. How can I merge the bands for each ID to create two multi-band TIFFs? Here are my data: dput(rastlist) c("...
3
votes
1answer
36 views

Generating paths from proximity map in QGIS

I'm trying to generate paths from proximity map in QGIS, is there a way to convert the light areas into vector lines?
2
votes
0answers
33 views

Wrong cell values after merging rasters in QGIS

I have two raster files A and B which overlap in certain areas. These rasters should be merged into one while taking the exact values of raster A in the overlapping areas. For this purpose, I intended ...
1
vote
0answers
39 views

How to overlay shoreline shapefile into GeoTIFF file

I have a shoreline shapefile of five great lakes and a georeferenced lakeshore TIFF photo of lake Ontario. I want to overlay the shoreline shapefile into tiff photo as a new raster layer. Specifically,...
0
votes
1answer
33 views

Rasterio fails to create new tiff file inside for loop

I'm trying to save rasters with rasterio inside for loop. For reason that I don't understand, the for loop works only in the first loop (being able to save the tiff image) but then when comes to the ...
0
votes
1answer
27 views

How to interpret Terrain Ruggedness Index according to Wilson et al. (2007)?

Is there a categorical scale used to interpret values from the Terrain Ruggedness Index as calculated by Wilson et al. (2007), which is used in the raster library in R?
0
votes
0answers
15 views

Overlapping two maps and extracting the mean value from overlapped range in R

I want to overlap a species distribution range on the world map which has values, and extract the mean value within the species range. I have 1500+ species distribution range in a gdb file so I try ...
2
votes
1answer
53 views

Merge two overlapping rasters and only take values from one raster in the overlapping areas in QGIS

I have two raster files A and B which overlap in certain areas. These rasters should be merged to one while taking the exact values of raster A, and hence overriding/replacing the values from raster B ...
0
votes
0answers
15 views

Recreating QGIS "save Raster as Rendered Image" in python using GDAL [closed]

I have a set of GeoTIFF that will be inputted in a machine learning model. The problem is that GeoTIFF file is not considered as an image file for some reason and the model only takes in image files. ...
0
votes
2answers
25 views

Setting 0 pixel value to novalue using GDAL in Pythin API

I have a raster data and i want to set the 0 value pixels to NoData using GDAL in python API. I know that you can do this by inputting this code in the command prompt. gdal_translate -of GTiff -...
0
votes
0answers
26 views

Convert Raster coordinates from WGS to UTM and then translate it to XYZ [closed]

I need to extract the raster map as an XYZ file and in UTM format so I followed the following steps but it turned into all Z values are zero instead of their actual values, here are the steps: From ...
3
votes
1answer
39 views

How to snap a vector layer to a raster layer in QGIS?

I am working with both vector and raster data. I have several vector layers with land use data, e.g. including urban, (types of) forest and agriculture. I am also using Sentinel-2 raster data. My goal ...
3
votes
1answer
35 views

Using buffers in Point Sampling Tool

I have 50m (shape file) buffers around (shape file) data points. I have another layer with the raster of the vegetation (indicated by different colours) in that land. I can easily extract the raster ...
0
votes
0answers
36 views

Calculate surface area on raster using Python

I have raster files (GeoTIFFs) and would like to calculate the surface area. I envision having a way to extract the coordinates at each corner of the pixels, then have the height values for each pixel ...
1
vote
0answers
15 views

Getting raster legend to change to match raster in map when dynamic range setting is turned on using ArcGIS Pro

When I bring a raster into ArcGIS Pro, I usually turn DRA on so the raster visualization changes depending on my map extent, but the legend never changes in the contents pane, or in the actual legend. ...
0
votes
0answers
29 views

Finding the minimum value cells orthogonally to a polyline

I have a raster (rast) and polyline (poly) as shown below with the corresponding data. For all the cells that line passes through, I want to find the minimum value among the cells that are located on ...
1
vote
1answer
27 views

Making raster layer with shortest distance of each cell to roads using QGIS

I have a road shp (or raster) layer, and I'd like to make a new raster layer of each cell is filled with the distance to the nearest road. Is it possible to compute the layer using QGIS with some ...
1
vote
1answer
44 views

Clipping raster and shapefile and generate attribute table

I have a shapefile folder of property map and raster file of elevation. I want to clip those and generate attribute table. I import both shapefile and raster file, then I click 'Full extent' and ...
0
votes
2answers
23 views

Read multiple layers raster from ncdf file using terra package

I want to read a specific layer from a multilayer raster (format ncdf) using terra package. I want to extract each layer by polygon using terra package (it is a very fast way to extract values). I ...
0
votes
0answers
13 views

Format rasterio Raster To Use In Further Operations

I am using this solution (with a couple of tweaks) to split my raster into tiles to further run operations on each tile. I am trying to figure out how to not have to write each split as a separate ...
1
vote
0answers
21 views

SAGA Ordered Weighted Averaging tool in QGIS Errors

I'm attempting to use the SAGA Ordered Weighted Averaging tool in QGIS (3.16) and am running into a few errors. Every time I've run the tool I've used the same number of inputs as weights in the table,...
0
votes
0answers
20 views

Rounding a raster to the hundredths place in ArcGIS Pro

I'm trying to round a raster with only positive values to the hundredths place in ArcGIS Pro. I found two formulas here on the Stack that would successfully round some of the values and others they ...
0
votes
1answer
28 views

Error in calculation of raster mean

I have a list of files corresponding to MODIS Aerosol Optical Depth (AOD). A part of list I would like to provide as sample is as follows The sample list of files is: MOD04_L2.A2020153.0445.061....
0
votes
1answer
16 views

Fix extent of R rasters (grid_density output) to match

I have two rasters that are the result of the grid_density() function from the liDR package. With those rasters I want to compare point distribution of subsets of a LAS file. My problem is, that I get ...
4
votes
1answer
30 views

Modify raster pixels based on another raster layer

I have two raster layers. One layer contains the data of the first day a pixel experiences degrees Celsius above a certain threshold. The other layer contains hotspots in Iceland. These hotspots ...
0
votes
0answers
35 views

Visualising ground radar in QGIS using rendering

I have GPRI intensity ground based radar data as data validation for my SAR analysis. As this does not appear to be a multi-band image, how do I render this on QGIS so I can see my targets? I have ...
1
vote
0answers
35 views

Iteration through all features without performance issues when clipping raster

I wrote a little script but every time I run it I hit a wall with performance. So in order to iterate through each feature for gdal:cliprasterbymasklayer I wrote: from qgis.core import * import qgis....
1
vote
0answers
38 views

Clipping extent using QGIS is not matching shape only small sections

I am new here, and I am working with QGIS 3.16.9. I have a shapefile and a raster. I am trying to clip the raster by mask layer, but it only cuts some pixels, not the whole shape. And if I clip the ...
0
votes
1answer
28 views

Making classified grid from tab using MapInfo

I have a Tab file in MapInfo and values are text (Server Name). I want to create a classified grid. The file has more than 1 million points. Lat---Long----ServerID Anyone has created a classified grid ...
2
votes
1answer
56 views

Random sample of points surrounded by similar pixels in Google Earth Engine

I have a single-band raster (US landcover) where each pixel is assigned to one of a few classes. I want to get a random sample of points (lat-long) throughout an area such that each of those points is ...
1
vote
0answers
15 views

Projecting multidimensional raster creates single raster layer, not multidimensional output

I have a multidimensional raster layer in WGS 84 which I created with no issues from a NetCDF file in ArcGIS pro (https://pro.arcgis.com/en/pro-app/latest/tool-reference/multidimension/make-...
1
vote
0answers
11 views

How to detect if a binary raster bitmask and a polygon intersect using GDAL?

I am wondering how to efficiently solve the following problem. Given 1 bit georeferenced raster data that represents a bitmask, and a polygon - detect whether the area defined by the polygon covers ...
0
votes
1answer
30 views

Compare the overlap of two raster datasets, by corresponding year, output CSV of results

I have two datasets that I want to compare against each other within a defined shapefile boundary, within a defined yearly range EG (2000-2020) a) A burned area raster for each year in the range. b) A ...
0
votes
1answer
21 views

R - Write a raster object with the pixels transparency attribute

In R, I have a raster object for which I would like to set a certain level of transparency. When I visualize it, everything is fine library(raster) test <- raster(x = matrix(1:16, 4)) plot(test, ...
0
votes
0answers
18 views

Polygonizing raster files using QGIS gives different area polygons between GDAL 3.3 & GDAL 3.0

I used QGIS with GDAL 3.3 to polygonize a raster file. Added a field using the "field calculator" to calculate the area of individual polygons. Finally, to calculate the sum of the total ...

1
2 3 4 5
170