Questions tagged [masking]

Covering or hiding features on a map.

Filter by
Sorted by
Tagged with
0
votes
0answers
18 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
22 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
26 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 ...
0
votes
1answer
10 views

Creating mask be created from raster (ArcGIS Pro)

I am having a difficult time with utilizing ArcPro's (Desktop) to create a mask. Please see below for data and overall output desired: Data: Original Raster Layer Created Mosaic Layer Goal: Create a ...
1
vote
0answers
12 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
33 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
45 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
22 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
31 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
53 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 ...
2
votes
0answers
41 views

Google Earth Engine (GEE): Using closing filter (Focal_max) on masked image

I am working on a script for flood mapping. I have created a watermask and now need to use two morphological filters with a window of 3x3 pixels, first a dilation filter that enlarges the water mask ...
3
votes
2answers
118 views

Conditional calculation using QGIS

I want to apply an algorithm to calculate the clorophyll-a concentration of a reservoir using Sentinel 2. To do this I need to create a mask using Sentinel's 2 band 11(infrared) to separate the water ...
0
votes
0answers
27 views

Calculating snow pixels in GEE?

I have to calculate the decline in snow in a mountain area of Peru (between two points = two mountains). This is the link to what I have. https://code.earthengine.google.com/?scriptPath=users%...
0
votes
0answers
31 views

Clipping OpenStreetMap basemap using QGIS

I'm using QGIS, and I am trying to clip my metro region data to only show the OSM basemap in the the metro region, using this thread: Clipping OSM Standard Basemap using QGIS I created an inverted ...
3
votes
0answers
28 views

Inconsistently getting “Input shapes do not overlap raster”, CRS appear to match

Masking topographic raster data by a shapefile (bedrock geology polygon). Following this guide I do this: with fiona.open("geology.shp", "r") as shapefile: geology_mask = [...
0
votes
1answer
59 views

Applying mask on Google Earth Engine

I am having difficulties with masks in Google Earth Engine (GEE). I need to classify a sentinel image of the GEE. But I don't want the eucalyptus areas in my image to be classified. I have a shapefile ...
2
votes
0answers
21 views

Remove scene edge pixel error in annual composites in GEE

The median reducer over the cloud masked image collection is unable to remove the edge pixel error at a few scenes. Although the cloudmasking function has the code to remove such edge pixels not ...
0
votes
0answers
19 views

Eliminate pixels on land on QGIS

I have black pixels inside water and land. I have covered the land using a shapefile. How do I mask out the entire land so that no pixel is counted on the land? I only want to count pixels inside the ...
0
votes
0answers
10 views

Landsat MSS data Masking for Clouds and Water bodies

I'm trying to construct mask for Landsat-1 mss data for: clouds clouds shadows water bodies Mainly using either ArcGIS, ENVI, Matlab and R softwares. Firstly, I started with the mask for water bodies. ...
-1
votes
1answer
56 views

GeoJSON to masks [closed]

I need to use the GeoJSON file and TIFF images to produce masks. Is there a Python program that takes GeoJSON file and TIFF image as input and produces masks?
0
votes
1answer
34 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
50 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
114 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
169 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
40 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
43 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
144 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
139 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
67 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
33 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
16 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
107 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
68 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
195 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
177 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
79 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
197 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
229 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
139 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
310 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
77 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
127 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
70 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
95 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
23 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
16 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
25 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
240 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
34 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- ...

1
2 3 4 5 6