Questions tagged [masking]

Covering or hiding features on a map.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Converting shapefile to nd array masks using Python [closed]

I want to convert a shapefile(.shp) to training tiles (masks) which then can be used for deep learning. I have the following inputs: A shapefile (.shp) that has many polygons. Top-left coordinates ...
1
vote
0answers
22 views

How to get novalue data of xyz points

I have multibeam and single beam xyz points. I am looking to do the exact same process as Patch over raster A with values from raster B where raster A values are nodata in GDAL as I want to infill the ...
0
votes
0answers
26 views

How to convert binary mask to lat/lon points Google Earth Engine

I have a binary mask in Google Earth Engine made from an MNDWI raster import os import ee import geemap import matplotlib.pyplot as plt import geemap.colormaps as cm import sys os.environ["...
2
votes
1answer
36 views

Substracting a lake from my DEM using QGIS

I got a rather small DEM which includes a lake. If I want to calculate the strahler order, flowaccumulation etc. it's calculated wrong. The lake "doesnt exist" in my DEM so I got the values ...
1
vote
1answer
51 views

How to export masked MNDWI raster from Google Earth Engine

I am working with Google Earth Engine and the wonderful geemap package to export channel centerlines using Modified Normalized Difference Water Index (MNDWI; Xu, 2006). Computing the MNDWI is simple ...
0
votes
0answers
20 views

Cropping and masking rasterstack to a list of shapefiles

I have a raster stack (nlayers = 366, ncells~10 million). I am hoping to crop and mask this raster stack to a data.frame of coordinates for which I have made a series of concentric circle shapefiles ...
0
votes
0answers
11 views

Getting some blank image scenes (masked areas) in AOI when not masking

Why am I getting some blank image scenes (masked areas) in my AOI when I use this code where I did not do any masking? // Load a raw Landsat 5 ImageCollection for a single year. var collection = ee....
1
vote
2answers
89 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
1answer
14 views

Get extent error in for loop but not individiually

I am masking and cropping a rasterstack to a shapefile I made. I have done this previously with another shapefile, this is no problems. However, when I do this with this specific shapefile I get the ...
0
votes
1answer
22 views

How can I replace masked pixels by another image

How can I replace masked pixels with another image? I have two sets of images: Image_A and Image_B, each has 10 bands. I want to change the masked pixels in Image_A by the corresponding (same band, ...
0
votes
1answer
45 views

Convert mask band to binary image in google earth engine

I have created a mask band giving several band thresholds but I am unable to use this band for validation as there are no pixels outside the mask. So I would like to make a binary image with one value ...
0
votes
0answers
16 views

Random-points-from-Classification tool (EnMAP-Box plugin) - Adding mask option by python? (QGIS 3.16, Win10)

I created random-point-vector-files from a classified rasters with a given number of points per class by the Random points from Classification tool (EnMAP-Box plugin). But, now I'd like to exclude ...
0
votes
1answer
66 views

Mask fire scars across a collection of images and combine them into one singular image

I am a GEE and JavaScript novice. I am trying to calculate a specific fire index for a collection of sentinel 2 images so as to map burn scars throughout a one year period. I then want to apply a mask ...
0
votes
0answers
6 views

Raster sampling: Extracting values from multiband-raster only if no clouds at the sampling points acc. to the Quality-bit-layer (QAI) QGIS 3, Win10

I'd like to extract band values at given points out of a timeseries of tiled Sentinel2-derived 10-band-gtiffs with bottom-of-atmosphere reflectance information (BOA). On the whole there are 6 tiles, ...
1
vote
1answer
40 views

Create Binary Layer from a shapefile

I have an image Image.tif and a shapefile Water.shp (Several polygons) such that the polygons are all in the images boundaries. I want to create a binary layer such that the layer has a 1 value on the ...
1
vote
1answer
43 views

Exporting an inverted polygon in QGIS outputs a NON-inverted polygon

I am trying to export an inverted polygon layer to a GeoJSON in QGIS 3.16.1 Hannover (using same process to this) but everytime I export and save it, the output is NOT an inverted one. I'm trying to ...
1
vote
1answer
46 views

How to use MOD11A1 bitmask to select "Good Data Quality" pixels for further LST time series generation in GEE

I'm trying to generate a daily LST time series over a region by selecting only the good quality pixels. The code I've written is attached below along with the dataset description. My aim is to select ...
0
votes
1answer
85 views

Iterating to calculate mean NDVI and mask pixels having greater than mean NDVI value of each image in image collection using Google Earth Engine

I am working on Sentinel -2 image collection over my study region in Google Earth Engine. I can calculate Mean NDVI for an image using ee.Reducer.mean() and mask pixels using update mask .gt(mean ...
4
votes
2answers
41 views

Removing overlapping margins on multiple rasters by clipping to polygon grid

I am using ArcMap 10.8 I have multiple digitized historic General Land Office (GLO) maps (JP2 rasters) that I am georeferencing. Each one aligns with a single rectangular feature within an existing ...
0
votes
0answers
8 views

Image.select: Pattern 'probability' did not match any bands on s2cloudless

On early days of S2 up to almost 2017, Sentinel-2 Cloud Masking with s2cloudless returns the error: Image.select: Pattern 'probability' did not match any bands. You can check this by changing 2020 to ...
0
votes
1answer
45 views

Google Earth Engine: what does it mean by mask an image with itself?

I am a newbie and following the GEE tutorial at this link: https://developers.google.com/earth-engine/tutorials/tutorial_api_05 I do not understand the following line of code under the section of ...
1
vote
1answer
189 views

Mask out pixels of erroneous NDVI values in GEE

Here is my code in GEE to attempt this. NDVI values should range from -1 to 1, but because there are some bad pixels in the image, I have a few random values, such as -145 or 25. I am trying to mask ...
1
vote
1answer
21 views

How to only see a land mask of a whole area, inside just the raster in QGIS?

I have a land mask that covers a larger area, but which I only need to see inside my RADARSAT image. Here you can see the image with the land mask, but it is also covering an extent outside the image. ...
0
votes
0answers
56 views

How to clip a Spatial Points Data Frame to a raster in R, so that no points correspond to NA raster values

I have a Spatial Points Data Frame and a set of environmental rasters used to build a model with package inlabru. But I get errors which I think may arise from a few points being mislocated 'in the ...
0
votes
0answers
17 views

Validation after mask on Google Earth Engine

In my code, I've used NDVI for detecting water; After creating a mask based on NDVI values, I want to make some validation analysis on my results; I need something like Error Matrix used in ...
2
votes
1answer
75 views

Sentinel-2 Multiband thresholding (masking) using Google Earth Engine

I want to extract wheat pixels from the sentinel 2 image in google earth engine. Based on field analysis pixel should satisfy 3 conditions: NDVI value between 0.6 to 0.7, NDWI value between -0.5 to -0....
0
votes
1answer
64 views

Creating forest mask using PALSAR Forest/Non-Forest Map for Sentinel 2 image collection

I trying mask forest areas in Sentinel- 2 image collection over my study area using the 25m resolution global PALSAR Forest/Non-Forest Map. I followed the masking example given in GEE guides that uses ...
1
vote
1answer
55 views

Masking satellite data using shapefile

I am using Landsat data to determine NDVI for a specific region of interest (roi). However, the roi has buildings and other artificial objects that I wish to mask. I have followed through the example ...
0
votes
1answer
85 views

Sampling areas based on water mask using Google Earth Engine

I am trying to sample a large image and I only want to keep points that fall within a water mask. I can successfully sample small numbers of points by using a mask, but the algorithm chokes at larger ...
1
vote
1answer
131 views

Selecting specific range pixel values using Google Earth Engine

I have calculated NDWI on my study area. After this, I want to select a specific range of values that I will use to make a mask. My specific values range is between 0.2 and -0.1. This is my code: var ...
1
vote
1answer
82 views

How to use a polygon as a symbology mask? QGIS 3.16.6

I have a Lakes layers which has a transparent fill, and a Rivers layer which (for the sake of its geometric network) flows "through" the Lakes layer. Like so: I would like to use the Lakes ...
0
votes
1answer
39 views

Euclidean distance process is instantaneous without mask but runs for hours when boundary mask is added

I have shapefiles of lines and points which I need to create a Euclidean distance raster of using the Euclidean distance tool in ArcMap. The size of the area is about 37,000 km². The boundary ...
1
vote
1answer
24 views

How to make certain part of raster as no data with other overlapping raster?

I have two rasters, one raster contains all the ground features (roads, buildings, Trees etc) and another raster contains only man made features (Roads, buildings etc). I would like to have raster ...
2
votes
1answer
137 views

QGIS Label Buffer/Mask Issue

I have tried this with different QGIS versions (3.14 & 3.16) on both Mac and PC, but am not able to resolve the following problem. I derived vector contours from a DEM and made labels every 250 m ...
1
vote
1answer
50 views

Extract the mean elevation from a raster by a mask with several spatial objects

I am working with a glacier and I want to get the Hypsometric curve of the elevation difference between two time periods. I divided the mask of the glacier by the contour lines (each 50 m) and now I ...
2
votes
0answers
28 views

How to remove black stripes from image?

I'm trying to figure out how to get rid of these black lines in my images by creating a mask using the VV pixels. How can I get rid of these lines? // Load Sentinel-1 C-band SAR Ground Range ...
0
votes
1answer
114 views

How to apply cdo mask command to loop over multiple .nc files in Python?

I want to use the cdo command for masking the .nc file (the command below): cdo div input.nc maskfile.nc outputfile.nc The command above should be applied over multiple .nc files (looping) in python, ...
1
vote
0answers
24 views

How to clip polygon by line feature QGIS?

The clip tool will only allow for clipping by another polygon, I would like to clip polygon features by a line feature. Had tried installing the digitizing feature however the cut by lines button is ...
0
votes
1answer
41 views

Masking an ImageCollection using another Image in Google Earth Engine

I want to mask all the layers in an ImageCollection (in the present case MOD44B) using the landcover (Globcover) values from another Image. var MOD44B = ee.ImageCollection("MODIS/006/MOD44B")...
0
votes
0answers
25 views

parallel changin region - WIND_OVERRIDE

INTRODUCTION: I have 5000 mammal species and I'm studying Extreme Climate Event impacts on them. I'm now analysing warm spell duration index (WSDI) which is defined as number of days in a year where ...
3
votes
1answer
138 views

Create a raster mask using another raster in QGIS

In Photoshop you can use a mask layer to filter an image using another image. A mask layer in Photoshop is a greyscale image attached to a layer that determines that layers transparency per pixel. ...
0
votes
0answers
25 views

Adjusting pixel values of a raster based on geopandas colums or fields

I have a geodataframe with geometry column containing Polygons and 5 fields or columns('Crop1', 'Crop2', 'Crop3', 'Crop4' and 'Crop5') as well as a raster image. There are 159 rows in the geodataframe ...
3
votes
1answer
135 views

Add a nodata mask or alpha band to read-only image?

How to add a nodata mask or alpha channel to a source image that is read-only or should be treated as such? For example I have this satellite image that uses jpeg compression in a geotiff. Since the ...
1
vote
0answers
74 views

Using MOD16A2 in GEE to extract best quality of PET

I am beginner with Google Earth Engine programming. I want to know how I can use MOD16A2 to extract good quality values of potential evapotranspiration data (MOD16A2)? because I extract the PET of ...
1
vote
0answers
33 views

Is it possible (and how) to mask NoData values using Scikit-learn PCA?

I have to carry out a Principal Component Analysis (sklearn.decomposition.PCA) on a dataset composed of several images. Some of these images have very large gaps due to the removal of clouds. Is there ...
2
votes
0answers
48 views

Masking dynamic leader lines for pie charts in QGIS

I am trying to duplicate the example in this post Moving Pie Chart in QGIS and creating leader line with some modifications. I'm trying to combine this with transparency and I'd like to mask off the ...
3
votes
2answers
232 views

How to use polygon to create raster landmask in QGIS?

I have a shapefile with polygons displaying the borders of the countries of Belgium, The Netherlands, and Luxemburg in EPSG:4326 (WGS 84). How can I transform this into a raster landmask, showing ...
0
votes
2answers
34 views

GRASS - r.mask analogous for vectos

I am working with r.stats. My analysis is about overlap Extreme Climatic Events (ECE) raster map with mammals range maps. I used to do my analysis first creating r.mask on ECE map and then applying r....
2
votes
1answer
92 views

Create a polygon to match non-white (or non-empty) part of a raster

I have a irregular raster with empty spaces as seen in the attached image, which is the southwest corner of my raster. I would like to create a polygon or a mask that matches the non-white regions of ...
1
vote
0answers
284 views

Using a shapefile as mask with rasterio mask gives different affine transforms with rasters of the same projection and resolution

I have a list of n file paths to geotiffs of the same resolution and projection but with varying extents. In brief the goal is to use Rasterio's mask module to use a shapefile containing a single ...

1
2 3 4 5 6