Questions tagged [masking]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
3answers
174 views

Calculate statistics for certain areas of a raster [closed]

I want to calculate the value of certain areas of my raster, which are determined by a polygon layer. I can't use the zonal statistics tool, I receive an error about inputs. How should I do it?(the ...
1
vote
0answers
106 views

Applying mask to 40 Landsat images on ENVI?

I'm new to ENVI and am working on a time series for a section of the Santa Barbara Channel. I have a mask I made from the ROI tool, but was wondering if there is an efficient way to mask all 40 of ...
1
vote
0answers
64 views

How to use raster extract/clip raster in Qgis?

In arcgis, raster like a shp file, could extract another raster.But in Qgis,Raster->Extraction-clip, the mask file must be shp file. My mask raster are compound of many adjacent cells. If converted ...
0
votes
1answer
149 views

Land masking in ArcGIS Raster Calculator?

I'm trying to mask land in a raster and just wondering if anyone knows how to do this. I tried using the raster calculator by producing a new raster based on a threshold value but my output raster is ...
3
votes
2answers
796 views

Apply water mask to a raster layer

I have a vector polygon layer which represents water bodies and I have a raster layer (250m pixel NDVI values). What I need is to mask all pixels in a raster layer that intersect my water mask and ...
10
votes
2answers
501 views

Styling specific layer by using polygon mask in QGIS?

I have a line layer and a polygon layer in QGIS: I would like to style the part of the line layer outside the polygon using one style and the part inside using a different style: I don't want to ...
1
vote
1answer
73 views

Fill values beyond the mask

I have some .tif raster and .shp mask, and I need to fill values in the raster, which are beyond the mask, with -999. How can I do this using QGIS?
1
vote
0answers
425 views

Cloud masking of Sentinel-2 product using SNAP [closed]

I am using Sentinel-2 images in tropical region where almost all image contains clouds which needs to be masked out. What is the best way to remove the clouds from the image in all the bands, is SNAP ...
5
votes
1answer
4k views

rasterio masking with GeoJSON from file issue

I'm trying to load GeoJSON from a file for use with rasterio mask on a GeoTIFF and I can't seem to get the GeoJSON to load properly. I get this error: File "/Users/user/example.py", line 18, in clip ...
2
votes
2answers
230 views

how to Replace masked out cloud areas with another satellite image?

I have a Sentinel 2 image which has heavy cloud cover. I would like to mask out the clouds, and replace these areas with a Landsat 8 image. (1) How do I mask out cloud? (2) how to I replace the ...
0
votes
1answer
154 views

Can a mask layer filter out color, rendering the area covered by the mask into grayscale?

Here I have a transparent mask layer which highlights an area of interest by making the basemap outside the area of interest a lighter color. What I'd like to do is have the masking layer change the ...
1
vote
0answers
250 views

Interpolating (kriging) in ArcMap?

I would like to interpolate with kriging data points from one shapefile that should fill out the Space of another shapefile i am using as a boundary. I have set this boundary under Geoprocessing --> ...
3
votes
1answer
223 views

Including use of Mask in Raster > Vector conversion in QGIS

The Polygonize (raster to vector) tool in QGIS Raster > Conversion menu allows for the use of a mask, however this option is not available in the Processing Modeler. What would be the best way to ...
2
votes
1answer
760 views

Using the same mask on two rasters, but I get different extents in R

I loaded a shapefile in R, and cropped and masked it with the same mask, but I get different extents. Any suggestions? Code below: library(raster) library(rgdal) library(GISTools) library(sp) ...
3
votes
1answer
2k views

Apply cloud mask to sentinel 2 image in SNAP

I want to apply one of the cloud masks in the sentinel 2 file to the sentinel image. The sentinel 2 image I have downloaded features files concerning cirrus and opaque clouds at 10m, 20m and 60m. ...
0
votes
1answer
1k views

Building Masks (0-1 binary image) out of ROIs in Envi Classic?

I have the following 701x551 image in Envi with the shown raster ROIs (By pressing pixelbutton of ROI Tooldialogue window, I've converted the ROIs into raster format but I have access to ROI vectors ...
1
vote
1answer
457 views

Proper Mask functionality

Is there a way to specify a feature of a shapefile or all features within a shapefile to serve as masking features for all other layers within a qgis project? I would like to crop all other features ...
4
votes
1answer
441 views

Associating country to grid cell in R?

I’m trying to solve the following problem. I have a regular grid of points covering Europe nx <- 361 ; ny <- 181 xmin <- -30.0 ; ymin <- 25.0 dx <- 0.25 ; dy <- 0.25 lat <- ...
2
votes
0answers
226 views

Masking casing/outline of line feature (road) within ArcMap? [closed]

I need to mask just the black outline/casing of road features in my map. Here is an example below. I do not want to mask the entire road as seen here but instead just the black lines on each side of ...
4
votes
1answer
591 views

Lapply function on raster iterating through SPDF polygons in R

I have a raster DTM and a SPDF. I'd need to mask a different elevation interval of the DTM within each overlaid polygon. I tried a for loop to iterate through the polygons, but as one might expect ...
1
vote
0answers
127 views

Use WMTS as a mask to clip a polygon in QGIS

I have loaded a WMTS layer. But when I carry out some raster geo-algorithms nothing shows up in the drop down table (i.e. I can't use the raster layer as an input object). How do I make it possible ...
5
votes
3answers
7k views

Remove NA from Raster Layer

I have a RasterLayer and a SpatialPolygonDataFrame. I used the mask function to create a new RasterLayer. The output is correct but it does include lot's of NA values. Now I want to get rid of ...
2
votes
1answer
327 views

How to force 1 bit GeoTiff (binary image) outputs from QGIS processing in Python console?

In a QGIS Python script I'm trying to produce raster 0/1 mask with use of procesing package. The pipeline looks like that: Create an image of index (NDSI if that matters) with numpy arrays from a ...
2
votes
1answer
438 views

Clipping raster with polygon mask but keeping outer edge cells of mask in QGIS?

In QGIS, how to clip a raster with a polygon mask, but keep the outer edge cells of the raster touching the mask? In other words: how to create a one raster cell outer buffer for the masking polygon?...
2
votes
1answer
346 views

Can't clip vector layer from a raster layer I created

I've been trying to clip an area in a raster image which I have created from an OSM. However when I fill out the raster clipping form I get the following message. Error 1: Output dataset. tif exists, ...
2
votes
1answer
37 views

How to include pixels excluded by MASK in GRASS GIS?

I have a 150km x 150km raster layer of elevation. I'm running a cell-by-cell PyGRASS script, with one step that considers all neighboring cells within a fairly large circular radius (25km). To account ...
0
votes
1answer
103 views

MODIS coastline issue

I have a few MODIS products and as I was combining my imges I realised that some of the pixels around the coastline where abit off.Is that a standard issue and if so should I use reproject or should I ...
4
votes
4answers
522 views

How to create a semi-transparent map collar in QGIS composer?

In QGIS 2.14, how can I create a semi-transparent "map collar" (white space around the outside of the page) in Composer? I imagine the map collar would be some sort of graphic shape (not a feature) ...
1
vote
1answer
529 views

masking multiband with rasterio

I have 2 multiband rasters and I want to mask some areas of one of them with values of the other one, so I write this code (I can't figure out why is not working): import os, rasterio import numpy as ...
2
votes
0answers
405 views

Geoserver Dynamic Raster Masking Based on Request Parameter

Is it possible for Geoserver to dynamically mask out values above or below a certain threshold in a WMS or WCS Geo-tiff request? For instance I make a request with some threshold parameter like 49 ...
2
votes
0answers
89 views

Rasterizing Shapefile, using other shapefile as Mask

I have a shapefile (ShapeY) of European extend and want to rasterize each time only a certain area of the shape (ShapeX) (i have the shapes indicating the prevailing extend) with python and QGis. ...
2
votes
0answers
143 views

How to mask only select layers (i.e., exclude some layers from the mask)

is there a way to create a masking layer in QGIS (2.14) that will mask only certain layers, so that some layers (such as baselayer imagery or other) will be unaffected? I'm using geometry generator ...
4
votes
1answer
788 views

Altering elevation of specific cells in raster layer of QGIS?

I'm looking to alter the height of some cells within a raster and it's been suggested that I do this by creating a polygon layer and use that as a mask to alter only the heights of cells within the ...
2
votes
0answers
96 views

Mask out values in a raster based on standard deviation [closed]

Does anyone know (in Modelbuilder or python) how I can remove any values of a raster that outside of the range of three standard deviations? I have a lot of rasters so it would be quicker than ...
0
votes
3answers
238 views

Assign Mask From Layer in SearchCursor Loop In ArcPy: Error Accessing Environment

I'm trying to run a loop based on a SearchCursor that selects layers from an input polygon and polyline. I want to select a feature from the polygon to use as a mask for running Euclidean Allocation ...
3
votes
0answers
151 views

Open source alternative to the “Contours with Barriers” Tool in ArcGIS

I am trying to create a contour file for the globe for a project and am using open source GIS software packages. I was trained for several years on ArcGIS and there is a tool to create contours with ...
1
vote
0answers
129 views

Grass i.landsat.acca says image is cloud free but it is not

I'm working on an area in Amazonia with high cloud persistance which makes global data on land cover quite useless at small scales, so I wanted to learn to process my own Landsat images, with GRASS ...
2
votes
0answers
826 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 ...
0
votes
1answer
149 views

Masking low quality raster with polygons in R gives weird overhang?

I am pretty new to R, and have been attempting to use the mask function on a raster image of 250mx250m resolution. My problem is that for some reason I am getting overhang, as there are pixels which ...
1
vote
0answers
131 views

Creating numerical mask file with elevation points of area with QGIS? [closed]

I'm using QGIS and I have to create a mask file (.txt) as an input for a hydrological model. The file should be a numerical grid map that represents the elevation points of a catchment area, like the ...
3
votes
1answer
858 views

Clipping raster file in ArcMap over the extent of polyline shape

I have a calculated raster file, overlayed on a shapefile with lines (like on figure) I would like to clip the raster in ArcMap (since it is an interpolation and out of the vector shape it is mostly ...
4
votes
1answer
1k views

How to ‘invert’ or ‘reverse’ a vector cutline when gdalwarp'ing a raster?

I have a raster of North America and I'd like to remove the larger lakes from it, replacing them with the same no-data value as the original raster. So I downloaded Natural Earth's 10 meter lakes ...
3
votes
1answer
299 views

Reclassify raster pixels underlying certain polygons using Python

I've got a shapefile with many polygons, each of which exactly overlays a contiguous region of raster cells; an example in yellow: For some of these, I want to use the polygon as a sort of analysis ...
2
votes
0answers
298 views

Creating polygons using mask layer?

I looked at this question, but it only answers part of my problem. I want to create Thiessen polygons based off of the green points within the blue polygon boundary ONLY. I've set the Processing ...
2
votes
1answer
286 views

Annotation masks disappearing

I have created annotation from the labels of a set of contour lines in ArcGIS and used Feature Outline Mask to create a mask layer in order to mask the lines using Advanced Drawing Options and make ...
1
vote
2answers
419 views

Combining several mask rasters to obtain one single mask with binary values

I have a series of separate rasters which represent the cloud cover over the same area but in different months. Each raster has 2 values: nan for "no cloud" and 255 for "cloud". What i want to do is ...
2
votes
1answer
706 views

QGIS Treat null as zero in raster calculator

In QGIS - I have an irregularly shaped raster - I wish to clip an irregular area out of it (call it raster A) with that area set to null. I masked the area (vector polygon) I want to remove and used ...
1
vote
1answer
349 views

Masking of DEM in ArcGIS Desktop?

I have a clipped DEM of my study area in ArcGIS Desktop 9.3 which I want to use for SWAT project set-up, but I need to mask it. How do I go about it? I'm new to the use of ArcGIS. I don't want to ...
0
votes
2answers
80 views

How many percentage of sea area is covered with points?

I have a large number of lat/long positions at sea for a geographical area (stored as CSV). This geographical area also contains lots of land area. I want to divide the sea area into a grid (f.ex down ...
3
votes
1answer
228 views

Landsat Surface Reflectancce product Python packages

I have to work with numerous Landsat surface reflectance product that I downloaded from http://landsat.usgs.gov/CDR_LSR.php. The product comes with a QA data with information on clouds and shadows ...