Questions tagged [masking]

Covering or hiding features on a map.

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

NDVI and NDWI making [closed]

Can we mask out a certain value from -1 to -1 from NDVI and NDWI so that we can acquire NDVI and NDWI value greater then required value range.
0
votes
1answer
15 views

ArcGIS JS API - Masking a Layer - Changing the tilelayer source?

I am trying to reproduce and modify the mask effect found in this example from the ArcGIS JS API: Masking effect using a custom layer view There is a lot of fancy footwork to modify the underlying ...
1
vote
1answer
32 views

Fulfilling removed cloud area with free cloud data in Google Earth Engine

I have completed doing cloud removal with Landsat image (in this case is Lansat 8) in the Google Earth Engine. Of course the result of this process is the cloud pixels become no data, consequently the ...
0
votes
0answers
45 views

Masking clouds/shadows and calculating area using Google Earth Engine

I am using Landsat Surface Reflectance images to calculate the change in NDVI over time for an roi. I wanted to mask out anything that would give weird NDVI values so I used the code from Cloud mask ...
0
votes
1answer
31 views

Apply a mask (shapefile) over a satellite image in Google Earth Engine

I have a Sentinel 2 satellite image and am rating it. I already classified all the native vegetation separated into a shapefile. Now I need to classify the anthropic uses, I would like the GEE to ...
0
votes
0answers
23 views

How to batch-mask (multiply) multiband raster with mask of different cell size?

I have a multiband GeoTIFF raster of certain cell size and a binary GeoTIFF mask (1 or no-data, but can be recreated differently) with different cell size. I need to mask the raster such that only ...
2
votes
1answer
33 views

Issue while creating dataset mask for Landsat 7 ETM+ band data by using rasterio

I am trying to create dataset mask of a particular band of Landsat-7 (B2) & Landsat-8 (TIR) data and then plot the same using the following code: For Landsat-7 Band-1:- import rasterio import ...
2
votes
1answer
82 views

Cropping raster file with GDAL warp C++ API

I need to crop a DEM raster file with a shapefile. This shapefile has many polygons. I need to calculate several variables after the crop operation. The algorithm is written in C++ so I want to call ...
1
vote
0answers
62 views

Reading in GeoTIFF with different CRS and Transform with rasterio

I have multiple TIF files with different resolutions that I want to combine using rasterio. I am using a modification of the example given in the documentation here. However, on closer inspection ...
0
votes
1answer
52 views

Large-scale cloud masking, grouping and mosaic in Descartes Labs platform

I am looking to create a stack of cloud-free sentinel-2 imagery by day for a large portion of California for all of 2020 in the Descartes Lab platform. I realize that this is a very large amount of ...
0
votes
0answers
31 views

QGIS Masking part of objects at other layer

i'm using qgis 3.14. I have situation like in the screen below: I'd like to hide that part of river which is under the bridge. So the result would be like: I'd like to avoid editing original data ...
0
votes
0answers
11 views

Clipping raster changes pixel values

I'm attempting to clip a raster of global sea surface temperatures to a specific region in ArcGIS Pro. Here are the data: https://psl.noaa.gov/data/gridded/data.noaa.oisst.v2.highres.html After using ...
0
votes
1answer
93 views

Cloud masking with the Descartes Labs Platform Scenes API

I have created a scene collection in the Descartes Labs Platform using the Scenes search function (dl.scenes.search) for my area of interest and sensor of choice (Sentinel-2). I would like to iterate ...
0
votes
1answer
32 views

Get rid of overhang beyond masking border in ggmap?

I built a terrain map of Nevada and plot the state border around it. The resulting map has a buffer-like overhang across the state border which I used to mask the raster. How can I get rid of the ...
1
vote
1answer
79 views

Earth Engine, how to convert 0 pixel values to transparent or nodata?

I'm using the following snippet to convert canny edges to black and white to highlight boundaries. However, I want to fill the black area with transparent or NODATA, is there a way to do this in EE? ...
1
vote
1answer
84 views

How to add to the map all the images on a image collection with cloud pixels masked on Google Earth Engine?

I'm trying to add to the map automatically trough a function a set of images from a landsat8 Image Collection to which previously I applied some filtering and a cloud masking function. I'm able to add ...
0
votes
0answers
48 views

How to apply a cloud mask on a MODIS collection in Earth Engine

I am trying to work with the MODIS dataset from google earth engine (MCD43A4.006 MODIS Nadir BRDF-Adjusted Reflectance Daily 500m) and I want to apply a cloud mask but I have no clue how to do it. I ...
0
votes
0answers
92 views

Cloud Masking of Sentinel-2-L2A images

I am trying to follow this Tutorial but in a different country. I am currently having a problem with cloud masks. I tried to visualize the different cloud masks of different patches at different dates....
1
vote
0answers
30 views

QGIS: How to compute mean of raster values without no data?

I was able to clip a raster against a vector boundary using Clip Raster by Mask layer. I want to compute the mean of the values inside a single raster. I am using Raster Layer Analysis. However it ...
3
votes
1answer
168 views

Raster brick from raster masks by sectors (R)

The goal is to divide a raster file into quadrants in order to make some computation in each. I'd like to split the raster and create a raster brick with those parts. I don't need to get perfect clips ...
0
votes
1answer
78 views

How to apply a Bitmask for radiometric saturation QA in a image collection (earth engine)

I am new to earth engine and I am trying to apply a radiometric saturation mask in a image collection based on ''radsat_qa'' in earth engine data catalog for landsat reflectance tier 1. I am trying ...
1
vote
1answer
145 views

Counting number of unmasked pixels per image in collection using Google Earth Engine

I'm trying to count the number of pixels that are masked by the cloud mask of the image collection given by the Earth Engine dataset. I have clipped my collection with a ROI and now I want to keep the ...
0
votes
1answer
54 views

ee.Algorithms.If result gives “not a function” error on relational method call (Earth Engine)

I am trying to filter an image collection by Quality Control bands. The quality control bands are named two different things ("QA" and "qaGpp"), and these names do not appear to within the collection ...
1
vote
1answer
75 views

GEE: masking for multiple pixel values

The GEE tutorial shows how to mask an image for one pixel value using .eq(pixel value). However, I want to mask all pixels in an image with a value of 15 or less in this dataset var riverflow = ee....
1
vote
0answers
32 views

Rasterio mask removes alpha band

I have a geotiff image that I am clipping to a geojson polygon using rasterio. When I load input the image in QGIS, it has an alpha band (4 bands total). rasterio says it only has 3 bands, which ...
0
votes
1answer
42 views

How to get pixel positions when cropping a raster with rasterio? (Faster)

I am trying to crop a raster but instead of just getting the values of the cropped raster I am trying to get the positions of that values on the matrix. I already did this with this code: import ...
0
votes
0answers
22 views

Cloud masking Rapid Eye images

I am trying to delete clouds (ideally also their shadows) from Rapid Eye images (5 bands; blue, green, red, red edge, near-infrared). I have tried to set a threshold for the red band and mask ...
0
votes
0answers
13 views

Filtering an image by regional mask

How could I filter an image by an user defined mask on a user defined area? Here an example: # select area crs = 'SR-ORG:6974' scale = 926.625433056 area_extent = (294666.8877, 5639442.3861, 314126....
0
votes
1answer
24 views

Why it doesn't mask the complete layer?

Through the code I need to calculate the number of pixels of a layer composed by three classes (severe, medium and low), but the code just take into account the medium and low classes. https://code....
1
vote
1answer
100 views

Mask out pixels smaller than 1ha in Google Earth Engine

I am new here so please forgive any mistakes in this post: I have a simple script to classify cultivated area vs none cultivated areas using Sentinel-2 in GEE. I want to mask out all objects that are ...
1
vote
0answers
29 views

Cloud Shadow interferring with NDWI Analysis

I'm working on surface water identification in Northern Kenya. I'm using Landsat 5TM and Landsat 8OLI data in ENVI 5. I've masked clouds using the QA band (although have also tried the fmask tool- ...
0
votes
0answers
45 views

Adding two rasters results in negative infinity and positive infinity

I'm trying to create a hydro-flattened DEM according to USGS specifications. I have two rasters, a DEM of my study area and a raster that only contains the water bodies that I have flattened so the ...
0
votes
1answer
36 views

ENVI fmask Error for Landsat 5 data

I'm trying to mask cloud cover of multi-spectral Landsat 5 image containing bands 1-7 that have been preprocessed using dark object subtraction and Landsat calibration. I am using the fmask tool in ...
0
votes
1answer
124 views

How do I make/edit a land sea mask in NetCDF format?

I have a land-sea mask.nc file where land=1 and sea=0. I want to mask this global LSM to my study area so that the study area=1, and rest=0. I have the study area shapefile and the LSM NC file. How ...
0
votes
1answer
73 views

Masking out pixels from the Sentinel 1 image in Google Earth Engine

I am trying to classify paddy areas from time-series(in this case, four-date) Sentinel 1 image in both VH and VV polarization. Hence prior to classification, I need to mask out land covers such as ...
0
votes
1answer
45 views

Semi-Automatic Classification plugin: Cloud Masking errror

I'm doing Tutorial 2 out of the manual for this plugin as a GIS course lab exercise and I'm hitting an error when attempting to run the cloud masking function. I'm using 3 bandsets of Sentinel-2 data ...
0
votes
1answer
33 views

Count number of pixels in range of values in GEE

I have raster with NDVI values and I would like to use reducer in order to know how many pixels in the raster are smaller than 0.2, between 0.2-0.4 , betwen 0.4-0.6 and gt than 0.6. i'm not sure that ...
1
vote
1answer
49 views

QGIS - extract xyz of max raster values in mask vector layer

I have a bathymetric raster from which I want to extract the max depth value within a mask (vector) layer. The vector layer has 252 circular polygons The end result must have x, y and depth attributes ...
-1
votes
1answer
20 views

Masking non-NDVI feastures such as clouds, water and infrastructures

I would like to calculate the NDVI value for my study area, however there is cloud cover which makes it unable to calculate the NDVI. How do I mask all the non-ndvi features such as water, ...
1
vote
0answers
27 views

Clipping raster image using mask layer is not clipping in correct way

I am using QGIS 3.10 when tried to clip raster with mask layer I got the same result of extent layer knowing that I activated option with extent boundary Link for shapefile and raster
1
vote
0answers
34 views

How to add different NDVI layers of Landsat 8 data from 2014 to 2019 to a map in Google Earth Engine?

I am trying to calculate NDVI for each month and masking NDVI images with lte(0) filter to identify water bodies and show the timelapse between encroachment area of waterbodies in different years and ...
0
votes
1answer
41 views

Not plotting NA-Values in raster with python

I have a raster that I cropped beforehand based on a shapefile with gdalwarp -srcnodata '-1000 -255' -cutline {shape} {vrt_path} {tiff_path} The thing is, that there are many NAs that get simply ...
0
votes
0answers
88 views

Crop `vrt` by vector-geometry with gdal

Is it possible to crop a .vrtmosaic to a vector-geometry? I have a .vrt-file which is a mosaic of various sentinel2-scenes. For me it seems to be more efficient to already crop and mask (set ...
2
votes
0answers
137 views

Clipping Raster by Mask using PyQGIS

I'm trying to develop code that is capable of cutting out a mosaic from the polygons of a shapefile using PyQGIS. The script is run but does not produce any results. from qgis.core import * from ...
2
votes
1answer
38 views

QGIS Raster Mask Layer?

I have a raster slope layer and a raster aspect layer. The slope layer is single band grey, that is black to white, with white as the steepest slope. The aspect layer is pseudo colour. I'd like to ...
0
votes
1answer
305 views

Creating Cloud free images out of a MOD09A1 MODIS image in GEE?

How can I mask clouds in a MODIS\MOD09A1 images in GEE? I know I should do sth with the "Bitmask for QA", but how? var myImgCln = ee.ImageCollection("MODIS/006/MOD09A1") .filterMetadata(???
1
vote
1answer
62 views

Removing tidal flat and coastline after applying Landsat Cloud Masking

I am a new Google Earth Engine user. I have tried to remove clouds and cloud shadows using pixel_qa band. However, sometimes the cloud masking makes tidal flat or coastline to remove. I don't know why ...
0
votes
1answer
664 views

Shapely Polygon to numpy boolean mask [closed]

How can I convert my Shapely polygon to a numpy pixel array representing a boolean mask, with True for where the polygon is?
0
votes
1answer
23 views

Give a specific value to mask layer

I have code that creates 3 different layers using masking, each time other different pixels get mask and the others get 1 so the final result is 3 layers that are complemntary: My problem is that ...
1
vote
1answer
387 views

Calculating water occurrence of Sentinel-1 images in Google Earth Engine

I would like to derive the occurrence of surface water bodies from Sentinel-1 image collection in the Google Earth Engine.In my example I could already compute the water mask using Otsu’s method for ...

1
2 3 4 5