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 [raster]

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

0
votes
0answers
12 views

Raster and Vector don't match in the same CRS [on hold]

I have a raster file: WGS 84 and a vector file: WGS 84. When I load these files they don't match. I also tried to reproject them in a different CRS: Stereo70, using Save as: function. Even so, they ...
1
vote
0answers
22 views

How to use Custom Transparency band for an elevation raster - QGIS3

I would like to set a raster transparency to represent its elevation, so that the mountain tops are opaque and gradually become transparent toward their foot. On the Layer Properties - Transparency ...
0
votes
0answers
14 views

Convert NetCDF(.nc) (TROPOMI Sentinel-5p) to GeoTIFF (GDAL, GRASS)

I tried converting NetCDF (Sentinel-5p) file to GeoTIFF file but I'm getting: D:\>gdalinfo 20181119T121048.nc Warning 1: Recode from UTF-8 to CP_ACP failed with the error: "Invalid argument". ...
0
votes
1answer
54 views

How to remove the extra extent of a raster?

I recently did a rasterize in QGIS with our city map (which I clipped from the whole country map before) to produce the first map. Now I need to do the connectivity analysis in another software so I ...
0
votes
0answers
19 views

Combining 3000 rasters and keeping their values using ArcMap

I have 3000 rasters (counties in the US) with two values in each one (number of pixels for two groups). I would like to join them all to create a mosaic so that I can easily just export one table for ...
0
votes
0answers
13 views

ZeroDivisionError: float division by zero when using rasterio zonal_stats and geopandas?

What I am trying to here is extract out different area totals for various land cover types given a vector (US census data) and raster (image of mMassachusetts) file of Massachusetts. But every time I ...
2
votes
0answers
21 views

WhiteboxTools returns nan rasters when lee filtering large radarsat images

I am attempting to run the following code from WhiteboxTools: .\whitebox_tools.exe --run="LeeFilter" --input='imagery_HV_orig.tif' --output='imagery_HV_filtr.tif' --filterx=5 --filtery=5 --sigma=10.0 ...
0
votes
1answer
51 views

Why does the raster calculator only give out 1 and 0 values

I have a problem with the raster calculator of ArcMap 10.5.1 because it only gives out a raster with 0 an 1 values. I'd like to calculate the Leaf Area Index out of a NDVI-Raster by using this ...
0
votes
0answers
14 views

Sentinel 2 images + GEE

I am a new user of GEE. I am trying to compute a monthly sentinel 2 image of 2017. I need to get a simgle image of every month of 2017 with ('B3', 'B2', 'B4', 'B8A', 'B7') bounds.
0
votes
0answers
24 views

Exporting Monthly Medians in Google Earth Engine

I am attempting to export the GeoTiffs created with the .js code below but it is not working. Each time I run the script and execute the export task I get the error A region must be a GeoJSON ...
1
vote
2answers
26 views

Assign CRS and project a raster, file .grd output of CALPOST, in R

I have the following file.grd with the content shown below. This file is an output of the program CALPOST, which reads the outputs of the program CALPUFF. I can read the file.grd using R and raster: ...
0
votes
0answers
19 views

Delete some dates from axis x ggplot2 [on hold]

I am trying to plot my data.frame, date in x and mean value in y The problem is that I don't have years 2002, 2004 2005 in my data frame, but I need to plot just years 2000 and 2006 I'm trying ...
0
votes
0answers
12 views

Transform TIFF file to be able to use Pydem

Using Anaconda Python 2.7 juypter gdal pydem in Windows I wanted to learn to do basic slope calculation. I was given a TIFF that was UTM zone 55, it covers a small area in Qld Australia. Planning ...
0
votes
1answer
28 views

Loading all rasters in a directory and naming the variables iteratively

Hi I'm working with prism data and I already have clipped (masked) rasters (*.bil files) of a specific area for each day of a year. I'd like to open all these rasters with rasterio, convert them into ...
1
vote
1answer
14 views

d.rast.edit not yet implemented in the WxGUI

Am using GRASS to modify a raster and tried using d.rast.edit but am getting the following error when using it in the WxGUI Command 'd.rast.edit' not yet implemented in the WxGUI. Try adding it as a ...
1
vote
0answers
13 views

GeoServer ImageMosaic coming out blank with overlapping images [solved]

I'm trying to combine multiple "strips" of imagery into a single mosaic. Each of these strips is composed of many .tif files, and I have a directory with multiple subdirectories, each which contains ...
0
votes
0answers
9 views

Non-visibility of .ECD file in ArcMap using Random Trees Classifier

I have been using the Random Trees (RT) algorithm in ArcMap 10.6 for classifying some Landsat raster imagery. I have the training data file which I input into the Train RT Classifier to produce the ....
0
votes
0answers
17 views

Unable to stack downloaded layers in R [closed]

I have downloaded images of Landsat. Unzipped them and need to stack them to further process the images for lulc... How do I proceed? Also I have a stacked layer in .img format done in Erdas imagine....
0
votes
0answers
13 views

Zonal Geometry, raster calculator [closed]

I have created region group raster and used this as the input to the zonal geometry too. The output raster I used as the input to raster calculator. I need to only show regions that are greater than ...
0
votes
0answers
20 views

Generating TIN from features in ArcGIS Desktop?

I am changing surface in some parts of area I use for project. To do that I draw polygons and add elevation to vertices using "Interpolate shape". Then I create TIN for edited parts of terrain. Next, ...
1
vote
1answer
34 views

QGIS raster color selection

I'm working with a raster map that looks like this: Do you know any way to select the red/blue spots or ideally put a points on them? I've been browsing web and qgis help for a while now, but I haven'...
0
votes
0answers
10 views

Understanding raster alignment and clip extent of output rasters? [closed]

I have several DTMs of different resolutions and different extents. I want to combine all rasters (hence keeping the overall extent) and align them with the resolution of the coarsest one. I have one ...
0
votes
2answers
36 views

Zooming in on raster file in R

I used the nsidcICE function located here: https://github.com/cran/raster/blob/master/R/nsidcICE.R and the following code to open a sea ice raster file. However, I would like to overlap vector points ...
0
votes
1answer
45 views

Adding xy data to ArcGIS Desktop and converting it to grid that is clippable?

I have an Excel file with x, y coordinates (lat, lon) and also a value column for my index of interest. I added the data using file->Add data->Add xy data Then I want to produce a 'grid' of this ...
0
votes
2answers
61 views

Save WMS layer to TIFF raster

In QGIS, I have a WMS layer. I am saving it to my hard drive by right click > "Save As...". Just like in HDunn's answer here. This is about my understanding of the topic, already this code is strange ...
0
votes
1answer
16 views

Count number of layers in a stack with value equal to raster pixel value

I would like to count number of layers in a stack with value equal to raster pixel value. Here is my current try: r1 <- calc(s, fun=function(x){sum(x == r)}) I get two errors Error in FUN(newX[, ...
1
vote
1answer
62 views

GDAL doesn't create contours for the whole raster

The contour algorithm in QGIS doesn't create all of the contour lines. I've attached a screenshot of my raster layer below and the parameters I used. The raster ranges from 40-90 in value, spreading ...
0
votes
0answers
29 views

Calculating area, Region Group

I am trying to locate a sheep farm on my map, which is a final exclusion layer calculated from 5 different binary exclusion layers. Most of the map is red - i.e. I cannot place a sheep farm here. ...
0
votes
0answers
26 views

Raster clip displays incorrect colors

I have a raster .tif image from a third party showing nighttime lighting intensity. I noticed when importing the file that under Properties>Symbology>RGB Composite>Stretch, I had to change the stretch ...
1
vote
1answer
26 views

Extracting list of coordinates of all pixels in neighborhood of given pixel in R

I have a Raster layer. I want to get coordinates of all pixels in neighborhood (for example 7*7) of given pixel. Is there any function available to do this in R?
0
votes
1answer
40 views

Raster extract function problem [closed]

I used to run the extract function from raster package without any problem. However, recently I receive an error message and it does not work for me. When I run the extract function to extract stacked ...
1
vote
0answers
20 views

How do I set the connectivity between cells in a raster [closed]

I am trying to follow the methodology of Poulter 2008 for raster modelling of coastal flooding due to sea level rise paper found here He shows quite dramatic differences in flooding area due to the ...
0
votes
1answer
35 views

How to calculate the area of several classes of a raster in a polygon of a vector file with QGIS?

I have some trouble with QGIS I have two layers of information: The first one a vector that contains 500 objects, with attributes such as number of population, and... A raster that has three classes:...
0
votes
1answer
27 views

How to convert vector format (geopackage, shapefile) to raster format (geotiff) using rasterio without template raster

I'm looking to create a raster given just a geopackage (or shapefile, or other vector format). I don't have a template raster, and all I wish to do is burn the shapes into a raster using rasterio. ...
1
vote
0answers
40 views

Dividing a large raster into blocks for iteration in R

I have very big rasters for processing (#pixels >1,5*10^10) for this project I am working on. Simple functions such as finding the area of a pixels with a particular value, across the entire raster 1) ...
1
vote
0answers
8 views

How to calculate an incidence angle raster for a radarsat 2 scene using gdal / python?

I want to make a raster band that gives the incidence angle for each pixel in a radarsat-2 scene. I know this is possible using the information given in the product.xml file (below), but I'm not ...
1
vote
0answers
27 views

Transfering color style from one raster to other rasters using QGIS?

I have a raster set and I need to classify them using the "pseudo color singleband" with "RdYlGn". What I'm trying to do is classify a raster and copy the style to the others, but it does not work ...
1
vote
1answer
24 views

Mapserver not displaying a raster properly

I have a 32bit floating point raster containing only five values (-2, -1, 0, 1, 2 + -999000000 for noData don't ask me why, it was delivered to me), no compression, projected (EPSG:3857). I am using ...
1
vote
0answers
20 views

Iterate rasters > create bounds > truncate names

I'm using ArcGIS Pro 2.2 ModelBuilder. I'd like to Iterate a large number of rasters (.tifs) and create boundary files (polygons) for each of the rasters. I'm using ModelBuilder and running into ...
2
votes
0answers
16 views

QGIS 3.2 Raster Histogram frequency axis always locked at 1

Question is pretty much in the title: Whenever I go to layer properties and generate a histogram for a raster the frequency axis of the histogram is capped at 1. So for say a multi-band image I see ...
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 ...
5
votes
1answer
59 views

Choosing Topographic Wetness Index or Flow Accumulation raster?

What is the better raster to use qualitatively - Topographic Wetness Index or Flow Accumulation - to clearly see potential areas of surface flow/wetness across a landscape? As an example, what's "...
0
votes
1answer
18 views

Performing Intersect of polygon with raster, retaining ID of polygons? [closed]

I have a raster data set of land cover and a set of residential addresses (points). I want to find out what percentage of each land cover type is within 1km of each address (i.e. in a 1km buffer ...
0
votes
0answers
23 views

Converting to raster removes country boundary?

I used the buffer tool to create a 100 mile circular buffer around a city. I then used the polygon to raster tool to convert this shapefile into a raster file and created a binary raster using the ...
0
votes
0answers
14 views

Understanding Raster Calculator Error 000539?

I tried to convert a float raster into polygons follwing the manual of Esri support (https://support.esri.com/en/technical-article/000012554). In the first step it says that you need to multiply your ...
2
votes
0answers
43 views

QGIS 3.4.2 not loading .tif files correctly

I have a surface which has been exported from Civil3D and added to both QGIS 2.18 and 3.4.2 When added they both look very different and the imported image and values in 3.4.2 is not very helpful in ...
2
votes
2answers
99 views

Producing offset after georeferencing Soviet topographical military maps from printed control point coordinates in QGIS

I have 'acquired' a collection of scans of (previously top-secret) Soviet-era military topographical maps at a set of 1:25.000. I want to georeference a set of these scans. I know the coordinate ...
0
votes
1answer
16 views

Land use map to binary exclusion layer

I have a map (raster, tif file) with 7 land use classifications and 6 colors representing each classification. The 7 classifications are Land use 1 Land use 2 Land use 3 Land use 4 Land use 5 ...
1
vote
1answer
32 views

c# - Using GDAL to read raster is producing array of incorect values

I am using c# GDAL bindings in attempts to read raster values and preform fairly simple calculations. In summary, I would like to get the mean of the values and then get the sum of values below the ...
-1
votes
0answers
16 views

Remove box around clipped raster layer

I used the mosaic to raster tool to form one large raster of the study area. I clipped the boundary of the study area to this raster But there is now a rectangular box outside the boundary that I ...