Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [masking]

The tag has no usage guidance.

0
votes
1answer
17 views

Vectorizing large-scale binary layer in Google Earth Engine?

I would like to vectorize binary raster layers in Google Earth Engine in order to be able to use the geometry of the resulting FeatureCollection in other tasks (e.g. clipping data or similar things). ...
1
vote
1answer
44 views

Masking GeoTIFF file after GeoJSON through rasterio - “Input shapes do not overlap raster”

So my intention is quite simple: I have a 4-Band TIFF file I want to crop after a polygon shape. However, I'm getting the following two exceptions WindowError: windows do not intersect ValueError: ...
0
votes
1answer
17 views

ENVI 5.1 - ANN Classification - Background was classified into one of the class

I'm new to Remote Sensing and I'm having trouble in ENVI 5.1 where the background was classified as one of the classes in the ROI I used, which is not right. How can I exclude the background or at ...
0
votes
1answer
30 views

R: Annual composite based on the median: How to get the index of the original layer for each pixel?

What I want: I have a list of rasterstacks which are timeseries (300+ layers) for different bands. The timeseries are irregular, and therefore I want to create annual composites based on median ndvi. ...
0
votes
0answers
15 views

Applying a Cloud Mask to Landsat 4 Surface Reflectance Image Collection

I am trying to add a cloud mask t the entire image collection for Landsat 4 Surface Reflectance. I want to do this so that I can track the change in EVI in a location over time. I tried to implement ...
1
vote
0answers
35 views

Summarising all the (NDVI) values pixelwise for a masked polygon

A .tif image has been created using the NDVI formula in QGIS. The resulting image shows a region, with varying grades of NDVI values over the image. A .shp file has then been created for an area of ...
0
votes
2answers
32 views

Some edges of raster switch to a value of 0 when clipped and pixels are shifted on QGIS

I am trying to clip trees out of a raster layer using polygon I've traced around them. I've created one polygon that I've copied for each tree so that each clipped raster contains the same width and ...
0
votes
1answer
39 views

Draw a mask on a TIFF file

I have a raster (TIFF file) and I would like to draw a mask on it. So, I basically create a shapefile and draw polygons on the area I wanted to mask. Then, I would like to rasterize this shapefile by ...
1
vote
1answer
67 views

Hiding polygons outside of current atlas feature in QGIS? [duplicate]

Within the above image, I would like to ideally hide the polygons outside the current atlas feature (some to the east and also to the west - these are part of other atlas features) They are currently ...
1
vote
1answer
64 views

Get pixel values from a raster using a multipartpolygon

I'm trying to get the mean value of pixels from an NDVI raster, that intersect the geometry of a FeatureCollection, that is a multipart polygon which represents my sample area, but I can't find the ...
3
votes
0answers
273 views

Make a grid map in Leaflet

I want to draw a grid map based on the temperature values in Leaflet. Similar to the illustration below. Input data: lat, lon, temperature values, cities' names Parameters: the dimensions of the ...
1
vote
3answers
52 views

Sequential cloud mask closest to date in Google Earth Engine

I'm interested in transitions that occur on a date, such as bushfires. I want to get the closest (in time) cloud-free landsat image possible using as many images as necessary in the collection up ...
0
votes
0answers
25 views

Rasterizing 3 dimensional dxf to mask netCDF?

I have difficulty in rasterizing 3 dimensional dxf (single building) to mask netCDF using GRASS, Blender, or Qgis. I want the mask netCDF to have value 1 in interior of the building and zero value ...
1
vote
2answers
219 views

Creating opacity mask in Google Earth Engine?

I have an NDSI snow layer loaded in Google Earth Engine. Since snow is present for values <0.4, I want to make values >0.4 opaque. I looked at the manual's examples, but this code is not giving me ...
1
vote
0answers
30 views

Does anyone know why I'm getting a completely black geotiff as a result of this shapefile cut out of another geotiff in rasterio?

I am using rasterio to cut out the shape of a lake outlined in my shapefile from a geotiff. When using a shapefile of a singular lake with a geotiff, this works perfectly, but not when cutting out a ...
0
votes
1answer
96 views

Apply a mask to multiple images(for same geo location) in a image collection

I have a image collection which holds multiple images of the same area. I can apply mask individually to those images but how do I apply a mask to all the images in the collection. Say the mask i have ...
0
votes
0answers
24 views

Masking Out Pansharpened Image with Shapefile using ArcPy?

There are 10 shapefiles of 10 agricultural fields in an area. Pansharpened image of the whole area was provided. I want to mask out pansharpened image of each field with the shapefiles. The following ...
2
votes
1answer
102 views

Improving mask in QGIS?

I have created a mask with the NIR band to separate earth from the sea. How can I delete little spot area (errors) in the mask or change the pixel value of these spot areas ?
3
votes
1answer
76 views

Masking LiDAR points to create DEM in ArcGIS Pro with ArcPy?

I have an irregular LiDAR point cloud dataset, so when I try to create a DEM or DSM, the points are connected across the irregular edges of the LiDAR point cloud. I thought that creating a mask ...
0
votes
0answers
50 views

how to mask out some pixel with certain values

can anyone guide me how to mask a raster using threshold values in Python/gdal? for example make out values bigger than 200!
3
votes
0answers
87 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
24 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
151 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') // ...
0
votes
0answers
96 views

Masking out cloud cover

How to mask out cloud cover in a LISS 3 image using Erdas Imagine? I did not find the appropriate tool for masking clouds in an image in the Erdas imagine environment.
0
votes
0answers
25 views

Create polygon mask out of SAR Geom range azimuth coordinates

I have a SAR image, say s_img1, and a subset of min/max list of vertices as [(min_azimuth, min_range), (min_azimuth, max_range), (max_azimuth, min_range), (max_azimuth, max_range)] i.e they are a part ...
1
vote
2answers
242 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
73 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
756 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
34 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
473 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
84 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
728 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. ...
0
votes
1answer
166 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
259 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 ...
1
vote
0answers
34 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
122 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
64 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
85 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
94 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
489 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
2k 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
62 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 ...
3
votes
0answers
1k 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
534 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
333 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
1k 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
63 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
481 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
270 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
28 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 ...