Stack Exchange Network

Stack Exchange network consists of 175 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 [raster]

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

0
votes
0answers
5 views

Eliminating superfluous raster values

I have used the raster calculator in ArcMap to calculate the salinity index (RED-NIR/RED+NIR Khan et al.) over a portion of land which was disturbed by the construction of a solar farm. Landsat 8 ...
0
votes
0answers
9 views

Finding Raster Pixel Neighbors using GDAL?

I'm new to GDAL Python, and I'm working on a little recursive algorithm which requires finding the neighbors of a a pixel on a DEM raster. I've been able to do this by creating a little PixelLite ...
-2
votes
1answer
25 views

Tabulating land cover types of raster data in R? [on hold]

I would like to create a tabulation of cover types (raster) within a buffered area around a point of contact. Can someone point me in the right direction?
1
vote
1answer
22 views

Clipping Vector by Custom Raster Extent in QGIS?

I have a raster image (elevation map from DEM) where I have limited the rendered elevation to only 3,500' and higher. I would like to convert the boundary/extent of this rendered image into a vector ...
2
votes
3answers
20 views

Extract coordinates of segments in raster from TIFF image

I'm working with the attached tiff file and I am trying to extract the xy coordinates of the green lines. so far I saved the image as raster stack, and this specific image is from a layer of that ...
1
vote
1answer
22 views

Using GDAL Warp results in odd pixel sizes and gaps

I am mosaicking one meter and three meter rasters to two meters in Python with GDAL Warp using the following code: cl_string = "-of GTiff -co COMPRESS=LZW -tr 2 2 -tap -r near -overwrite \ -multi -wo ...
1
vote
2answers
21 views

Inserting nodata value using GDAL?

I'd like to edit the nodata values in several raster files, but big number of these file doesn't have any nodata value defined, there is nothing to edit. I'v tried the gdal_translate -a_nodata ...
0
votes
0answers
11 views

Convert DWG to Shapefile Using FME and R

I converted a DWG file to an ESRI Shapefile using FME Workbench. Now I wish to create an elevation raster. I'm not sure how to extract the elevation info. library(sp) library(raster) # https://www....
1
vote
0answers
13 views

Raster correlation: Error (arg6) in raster.modified.ttest (R)

I am performing pairwise spatial correlation of 6 rasters using the raster.modified.ttest() function in R, as per this very useful post. I have consistently had the following error with my data; ...
1
vote
0answers
10 views

QGIS quit unexpectedly

Running QGIS 2.18 on Mac OS 10.14. Python 2.7 and GDAL 2.1 installed. Trying to clip raster by polygon. (raster--> extraction --> clipper) Get error message. ("qgis 2.18 clipper The process failed ...
0
votes
0answers
6 views

VeloxRaster_crop returns numeric

Curious as to why the following only returns a numeric vector with row and column information rather than a cropped raster: ras <- velox("dir.tif") cty <- st_read("cty.shp") ras <- ras$crop(...
-1
votes
1answer
21 views

Working with Raster data/DEM (mosaic to new raster, viewshed) in ArcGIS Desktop?

I'm trying to work with raster data from this source: http://www.soest.hawaii.edu/coasts/data/maui/index.html I downloaded the DEMs from different islands and imported them into ArcGIS. But I can't ...
0
votes
1answer
18 views

Using compareRaster (rasters): different extent? [on hold]

In R I'm trying to make a RasterStack of RasterLayers, they all have the same format, the only difference is that one of them is a solo raster and the others are bioclimatic variables. The soil layer ...
1
vote
1answer
26 views

Invert legend values for raster in QGIS 3.4.6

The legend in the TOC for a raster layer ( > 1 million cells with continuous data) in my view might look like this: The values go from low (above) to high (down). Is there a way to show the values ...
-1
votes
0answers
11 views

How to make an Excel sheet from TIF raster layers using QGIS? [on hold]

In this file you will find how a midterm grades were announced to students so every student could get his grade using his section no and bench no.. The midterm contained Q1 which was 50 MCQ and every ...
0
votes
2answers
34 views

Converting raster pixels to vector cells?

Is there any way to convert raster pixels to vector cells? I mean each pixel to a polygon. I tried the SAGA tool 'Raster values to points' by choosing cells option instead of nodes option. As a ...
0
votes
0answers
22 views

Moving .pdf as a raster freely without referencing

If I import a .pdf as a new raster layer, but the referencing is off. Is there a tool in QGIS to grab and hold on to the pdf so i can move it freely to my desired location without having to worry ...
0
votes
1answer
23 views

ERROR 000732: Output Location: Dataset results does not exist or is not supported?

I'm trying to use MosaicToNewRaster but a lot of errors are appears. One of them is: ERROR 000732: Output Location: Dataset results does not exist or is not supported My code is: import ...
1
vote
0answers
23 views

Adding Raster Layer to CURRENT Map in ArcPy of ArcGIS Pro?

I am updating some ArcGIS toolboxes that contain python scripts to ArcGIS Pro. In many of them, I add the geoprocessing results to the map and symbolizes the layer for future processing (these are ...
1
vote
0answers
27 views

How to convert 32-bit raster to double precision?

I have a raster that is currently 32-bit float, but need to convert it to a data type of Double Precision in order for it hold larger values within each cell (I'm doing some calculations). How can ...
0
votes
0answers
15 views

Raster layer not clipping to polygon boundary and yielding block extent in ArcMap?

I am using ArcMap. I want to graphically display my NDVI distribution, but I had to convert my NDVI raster layer from continuous values to integer in order to view the attribute table (I used the ...
1
vote
0answers
32 views

Create mask layer from paletted raster

I have QGIS 2.18. I have the ground truth of land type for France. That is a paletted raster (i think.. i'm new and maybe it is not the correct word) I loaded a style.qml file for this raster and I ...
0
votes
0answers
16 views

Convert Raster to grid in order to open it in Excel

I have 2 raster files and I want to nalyse the correlation between values in the two layers , So I want to convert raster files to grids/arrays so as to run an analytical algorithm on them like PCA ...
0
votes
0answers
17 views

Clipping raster to fit smaller one using QGIS? [duplicate]

I have a classificaton map of the France vegetation and i want to clip it to fit with my Sentinel-2 tile. How can I do that with QGIS?
0
votes
1answer
16 views

Making raster histogram excluding zeros in R?

In R, can I make a histogram of all the non-zero values in my raster? Some reproducible data below. I just want the histogram to be made with the zeros. Happy with a way to do that, or I guess to ...
0
votes
0answers
12 views

Convert DXF file to RasterLayer

I am an R user and have a .dwg file of city buildings that I wish to transform into a RasterLayer using the heights as elevation data. The metadata for the DXF file states: DXF File Metadata: ...
1
vote
1answer
32 views

Load ASCII rasters in QGIS as singleband pseudocolor by default

I'm loading over 400 ASCII rasters into QGIS. They all get displayed as 'singleband grey' by default. Is there a way to change the style to 'singleband pseudocolor' by default? I also want to set the ...
0
votes
0answers
19 views

Min/Max values of raster change after converting Int to Float [on hold]

I have a raster of integer height values which I need to convert from cm to m. When I convert the data to float values (using Map Algebra in ArcMap), the Min/Max values change from -6198/4270 to -6447/...
0
votes
0answers
9 views

gdal.ComputeProximity always returns 0-value raster

I try to create a raster layer with the smallest distance to cells with targeted value so I use gdal.ComputeProximity(). But I must do something wrong because my output raster contains only 0 values. ...
0
votes
1answer
14 views

Batch processing of GDAL clip function

When I am trying to batch process GDAL clipping in QGIS 2.18 with 30 raster files I get the following Error: GDAL command output: ERROR 1: Cannot compute bounding box of cutline. My ...
0
votes
0answers
36 views

Creating memory layer with .png image using PyQGIS?

In Aligning Raster and vector layer using PyQGIS when they do not match?, someone gave a solution for creating a point memory layer to correctly align a raster image with a vector. I am wondering ...
2
votes
1answer
35 views

Extract areas with certain pixel values from raster

I have land cover data from GEE (https://developers.google.com/earth-engine/datasets/catalog/ESA_GLOBCOVER_L4_200901_200912_V2_3) for specific countries. I would like to extract the values from the ...
1
vote
1answer
20 views

Add layer to RasterBrick R

I have a RasterBrick and I am trying to add new layers to it, (with addLayer) but every time I try I receive the following message: Error in sapply(x, fromDisk) & sapply(x, inMemory) : ...
0
votes
0answers
15 views

Combining Bathymetric and Elevation Data using R?

Here is some elevation data of some islands. I wish to add depth info to the water. With the generous help of @Spacedman at Overlaying elevation data and bathymetry data in R I get: To resolve the ...
3
votes
1answer
22 views

netCDF raster layers not loading in QGIS

I have worked with netCDF files in QGIS before, but since I installed QGIS 3.6 they won't load ("myfile.nc" is not an admitted raster data source), nor do they load in QGIS 2.18 anymore. I find this ...
2
votes
1answer
36 views

Is there a problem with some gdal functions in Mac version of QGIS3.4?

This morning I have been trying to clip, extract, do anything with a DEM in V3.4 on a mac10.14.3 (it works fine on linux Debian). I receive an error message in the dialog box - attached and the log ...
0
votes
0answers
21 views

Make a series of maps showing different rasters

I have a set of rasters and I would like to create a series of maps, in which each page/map shows a different raster. The spatial extent is the same among all rasters. How could you achieve this in ...
1
vote
0answers
34 views

Mean function from rts package, returns empty dataset, R

I am using the rts package in R and specifically the mean function, over a a gridded climatic dataset with many NA values. When I use apply.yearly(my_rts_object,mean) all I get is an empty raster ...
2
votes
0answers
21 views

Setting transparent to color for raster layer using ArcMap?

I'm working on a map where I'm overlaying a topographic map on a hillshade map (from ALS data). With the right levels of transparency, those maps tend to be the best base for all kinds of stuff. ...
1
vote
0answers
15 views

How to return output a raster layer in a custom processing script in Pyqgis

I've written a couple of custom scripts for vector shapefiles by following the template provided in QGIS. I am now trying to write a script which will use gdal algorithms to process layers. I have ...
0
votes
0answers
9 views

Publish Folder of Raster Tiles to ArcGIS Server

ESRI ArcGIS Enterprise/Server Question can I publish folder Raster PNG Tiles (zoom level folder, column folder, row.png) (XYZ Tiling Schema) to ArcGIS Enterprise/Server? if it requires TPK or Compact ...
0
votes
0answers
9 views

gdal_merge adds black borders

I'm using gdal_merge.py to merge a few GeoTIFF's into a GeoPackage. The source files are UTM33 projection, 3 bands (RGB) without Nodata tags. They make up a non-rectangular mosaic, so gdal_merge ...
1
vote
1answer
20 views

Why is raster boundary rectangular, not buffer?

First, I took very few points and did IDW and i got a circular boundary raster. This is because of the search radius i applied. If that is the case, for large number of points, the raster must look ...
1
vote
1answer
37 views

Overlaying elevation data and bathymetry data in R?

I have two layers that cover approximately, but not exactly, the same area. One is land elevation of some islands. The other is the depth of the water around the islands. I can resolve the vertical ...
1
vote
0answers
78 views

PyQGIS raster image shifted from vector shapefile

I previously asked a question about my raster image being larger and shifted over from my vector image here, but now I realize that the raster image is only shifted to the left and up from the vector ...
0
votes
0answers
21 views

Generating VRT in batch at GDAL

Is there any way to generate a virtual batch (.vrt) in batch? I imagine the coordinates should be in a .txt file and related to the name of the images that will be cropped. There are more than 1,000 ...
2
votes
0answers
36 views

Georeferencing multiple images as GeoTIFF (same size and extents) in QGIS

I have 50 images and I want to georeference them all on to the exactly same place. They have all the exactly same size and extends. I've begun to load the same georeferencing points for every single ...
-1
votes
1answer
21 views

Clip a raster based on the extent of another raster in ArcMap

I need to clip a raster to extract only the surface in common with another raster. How can I do that in ArcMap?
2
votes
1answer
29 views

Batch Raster Calculator

Newbie, tasked with something I think can be done this way, but not sure how to get it to work. It seems quite simple. I want to subtract a sequence of rasters (daily data): one day from the previous....
1
vote
1answer
25 views

Writing numpy arrays to irregularly shaped, multiband raster

I have the following numpy arrays: predictions; type is float32; shape: (94, 1461) lats; float32; shape: (94,); centroid of cell in vector layer, decimal degs. lons; float32; shape: (94,); centroid ...