Questions tagged [masking]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
0answers
181 views

Stacking and masking Landsat at the same time with rasterio

Based on answers from previous questions 1,2 and the Masking a raster using a shapefile guide from rasterio cookbook, I wrote the code below. The code runs correctly. I would like to improve it. 1- ...
0
votes
0answers
26 views

Creating cloud feature after applying Landsat8 Cloud Masking [duplicate]

There is a script in GEE to mask cloud: // This example demonstrates the use of the pixel QA band to mask // clouds in surface reflectance (SR) data. It is suitable // for use with any of the ...
0
votes
1answer
267 views

Cloud mask using pixel_qa

I need to create a cloud mask using the pixel_qa band, this is the code that I have so far: var city = ee.Geometry.Point(9.15, 45.18); var landsat8 = ee.ImageCollection('LANDSAT/LC08/C01/T1_SR') // ...
1
vote
2answers
537 views

Resampling raster based on mask raster?

I want to resample rasters of e.g. 2 m resolution to the same raster cell size and projection of an existing raster (25 m). However I cannot really find answers how to do it properly. I managed to ...
1
vote
0answers
124 views

masking in ENVI [closed]

I have surface reflectance generated NDVI which I got from ESPA interface, https://espa.cr.usgs.gov. How do I mask cloud with Qa band in ENVI?
2
votes
1answer
1k views

Landsat 8 cloud/cloud shadow/snow masking in Google Earth Engine [duplicate]

I am a new Google Earth Engine user and I am trying to understand basic procedures/functions. More specifically, I want to remove clouds, cloud shadows and snow pixels form a Landsat 8 collection and ...
1
vote
0answers
42 views

Applying a mask when running MESMA using VIPER tools plugin for ENVI

I am running MESMA on a landsat image that has large areas masked out, but I keep having all the background (value = 0 in all bands) pixels included in the analysis. They all end up unmodeled (no ...
0
votes
1answer
766 views

Union polygons in QGIS

I have two shapefiles. One contains a raster with grid cells and the other administrative boundaries. I would like to union the polygons from both layers but geoprocessing - union yields the ...
0
votes
0answers
89 views

Is it possible to create an average image of the analyzed period after the removal of the clouds to fill the flaws in the images?

// study area var local = ee.Geometry.Rectangle([-42.2974, -20.5299,-40.9406, -19.1815]); Map.addLayer(local); var landsat8 = ee.ImageCollection('LANDSAT/LC08/C01/T1_SR') // Fmask classification ...
1
vote
1answer
1k views

How to apply a Cloud Mask in Google Earth Engine? (Landsat 5 TM 8-Day NDVI Composite)

I need to download ndvi values for some pixels for 2000-2001 using the Landsat 5 TM 8-Day NDVI Composite, but since there is no quality band as in mod13q1 there's no way to filter by quality. ...
1
vote
1answer
317 views

Extrapolating with IDW (Feature Classes) in ArcGIS Pro?

I have been struggling to extrapolate beyond the extent of the point features input into the IDW tool of ArcGIS Pro. I believe IDW interpolation is the method for me, i just need the process to ...
1
vote
0answers
405 views

Apply mask and compute statistics with GDAL

I've constructed a VRT that includes a band of data and a mask (0/1 representing water/land) with: ds = gdal.Translate(masked_vrt, combined_vrt, bandList=[1], maskBand=2, format='VRT') Where ...
2
votes
0answers
41 views

ArcMap 10.5 Desktop: Highway shield test symbols not respecting mask layer about it

How do I stop highway symbol markers from appearing above my mask layer? The actual highway layer is below the mask layer in the drawing order (so the actual highway line appears below the mask layer,...
0
votes
1answer
200 views

Apply mask in bulk ENVI

I have a stack of MODIS images consisting of 400+ bands. A stack of NaN masks is created corresponding to each layer of the MODIS stack. I wonder if there is a way to apply the mask layers in bulk in ...
1
vote
0answers
87 views

Applying mask to Kriging shape in ArcGIS Desktop?

I'm trying to apply an mask to a Kriging image for after apply a Density Sampling Network, but unfortunately I'm not getting good results. I tried to apply on mask on Density Sampling Network and is ...
2
votes
0answers
151 views

Expanding raster within mask by interpolating it with boundaries set to 0

I'm having a hard time trying to expand a raster within a mask. Here are some details about my case: I'm working with glacier ice thickness rasters, which happen to be smaller than the real size of ...
1
vote
1answer
132 views

dismo::randomPoints generates NA points with raster stack mask

I am using the randomPoints function in the dismo package in R to generate random points from a raster stack. The documentation for the randomPoints function says: "The points are sampled (without ...
0
votes
1answer
666 views

GEE cloud-free Sentinel2 and linear Regression [closed]

GEE, Sentinel and linear Regression I am using GEE (Google Earth Engine) to compute a Sentinel-2 based change analysis. What I would like is basically a linear regression per pixel, with the slope as ...
3
votes
1answer
3k views

Sentinel Cloud-free Collection Google Earth Engine Code Editor

I am trying to create and map an image collection (not image or mosaic if that is even possible), where QA60 defines the Cloud-mask. I have written the code below - however, it seems the Jan2016 ...
0
votes
1answer
74 views

Running MFmask in MATLAB: Error using imfill

I am trying to create a cloud and cloud shadow masking raster using MFmask (https://www.sciencedirect.com/science/article/pii/S0034425717303073) for a Landsat 8 scene. MFmask 1.1 is modified version ...
4
votes
0answers
2k views

Using polygons to create mask on 2d grid with Python?

I have some polygons (Canadian provinces), read in with GeoPandas, and want to use these to create a mask to apply to gridded data on a 2-d latitude-longitude grid (read from a netcdf file using iris)....
0
votes
1answer
919 views

How to convert to NoData in Google Earth Engine?

I have the next code: I am trying to make a mask (only one shape that I would like to use as an analysis region) with: all elevations less than 4.100 meters (from DEM), all area with water (NDWI) and ...
1
vote
1answer
503 views

Rasterio.mask returns error 'shapes are outside bounds of raster' - but they are definitely within raster bounds

I'm using rasterio.mask.mask to mask a raster with a shapefile. import rasterio import fiona image_object = rasterio.open('/home/cate/image_name.img') aoi_shapefile = fiona.open('/home/cate/AOI....
4
votes
1answer
2k views

How to apply a Cloud Mask in a collection?

I am trying to apply a mask cloud in a SAVI collection (LANDSAT) to get a chart with time variations between pixels. var region = table3 Map.addLayer(table3) var col = ee.ImageCollection('...
1
vote
1answer
107 views

Cropping maps (Raster source map and vector map as boundary)?

I have DEM named "HD_DEM" (asc file) and vector map for lakes that named "Lakes". I want to crop lakes from HD_DEM. By following instructions of this link https://grasswiki.osgeo.org/wiki/...
1
vote
1answer
641 views

Extracting QA Bits for Mask for Landsat Surface Reflectance?

I am trying to create a mask that I can map over an image collection using the QA band from Surface Reflectance data in Google Earth Engine. Here are the indicator bits for the QA band: 0:unused 1:...
1
vote
2answers
410 views

Merge two rasters with different resolutions caused by masking of areas

I've analyzed multiple regions separately using rasters. All those regions are neighbours. That means every pixel from one region has a neighbour from another region, like the picture below implies. ...
1
vote
0answers
35 views

ZonalStatistics crashing in python randomly?

I am running Arc 10.5 on Windows 10 and am having issues with the Spatial Analyst tool ZonalStatisticsAsTable that appears to crash my python script for no reason. I have used this script before and ...
7
votes
1answer
4k views

R raster: masking a raster by polygon also remove cells partially covered?

I want to mask out a raster based on the values of a polygon: i.e., set to NA all values of the raster that are not covered by the polygons. However, it seems that raster::mask() masks out cells (i.e. ...
1
vote
3answers
116 views

Calculate statistics for certain areas of a raster [closed]

I want to calculate the value of certain areas of my raster, which are determined by a polygon layer. I can't use the zonal statistics tool, I receive an error about inputs. How should I do it?(the ...
1
vote
0answers
98 views

Applying mask to 40 Landsat images on ENVI?

I'm new to ENVI and am working on a time series for a section of the Santa Barbara Channel. I have a mask I made from the ROI tool, but was wondering if there is an efficient way to mask all 40 of ...
1
vote
0answers
57 views

How to use raster extract/clip raster in Qgis?

In arcgis, raster like a shp file, could extract another raster.But in Qgis,Raster->Extraction-clip, the mask file must be shp file. My mask raster are compound of many adjacent cells. If converted ...
0
votes
1answer
131 views

Land masking in ArcGIS Raster Calculator?

I'm trying to mask land in a raster and just wondering if anyone knows how to do this. I tried using the raster calculator by producing a new raster based on a threshold value but my output raster is ...
3
votes
2answers
640 views

Apply water mask to a raster layer

I have a vector polygon layer which represents water bodies and I have a raster layer (250m pixel NDVI values). What I need is to mask all pixels in a raster layer that intersect my water mask and ...
10
votes
2answers
428 views

Styling specific layer by using polygon mask in QGIS?

I have a line layer and a polygon layer in QGIS: I would like to style the part of the line layer outside the polygon using one style and the part inside using a different style: I don't want to ...
1
vote
1answer
66 views

Fill values beyond the mask

I have some .tif raster and .shp mask, and I need to fill values in the raster, which are beyond the mask, with -999. How can I do this using QGIS?
1
vote
0answers
395 views

Cloud masking of Sentinel-2 product using SNAP [closed]

I am using Sentinel-2 images in tropical region where almost all image contains clouds which needs to be masked out. What is the best way to remove the clouds from the image in all the bands, is SNAP ...
5
votes
1answer
3k views

rasterio masking with GeoJSON from file issue

I'm trying to load GeoJSON from a file for use with rasterio mask on a GeoTIFF and I can't seem to get the GeoJSON to load properly. I get this error: File "/Users/user/example.py", line 18, in clip ...
2
votes
2answers
214 views

how to Replace masked out cloud areas with another satellite image?

I have a Sentinel 2 image which has heavy cloud cover. I would like to mask out the clouds, and replace these areas with a Landsat 8 image. (1) How do I mask out cloud? (2) how to I replace the ...
0
votes
1answer
129 views

Can a mask layer filter out color, rendering the area covered by the mask into grayscale?

Here I have a transparent mask layer which highlights an area of interest by making the basemap outside the area of interest a lighter color. What I'd like to do is have the masking layer change the ...
1
vote
0answers
180 views

Interpolating (kriging) in ArcMap?

I would like to interpolate with kriging data points from one shapefile that should fill out the Space of another shapefile i am using as a boundary. I have set this boundary under Geoprocessing --> ...
3
votes
1answer
200 views

Including use of Mask in Raster > Vector conversion in QGIS

The Polygonize (raster to vector) tool in QGIS Raster > Conversion menu allows for the use of a mask, however this option is not available in the Processing Modeler. What would be the best way to ...
2
votes
1answer
565 views

Using the same mask on two rasters, but I get different extents in R

I loaded a shapefile in R, and cropped and masked it with the same mask, but I get different extents. Any suggestions? Code below: library(raster) library(rgdal) library(GISTools) library(sp) ...
3
votes
1answer
2k views

Apply cloud mask to sentinel 2 image in SNAP

I want to apply one of the cloud masks in the sentinel 2 file to the sentinel image. The sentinel 2 image I have downloaded features files concerning cirrus and opaque clouds at 10m, 20m and 60m. ...
0
votes
1answer
1k views

Building Masks (0-1 binary image) out of ROIs in Envi Classic?

I have the following 701x551 image in Envi with the shown raster ROIs (By pressing pixelbutton of ROI Tooldialogue window, I've converted the ROIs into raster format but I have access to ROI vectors ...
1
vote
1answer
346 views

Proper Mask functionality

Is there a way to specify a feature of a shapefile or all features within a shapefile to serve as masking features for all other layers within a qgis project? I would like to crop all other features ...
4
votes
1answer
364 views

Associating country to grid cell in R?

I’m trying to solve the following problem. I have a regular grid of points covering Europe nx <- 361 ; ny <- 181 xmin <- -30.0 ; ymin <- 25.0 dx <- 0.25 ; dy <- 0.25 lat <- ...
2
votes
0answers
190 views

Masking casing/outline of line feature (road) within ArcMap? [closed]

I need to mask just the black outline/casing of road features in my map. Here is an example below. I do not want to mask the entire road as seen here but instead just the black lines on each side of ...
4
votes
1answer
484 views

Lapply function on raster iterating through SPDF polygons in R

I have a raster DTM and a SPDF. I'd need to mask a different elevation interval of the DTM within each overlaid polygon. I tried a for loop to iterate through the polygons, but as one might expect ...
1
vote
0answers
112 views

Use WMTS as a mask to clip a polygon in QGIS

I have loaded a WMTS layer. But when I carry out some raster geo-algorithms nothing shows up in the drop down table (i.e. I can't use the raster layer as an input object). How do I make it possible ...