Questions tagged [masking]

Covering or hiding features on a map.

Filter by
Sorted by
Tagged with
0 votes
1 answer
18 views

Google Earth Engine Creating a mask for an ImageCollection

I'm using Google Earth Engine's JavaScript API to process Sentinel-2 images. I've calculated the EVI from the Sentinel ImageCollection, and would like to apply a mask that removes all the values ...
user avatar
  • 129
0 votes
0 answers
17 views

Mask non value flags when opening dataset with rioxarray

I'm trying to read Leaf Area Index (LAI) data from the MODIS product (MOD15A2) using rioxarray, but there are a number of land cover flags (e.g. 253 = land cover assigned as barren) that don't get ...
user avatar
  • 1
2 votes
1 answer
36 views

Why is my combined Mask masking different areas to the individual Masks over an ImageCollection?

I'm trying to perform a time-series analysis of Sentinel-2 satellite imagery over Water, and to do that I've been muddling through using functions to perform analysis on images over an Image ...
user avatar
0 votes
1 answer
57 views

Masking clouds on Landsat8 with Python before NDVI [closed]

I'm new to remote sensing and trying to mask clouds with Python. I'm using the same method in Earth Data Science website (https://www.earthdatascience.org/courses/use-data-open-source-python/...
user avatar
0 votes
0 answers
40 views

Error when trying to mask raster to shapefile after interpolation using R - "sp supports Z dimension only for POINT and MULTIPOINT"

I am trying to mask an interpolated raster to a shapefile with the same coordinate reference system using R, but I keep getting an error. The error is shown below. How can I overcome this error and ...
user avatar
0 votes
0 answers
40 views

Getting Rid of Black Boundaries from Tiff Image using Google Earth Engine

I'm getting a tiff image from earth engine using the code below, but the image I get is rectangular and surrounded by a black box. How can I get rid of the black boundaries on the corners and get a ...
user avatar
0 votes
0 answers
62 views

Clip data while reading file into Python with GeoPandas

Geopandas is able to read in only part of a file using: roi= geopandas.GeoDataFrame(geometry) indexed_data = geopandas.read_file("path-to-file", mask=roi) or geopandas.read_file("path-...
user avatar
  • 71
0 votes
0 answers
31 views

Smoothing layer after masking on Google Earth Engine

I'm working with RADD alerts and I'm trying to apply temporal filters to the image. That way: Script: https://code.earthengine.google.com/eda2cd15ca30478bf6e5d4104b57fc39 // Getting the latest alert. ...
user avatar
0 votes
0 answers
42 views

NaN values after masking NetCDF with an shapefile in Python

I want to mask a global NetCDF dataset (datacube) to Germany. before I have already spatially resized it with slice. It is the GLEAM dataset v3.5a variable evaporation. I will do some analysis in ...
user avatar
  • 1
0 votes
0 answers
18 views

Clipping raster with subsetted PostGIS mask in QGIS Python?

I create a subset of a PostGIS table as layer (using the WHERE-like statement in setDataSource). The layer is added just fine into the map. However, the raster is clipped by the whole PostGIS table (...
user avatar
0 votes
1 answer
149 views

Mask Sentinel-2 image using SCL product in Google Earth Engine

I need to create a Google Earth Engine (JavaScript API) function to mask the pixels corresponding to no_data, satured_or_defective, dark_area_pixels, cloud_shadows, unclassified, ...
user avatar
  • 343
1 vote
2 answers
69 views

"Clip vector layer by mask layer" algorithm stucked in QGIS

I am using QGIS 3.22 and I try to use a mask to get rid of the part of the shapefile I don't want. However it stays stucked (see img) without even pointing an error. Does someone know what to do? I ...
user avatar
  • 399
1 vote
0 answers
128 views

Cloud mask algorithms for Sentinel-2 Level-2A data

I am trying to find the best Sentinel-2 cloud mask algorithm for Level-2A data that can be integrated in a Python script and that works well on oceanic areas. I am working with level-2 data because I ...
user avatar
2 votes
1 answer
44 views

Rasterio mask washing out result

Using the rio.mask.mask function to clip out a section of an ortho. The result .tif looks like it has been "washed" out. The pixel values from the ortho and the result are exactly the same, ...
user avatar
  • 896
2 votes
2 answers
586 views

Masking with rasterio in Python

Introduction I have a shapefile for my area of interest (which in this case is Tehran) and also a TIF file that contains the categorical information(cloud status). In this case, I want to mask the TIF ...
user avatar
0 votes
1 answer
32 views

Find the min. distance of each pixel to a connected component

I have a matrix in a similar format to the following a = [1, 1, 0, 0; 1, 1, 0, 0; 0, 0, 0, 0, 2, 2, 2, 2] This matrix represents a mask over a region, where each connected component ...
user avatar
  • 103
1 vote
2 answers
41 views

Unable to mosaic raster bands of the same region in ArcGIS Pro

I am trying to mosaic the Landsat satellite imagery of an ROI to fill the masked cloud regions. For this, I am using f1023clip and f5163clip (as shown in images below). I am trying to mosaic the two ...
user avatar
0 votes
1 answer
65 views

Retrieving State Heightmaps (DMTED) - Accuracy possible with QGIS? - Requesting Steps

I need a gmted2010 height map of Massachusetts. Only Massachusetts, including its shoreline, islands, and of course state boundaries. What I am currently doing, in bullet point form: I am using https:...
user avatar
0 votes
0 answers
26 views

Creating Masks with osmnx and rasterio, could misalignments be due to projection?

I'm still quite new to geospatial data and I found that when I'm creating masks for my dataset (building and roads from open streetmap), they are slightly misaligned. Now I see that this is also the ...
user avatar
  • 195
1 vote
1 answer
51 views

Masking FeatureCollection using image in Google Earth Engine

I have a FeatureCollection with my study area, and an image with urban areas. I want to remove the areas in my FeatureCollection where the image has urban areas. How can this be done? var studyArea = ...
user avatar
  • 11
1 vote
1 answer
560 views

Rasterio mask doesn't work with shapely polygon

I have raster which I want to mask with shapely polygon.According the rasterio documentation, rasterio.mask can work with shapely geometry.However, in this case, it doesn't work. whenever I use my ...
user avatar
  • 1,797
1 vote
0 answers
26 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 ...
user avatar
0 votes
0 answers
74 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["...
user avatar
3 votes
1 answer
75 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 ...
user avatar
1 vote
1 answer
153 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 ...
user avatar
0 votes
0 answers
42 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 ...
user avatar
  • 23
0 votes
0 answers
12 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....
user avatar
1 vote
2 answers
589 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 ...
user avatar
  • 119
0 votes
1 answer
16 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 ...
user avatar
  • 23
0 votes
1 answer
61 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, ...
user avatar
  • 179
0 votes
1 answer
226 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 ...
user avatar
  • 77
0 votes
0 answers
24 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 ...
user avatar
  • 427
0 votes
1 answer
83 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 ...
user avatar
  • 3
0 votes
0 answers
9 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, ...
user avatar
  • 427
1 vote
1 answer
209 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 ...
user avatar
  • 13
1 vote
1 answer
92 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 ...
user avatar
1 vote
1 answer
136 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 ...
user avatar
  • 27
1 vote
1 answer
258 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 ...
user avatar
  • 77
4 votes
2 answers
63 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 ...
user avatar
  • 101
0 votes
0 answers
15 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 ...
user avatar
  • 13
1 vote
1 answer
427 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 ...
user avatar
  • 41
1 vote
1 answer
429 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 ...
user avatar
  • 51
1 vote
1 answer
37 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. ...
user avatar
0 votes
0 answers
169 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 ...
user avatar
0 votes
0 answers
26 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 ...
user avatar
  • 11
2 votes
1 answer
228 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....
user avatar
  • 77
0 votes
1 answer
150 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 ...
user avatar
  • 77
1 vote
1 answer
97 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 ...
user avatar
0 votes
1 answer
163 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 ...
user avatar
1 vote
1 answer
489 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 ...
user avatar
  • 11

1
2 3 4 5
7