Questions tagged [masking]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
3answers
5k views

Changing raster cell values within a polygon using QGIS GUI?

I would like to know how to change the values of raster cells which are within a polygon, leaving all cell values outside the polygon unchanged. I would like to subtract 1.5m from each raster cell ...
0
votes
1answer
17 views

Give non-overlapping parts of 2 rasters a value 0 (QGIS)

Is there a way in QGIS to give non-overlapping parts of 2 rasters a value of 0 in the new raster file? I would like the data gaps in the velocity file (so where Ice mask is displayed on the chart) ...
1
vote
1answer
28 views

QGIS: Clip Raster by Mask Layer-permanently remove black edges

I want to introduce geotiff images generated in QGIS by clipping ortho imagery to a shapefile into matlab. However, the clipped raster images come with black borders. I managed to remove them in QGIS (...
7
votes
3answers
8k views

Turn a shapefile into a mask and calculate the mean?

I have been using Python to process huge arrays stored as NetCDF files. I would like to calculate the mean of an area defined by a shapefile. I have just installed GDAL but if there are other tools I ...
1
vote
0answers
14 views

Mask out areas inside a feature collection on Google Earth Engine

I am quite new to javascript and I am trying to apply a mask on an image to exclude areas inside a feature collection, I have seen that for the case of image collections the "mask" and "mask.not" ...
0
votes
1answer
314 views

Apply a mask to multiple images(for same geo location) in a image collection

I have a image collection which holds multiple images of the same area. I can apply mask individually to those images but how do I apply a mask to all the images in the collection. Say the mask i have ...
2
votes
1answer
710 views

Raster topo map “collars” overlapping?

I am using QGIS 2.0. I have downloaded USGS 1:100,000 topographic maps which show adjacent areas. The topographic maps were digitized with the borders (I've seen them called "collars", I think) as ...
1
vote
1answer
44 views

Masking using two sliders on Google Earth Engine

I am trying to apply a mask based on two conditions (elevation and MNDWI), however, I don't find a way to integrate the two conditions using sliders, which would update the map when any of the sliders ...
3
votes
1answer
121 views

Masking LiDAR points to create DEM in ArcGIS Pro with ArcPy?

I have an irregular LiDAR point cloud dataset, so when I try to create a DEM or DSM, the points are connected across the irregular edges of the LiDAR point cloud. I thought that creating a mask ...
1
vote
1answer
43 views

Perform Fragstats-like analyses around a defined radius of multiple points with overlapping buffers on raster file [closed]

I'm trying to do patch analyses (similar to those available on Fragstats) on NLCD landscape data (raster data). I have about 2000 points all over the state of NY. My plan is to: 1) create a 100 ...
0
votes
1answer
48 views

R: mask a raster by a polygon also keep cells partially covered [duplicate]

I want to mask a raster by a polygon, the R script was as followed. However, some cells with only partially covered weren't included in the masked raster as listed in the picture link (https://drive....
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
0answers
16 views

Removing clouds in Landsat 5 TM Collection 1 Tier 1 TOA Reflectance image

I am trying to remove the clouds from my image but when I try to run the masked layer seems to be error. Is there any solution how to remove the clouds or solve the issue. The link is: https://code....
1
vote
1answer
43 views

Google Earth Engine: Masking land out of Sentinel-3 imagery

I'm trying to isolate ocean cover from OLCI imagery using a bitmask from the quality_flags band. But it's masking all the pixels, and I notice when I mask the ocean and leave the land, the land is ...
0
votes
1answer
30 views

Create mask for each layer of time-series raster in R

I'm trying to create a mask using each layer of my stacked Pixel Reliability QA rasters in R. I'm trying to exclude pixels with values greater than 1. I will use them to mask my vegetation index time-...
2
votes
1answer
299 views

Setting masked pixel value in Google Earth Engine image export?

I'm using Earth Engine to preprocess and download some NDVI data. I used a region of interest to clip the imagery to a geometry, and values from the Summary QA layer to mask out pixels that were of ...
0
votes
0answers
66 views

Clipping raster by feature using GDAL in QGIS?

I have successfully selected the feature from a shapefile (boundary) and intend to use this as a mask to clip the raster map underneath. However, having followed instructions when I open the GDAL > ...
1
vote
1answer
80 views

Mask water bodies in GEE

I'm trying to to detect changes in land surface over few periods in a specific polygon. The problem is that I want to block water bodies from my calculations. How can I do it? This is the code I ...
0
votes
1answer
137 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 ...
1
vote
1answer
71 views

Overlapping multiple images with cloud masked?

I am now using fmask algorithm to eliminate the cloud covered areas on Landsat images. I choose a period of time (Jan 1st 2017 to Dec 31st 2017), and selected the study area (Florida). I want to get ...
1
vote
1answer
46 views

Uploading polygons and masking pixels inside the polygons using Google Earth Engine?

I am working on a classification problem on agricultural fields. To make things easier, I first identified road, cities, water, fields, and etc. I am planning to eliminate road, cities, and water out ...
5
votes
4answers
14k views

Deleting polygon defined area from raster layer in ArcGIS Desktop?

Which tool do I use in ArcGIS 10.1 for Desktop to exclude areas covered by vector polygon layers from a raster layer? I want to keep portions of the raster layers that exclude the portions covered ...
0
votes
1answer
21 views

How to mask an area in ArcMap and run supervised classification on unmasked area?

I would like to just run supervised classification on my area of interest (all along the coastlines) and would like to know how to do this in ArcMap. I have created a polygon to mask out the area out ...
1
vote
0answers
29 views

Is there a way to interpolate lost data/lost pixels caused by cloud and cloud shadow masks in Google Earth Engine? [duplicate]

I'm sure cloud and cloud shadows have been, time and time again, a frustrating problem. Usually after masking the two, I composite multiple images (in a set time interval e.g. 2015-2016, months 6-8) ...
2
votes
1answer
65 views

Reducing file size by not storing no-data points

I have to compute sea wave forecast for large period of time. Land information is of no use here. Is there any file format that allows to not store no-data/fill values for land area to reduce file ...
0
votes
1answer
79 views

ENVI 5.1 - ANN Classification - Background was classified into one of the class

I'm new to Remote Sensing and I'm having trouble in ENVI 5.1 where the background was classified as one of the classes in the ROI I used, which is not right. How can I exclude the background or at ...
1
vote
0answers
52 views

Filtering anomalous pixels from masked raster in Python?

I am struggling to succesfully filter out anomalous pixels from a Sentinel-1 image band mask (Pixel based), produced in Python. I am new to Python. By anomalies, in this situation, I mean ...
1
vote
1answer
79 views

Google Earth Engine Mask application

I'm using GEE in order to extract evapotranspiration (ET) data from MODIS (MOD16A2v6). I want to extract only ET band in order to make some further process. To do so, I apply some filters (like ...
1
vote
0answers
46 views

Why did not I manage to reproject layer?

I have a global land cover map, which has the following properties: Name ESACCI-LC-L4-LCCS-Map-300m-P5Y-2010-v1.6.1 Path C:\QGIS\ESACCI-LC-L4-LCCS-Map-300m-P5Y-2010-v1.6.1.tif\ESACCI-LC-L4-LCCS-...
0
votes
0answers
14 views

Why the Masking in ENVI does not give different statistical result

I want to run statistical band correlation of an image in ENVI. The image has been masked with polygon of interest, and shows no-data value outside the polygon. I expected that it calculated only the ...
1
vote
1answer
90 views

Get pixel values from a raster using a multipartpolygon

I'm trying to get the mean value of pixels from an NDVI raster, that intersect the geometry of a FeatureCollection, that is a multipart polygon which represents my sample area, but I can't find the ...
3
votes
1answer
93 views

Creating water and vegetation mask via image collection?

I am a Java script and EE novice but I'm already a great fan of Google Earth Engine. I am simply trying to create a single NDVI and NDWI masked layer to work on. Below you'll find my Frankenstein of a ...
2
votes
1answer
45 views

Replacing masked cloud areas with another satellite image?

I have various Landsat images of which many are cloudy. Using the cloud masking plugin available in QGIS, I was able to identify and remove the areas with cloud and cloud shadows from every image. ...
1
vote
0answers
56 views

Raster masking with vector error in QGIS 3.6

I have a global glc-2000 raster map. I would like to clip it to study specific area. I used boundries of continents shapefile as mask. Both of them have same projection. Since I am beginner I have ...
4
votes
2answers
202 views

Masking layers by a vector polygon layer in QGIS

I have a vector layer of buildings: and a polygon layer coloured by some quantity: and I want to mask one by the other to produce this: This can be done by setting the blend mode to "Multiply" with ...
1
vote
1answer
23 views

Trouble with masking

I am trying to mask out a section of an image I created with an algorithm. I create a geometry of the section I want to mask out and clipped that with an image of 1's to create my mask image. But when ...
5
votes
3answers
6k 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
26 views

Performing localized raster edits using ArcGIS Spatial Analyst?

I have a raster image of water depth, float point values 1-15, in a very small area some erroneous values are in the raster with values of 100 - 375. I'm looking for a repeatable work flow in ArcMap ...
1
vote
2answers
90 views

Visibility analysis with mask for non visible areas?

I have LiDAR data and I've made a Digital Surface Model (DSM): I've made a visibility analysis for 3 buildings with this model: My goal is to know from where the buildings are visible, not what do ...
3
votes
1answer
3k views

Sentinel Cloud-free Collection Google Earth Engine Code Editor

I am trying to create and map an image collection (not image or mosaic if that is even possible), where QA60 defines the Cloud-mask. I have written the code below - however, it seems the Jan2016 ...
0
votes
0answers
46 views

Missing raster data from masking with a spatial polygon layer in R

I am fairly new in R and I am trying to create a new raster by using a spatial polygon layer. I have the code written by using the mask function and the output is essentially what I want, but I'm ...
2
votes
1answer
54 views

How I get the masking area data and export data in Google Earth Engine?

Here is my code in GEE: var CO = ee.ImageCollection('COPERNICUS/S5P/OFFL/L3_CO') .filterDate('2018-07-04', '2018-07-05') .select("CO_column_number_density"); var CO_merged = CO....
0
votes
0answers
42 views

How to mask a raster layer (interpolated surface) onto a polygon layer? [duplicate]

I have performed interpolation (IDW) for average monthly precipitation and temperature values for Europe. For my project, I'm focusing on the UK and Sweden so I'm wondering can I clip or mask the ...
2
votes
0answers
132 views

Sentinel 3 Cloud Masking in Google Earth Engine

I am new to GEE and I wanted to use this as part of my research. My first step was to mask the clouds off the images. The code i created basically mask out pixels based on the Quality Flag Bit 27, ...
0
votes
0answers
67 views

Function to remove borders and clouds from SENTINEL2

I've been trying to test SENTINEL, and found some functions to clean the clouds and edges of the images, but I do not understand exactly how this function works, and I'm very curious to understand ...
0
votes
0answers
101 views

How delete delete or mask nodata 0 value in the mask

I have raster (with 5 bands) and shapfile in the same projection. I do this script for rastersize and do mask and clip raster or crop raster with mask but I need to have just clip raster without black ...
3
votes
0answers
179 views

Writing masked GeoTIFF in rasterio and visualizing in QGIS?

I have an interpolated raster, which is a masked array, that shows where the data is valid. I want to save it as masked TIFF with rasterio. To test, here's the JSON file, and the code: import ...
1
vote
1answer
187 views

Draw a mask on a TIFF file

I have a raster (TIFF file) and I would like to draw a mask on it. So, I basically create a shapefile and draw polygons on the area I wanted to mask. Then, I would like to rasterize this shapefile by ...
1
vote
2answers
574 views

Rasterio error: Input shapes do not overlap raster but reprojection not working

I'm trying to use rasterio (v1.0.13) and fiona to perform a raster clip on a geotiff using a geojson polygon. For reference, the clip works perfectly from the command line using GDAL: gdalwarp -...
0
votes
1answer
120 views

Google Earth Engine: Problem with the updateMask function

I'm trying to use the updateMask function in GEE but I'm not quite sure how to use it in this occasion. So i did a trend analysis with formaTrend() to analyze the loss of forest cover in an area: ...