Stack Exchange Network

Stack Exchange network consists of 175 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.

-1
votes
0answers
25 views

GEE- When I mask two years landsat image with one year data, the error: If one image has no bands, the other must also have no bands. Got 0 and 1

I would like to mask the one year Landsat 5 surface reflectance data with two years landsat 5 surface reflectace data with every 15 days. However, I cannot mask successfully if the one year Landsat 5 ...
2
votes
1answer
21 views

Replacing masked cloud areas with another satellite image?

I have various Landsat images of which many are cloudy. Using the cloud masking plugin available in QGIS, I was able to identify and remove the areas with cloud and cloud shadows from every image. ...
1
vote
0answers
26 views

Raster masking with vector error in QGIS 3.6

I have a global glc-2000 raster map. I would like to clip it to study specific area. I used boundries of continents shapefile as mask. Both of them have same projection. Since I am beginner I have ...
4
votes
2answers
142 views

Masking layers by a vector polygon layer in QGIS

I have a vector layer of buildings: and a polygon layer coloured by some quantity: and I want to mask one by the other to produce this: This can be done by setting the blend mode to "Multiply" with ...
1
vote
1answer
19 views

Trouble with masking

I am trying to mask out a section of an image I created with an algorithm. I create a geometry of the section I want to mask out and clipped that with an image of 1's to create my mask image. But when ...
2
votes
1answer
22 views

Performing localized raster edits using ArcGIS Spatial Analyst?

I have a raster image of water depth, float point values 1-15, in a very small area some erroneous values are in the raster with values of 100 - 375. I'm looking for a repeatable work flow in ArcMap ...
1
vote
2answers
81 views

Visibility analysis with mask for non visible areas?

I have LiDAR data and I've made a Digital Surface Model (DSM): I've made a visibility analysis for 3 buildings with this model: My goal is to know from where the buildings are visible, not what do ...
0
votes
0answers
25 views

Missing raster data from masking with a spatial polygon layer in R

I am fairly new in R and I am trying to create a new raster by using a spatial polygon layer. I have the code written by using the mask function and the output is essentially what I want, but I'm ...
0
votes
0answers
23 views

How to mask a raster layer (interpolated surface) onto a polygon layer? [duplicate]

I have performed interpolation (IDW) for average monthly precipitation and temperature values for Europe. For my project, I'm focusing on the UK and Sweden so I'm wondering can I clip or mask the ...
2
votes
0answers
56 views

Sentinel 3 Cloud Masking in Google Earth Engine

I am new to GEE and I wanted to use this as part of my research. My first step was to mask the clouds off the images. The code i created basically mask out pixels based on the Quality Flag Bit 27, ...
0
votes
0answers
39 views

Function to remove borders and clouds from SENTINEL2

I've been trying to test SENTINEL, and found some functions to clean the clouds and edges of the images, but I do not understand exactly how this function works, and I'm very curious to understand ...
0
votes
0answers
72 views

How delete delete or mask nodata 0 value in the mask

I have raster (with 5 bands) and shapfile in the same projection. I do this script for rastersize and do mask and clip raster or crop raster with mask but I need to have just clip raster without black ...
3
votes
0answers
91 views

Writing masked GeoTIFF in rasterio and visualizing in QGIS?

I have an interpolated raster, which is a masked array, that shows where the data is valid. I want to save it as masked TIFF with rasterio. To test, here's the JSON file, and the code: import ...
1
vote
2answers
199 views

Rasterio error: Input shapes do not overlap raster but reprojection not working

I'm trying to use rasterio (v1.0.13) and fiona to perform a raster clip on a geotiff using a geojson polygon. For reference, the clip works perfectly from the command line using GDAL: gdalwarp -...
1
vote
1answer
42 views

How I get the masking area data and export data in Google Earth Engine?

Here is my code in GEE: var CO = ee.ImageCollection('COPERNICUS/S5P/OFFL/L3_CO') .filterDate('2018-07-04', '2018-07-05') .select("CO_column_number_density"); var CO_merged = CO....
0
votes
1answer
46 views

Google Earth Engine: Problem with the updateMask function

I'm trying to use the updateMask function in GEE but I'm not quite sure how to use it in this occasion. So i did a trend analysis with formaTrend() to analyze the loss of forest cover in an area: ...
0
votes
1answer
42 views

Resample rasters after buffering in R

I have a raster stack that has NULL values from applying a focal buffer. They're not NA values but 0. Each layer shares the same extent, but the layers with the larger buffer widths have more 0 values ...
2
votes
2answers
136 views

Masking random pixels in an image

I have a feature collection that is used as input for a model. In order to validate the model, I would like to mask a random percentage of pixels from each image, i.e. splitting the feature collection ...
0
votes
1answer
95 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
197 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
40 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
49 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. ...
1
vote
0answers
53 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
49 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 ...
1
vote
1answer
116 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
245 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
77 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
491 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
104 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
38 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
425 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
43 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
198 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 ...
2
votes
1answer
125 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
100 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
76 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!
4
votes
0answers
142 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
25 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
211 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
127 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
37 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
413 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
101 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
39 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
658 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
87 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
983 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
252 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
332 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 ...