Questions tagged [masking]

Covering or hiding features on a map.

66 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
314 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- ...
3
votes
0answers
90 views

Google Earth Engine: Prevent Cloud mask algorithm for Landsat-8 from removing coastline lines

I'm a new Google Earth Engine user an I am trying to remove clouds on Landsat image using cloud mask. However, the cloud mask removes even the shoreline lines, not the clouds. I don't know why. Is ...
3
votes
0answers
329 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 ...
3
votes
0answers
1k 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 ...
3
votes
0answers
3k 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)....
3
votes
0answers
154 views

Open source alternative to the “Contours with Barriers” Tool in ArcGIS

I am trying to create a contour file for the globe for a project and am using open source GIS software packages. I was trained for several years on ArcGIS and there is a tool to create contours with ...
2
votes
0answers
92 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
323 views

Google Earth Engine: Masking land out of Sentinel-3 imagery

I'm trying to isolate ocean cover from OLCI imagery using a bitmask from the quality_flags band. But it's masking all the pixels, and I notice when I mask the ocean and leave the land, the land is ...
2
votes
0answers
285 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, ...
2
votes
1answer
136 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 ...
2
votes
0answers
47 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,...
2
votes
0answers
199 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 ...
2
votes
1answer
40 views

How to include pixels excluded by MASK in GRASS GIS?

I have a 150km x 150km raster layer of elevation. I'm running a cell-by-cell PyGRASS script, with one step that considers all neighboring cells within a fairly large circular radius (25km). To account ...
2
votes
0answers
425 views

Geoserver Dynamic Raster Masking Based on Request Parameter

Is it possible for Geoserver to dynamically mask out values above or below a certain threshold in a WMS or WCS Geo-tiff request? For instance I make a request with some threshold parameter like 49 ...
2
votes
0answers
90 views

Rasterizing Shapefile, using other shapefile as Mask

I have a shapefile (ShapeY) of European extend and want to rasterize each time only a certain area of the shape (ShapeX) (i have the shapes indicating the prevailing extend) with python and QGis. ...
2
votes
0answers
148 views

How to mask only select layers (i.e., exclude some layers from the mask)

is there a way to create a masking layer in QGIS (2.14) that will mask only certain layers, so that some layers (such as baselayer imagery or other) will be unaffected? I'm using geometry generator ...
2
votes
0answers
868 views

Efficient way to resample, crop, and mask a raster image using R

Does anyone know an efficient way to resample an image? I am currently trying to crop a large image and clip two regions from a shapefile. From this clipped image, I would like to increase the pixel ...
2
votes
0answers
317 views

Creating polygons using mask layer?

I looked at this question, but it only answers part of my problem. I want to create Thiessen polygons based off of the green points within the blue polygon boundary ONLY. I've set the Processing ...
2
votes
0answers
417 views

Ecoregions shapefiles: subsetting, extracting and summarizing data from raster

I am attempting to subset and project an ecoregions shapefile from : EPA ECOREGIONS my data set is found here: SHAPEFILES and RASTER When I run this code, two major problems occur: 1) I cannot get the ...
2
votes
0answers
274 views

how to make decent sense from scattered river depth measurements

I sampled river depth at scattered positions and I want to be able to make a map and GIS layers out of it. My problems are: As the river meanders the interpolation I do in scientific packages i,e. ...
1
vote
0answers
12 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 ...
1
vote
0answers
25 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
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
31 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 ...
1
vote
1answer
64 views

Exporting masked image?

In this script, I take an image and mask off everything below certain elevation. The result looks really interesting as one can still see the names of the towns and roads where the image is masked ...
1
vote
1answer
262 views

QGIS: Clip Raster by Mask Layer-permanently remove black edges

I want to introduce geotiff images generated in QGIS by clipping ortho imagery to a shapefile into matlab. However, the clipped raster images come with black borders. I managed to remove them in QGIS (...
1
vote
0answers
107 views

Mask out areas inside a feature collection on Google Earth Engine

I am quite new to javascript and I am trying to apply a mask on an image to exclude areas inside a feature collection, I have seen that for the case of image collections the "mask" and "mask.not" ...
1
vote
0answers
115 views

Filtering anomalous pixels from masked raster in Python?

I am struggling to succesfully filter out anomalous pixels from a Sentinel-1 image band mask (Pixel based), produced in Python. I am new to Python. By anomalies, in this situation, I mean ...
1
vote
0answers
56 views

Why did not I manage to reproject layer?

I have a global land cover map, which has the following properties: Name ESACCI-LC-L4-LCCS-Map-300m-P5Y-2010-v1.6.1 Path C:\QGIS\ESACCI-LC-L4-LCCS-Map-300m-P5Y-2010-v1.6.1.tif\ESACCI-LC-L4-LCCS-...
1
vote
0answers
90 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 ...
1
vote
0answers
108 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 ...
1
vote
0answers
129 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 ...
1
vote
0answers
54 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 ...
1
vote
0answers
646 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
100 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 ...
1
vote
0answers
49 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 ...
1
vote
0answers
107 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
67 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 ...
1
vote
0answers
269 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 --> ...
1
vote
0answers
137 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 ...
1
vote
0answers
129 views

Grass i.landsat.acca says image is cloud free but it is not

I'm working on an area in Amazonia with high cloud persistance which makes global data on land cover quite useless at small scales, so I wanted to learn to process my own Landsat images, with GRASS ...
1
vote
0answers
210 views

Masking in ArcMap

I have question on masking. I have vegetation group layer. Under vegetation group layer, there are 3 layer which are V_Vegetation_Miscellaneous_A, V_Vegetation_Agriculture_A, V_Vegetation_Forest_A. ...
1
vote
0answers
323 views

Mask plugin, Atlas composer and Legend

I'm tryin' to use the mask plugin associated with atlas composer (QGIS 2.7 dev). I'd like to have in the legend of map composer only the features that belong to mask instance (inside the mask). if I ...
1
vote
0answers
2k views

How to generate TTA mask for accuracy assement in eCognition?

I'm learning to use eCognition software recently. I have done the image segmentation for Worldview-2 image. Then, I have processed for classification for class names (e.g forest,built-up area, grass ...
0
votes
0answers
10 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
19 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
10 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....
0
votes
0answers
23 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
27 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 ...