Questions tagged [masking]

Covering or hiding features on a map.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 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 ...
-1
votes
1answer
31 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
25 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
20 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
36 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
30 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
29 views

Google Earth Engine: Export as GeoTiff 16-bit Integer somehow does not export the mask

We calculate NDVI datasets in Google Earth Engine in regions cropped by ROI polygons and probably masked by cloud pixels. Calculations are going fine, however when we export the results we want the ...
0
votes
0answers
41 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....
0
votes
0answers
26 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
145 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
34 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
82 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
42 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
53 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
16 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
17 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
20 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
11 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
19 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
37 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
27 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
30 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
30 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
49 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
47 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
33 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
25 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
35 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
17 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
32 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
31 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
49 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
103 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
34 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 ...
-1
votes
1answer
192 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
47 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 ...
-1
votes
1answer
296 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
22 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
250 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 ...
0
votes
1answer
45 views

Masking edges of S1 composite in Google Earth Engine

From the following code I would like to mask the edges of my sentinel 1 composites. @Daniel provided the code. var roi = Map.getBounds(true) var startDate = ee.Date('2015-01-01') var endDate = ee....
1
vote
1answer
82 views

Creating a raster based on values of other rasters

I have three single band rasters, raster_a, raster_b and raster_c with pixel values 1 and 0. I am trying to burn the values of raster_a to raster_b and create a "new_raster_b" where if: raster_a == ...
0
votes
1answer
41 views

Check for NAs in `RasterLayer` and plot them in different colour

I know it's an easy question. But how can I find out whats the distribution of my NA-Values to non NA-Values? And how could I plot my raster normally and make the NA values appear in a different ...
0
votes
0answers
32 views

Low-pass filtering raster with a mask - matrix

I have to do low-pass filtering with a mask - matrix: 1 2 1 2 4 2 1 2 1 This is my code import arcpy import numpy as np arcpy.env.workspace = r"C:\Users\ASUS\Documents\ArcGIS\Default.gdb" raster = ...
1
vote
1answer
194 views

Create a new raster TIFF file which is masked based on the GeoJSON file

I was trying to mask the building given its TIFF file and GeoJSON file creating a new raster TIFF file. I don't know what is the problem, the result is all black, here is the code below: from osgeo ...
2
votes
0answers
86 views

Offset after clipping an image using rasterio.mask (illustrated with figures) [closed]

I want to clip an image named img_A of dimensions 14000x10000 using a polygon shape in order to get the same dimensions than another image named img_B of dimensions 1925x1372 (see figure 1 below). The ...
1
vote
0answers
29 views

Defining invalid regions of VRT file with rasterio in a way that allows windowing [closed]

I'm using a VRT file to represent a bunch of individual map tiles as one big image. I noticed that some of the data is invalid but not marked as such (via the invalid data value). I'd like to define ...
2
votes
2answers
172 views

Cropping raster using multiple shapefiles

I have a raster which I want to crop multiple times using different shapefiles. My code uses mask method which returns numpy array and its metadata: out_img, out_transform = mask(raster=data, shapes=...
0
votes
1answer
80 views

Aligning pixels for using GSW as mask layer with Landsat 8 and Global Surface Water (JRC) Layer

I want to isolate some surface water areas on Landsat 8 images by using the Global Surface Water dataset in GEE as mask. After mapping both in the Editor I realized the positions of pixels of GSW and ...
0
votes
0answers
82 views

Exporting image of modeled data in Google Earth Engine results in too much mask

I am using harmonic regression in Google Earth Engine to model NDVI values for 2011. I would like to export the modeled values for every semi-monthly time-step (twice a month). However, if there was ...

1
2 3 4 5