Questions tagged [masking]
Covering or hiding features on a map.
95
questions with no upvoted or accepted answers
6
votes
0
answers
3k
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 ...
5
votes
0
answers
378
views
Google Earth Engine: Prevent Cloud mask algorithm for Landsat-8 from masking coastline
I am trying to remove clouds on Landsat image using cloud mask. However, the cloud mask removes even the shoreline that do not have clouds. I don't know why. Is there another way?
(upper: pre-masked ...
4
votes
0
answers
230
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 = [...
3
votes
0
answers
140
views
QGIS - Label masks breaks layer on PDF export
I have a contour lines layer with index labels, which uses masks, it works correctly on the editor and composer as seen below
When exported the layer goes past map boundaries and it's style breaks.
...
3
votes
0
answers
182
views
Merge rasters and clip by a shapefile
I was wondering how to merge multiple TIFF files together and clip the mosaic by the bounds of a intersecting shapefile. I've been able to merge them and output as a .tiff, but am not sure how to to ...
3
votes
0
answers
779
views
Cloud mask algorithms for Sentinel-2 Level-2A data
I am trying to find the best Sentinel-2 cloud mask algorithm for Level-2A data that can be integrated in a Python script and that works well on oceanic areas.
I am working with level-2 data because I ...
3
votes
1
answer
659
views
Masking FeatureCollection using image in Google Earth Engine
I have a FeatureCollection with my study area, and an image with urban areas. I want to remove the areas in my FeatureCollection where the image has urban areas. How can this be done?
var studyArea = ...
3
votes
0
answers
152
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 ...
3
votes
0
answers
894
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 ...
3
votes
0
answers
849
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, ...
3
votes
0
answers
433
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 ...
3
votes
0
answers
4k
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
0
answers
182
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
0
answers
239
views
How to remove black stripes from image?
I'm trying to figure out how to get rid of these black lines in my images by creating a mask using the VV pixels. How can I get rid of these lines?
// Load Sentinel-1 C-band SAR Ground Range ...
2
votes
0
answers
142
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 ...
2
votes
0
answers
1k
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 ...
2
votes
0
answers
175
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 ...
2
votes
1
answer
274
views
Aligning pixels for using GSW as mask layer with Landsat 8 and Global Surface Water (JRC) Layer
I want to isolate some surface water areas on Landsat 8 images by using the Global Surface Water dataset in GEE as mask. After mapping both in the Editor I realized the positions of pixels of GSW and ...
2
votes
0
answers
637
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" ...
2
votes
0
answers
1k
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
0
answers
57
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
1
answer
70
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
0
answers
622
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
0
answers
97
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
0
answers
196
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
0
answers
1k
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
0
answers
392
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
0
answers
496
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
0
answers
288
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
0
answers
14
views
How do I batch-assign NoData values?
I have a number of rasters I need to mosaic together. The areas with data are within a rectangular "nan" envelope. The "nan" envelopes of different rasters overlap each other. No ...
1
vote
0
answers
33
views
Masked raster is completely black when reprojecting and masking in GRASS GIS
I have a global raster of railways networks in Mollweide CRS (resolution 1000x1000) and I want to reproject it to Europe (EPSG:3035), crop it to Europe, and change the resolution to 30x30 km (0.25°).
...
1
vote
0
answers
23
views
Expanding QGIS mask Plugin query
When I select a polygon and I apply the QGIS plug-in mask to it then a buffer is created around the polygon.
The plug-in does this with the following expression in my case:
in_mask(31370)
Can I ...
1
vote
0
answers
20
views
Clip all polygons inside the boundary of provinces to separate and calculate every inside polygons area
I need to calculate area of polygons inside every province but some of polygons are not exactly inside of one province and part of it is in one province and the other part is in another province. How ...
1
vote
0
answers
35
views
Get rid of GeoTIFFs that fall outside the boundary when adjacent GeoTIFFs overlap each other
I am currently working in ArcGIS Desktop 10.4 with data driven pages enabled. I have ten GeoTIFFs with some overlapping into other GeoTIFFs. I want to mask those that are overlapping so when I show a ...
1
vote
0
answers
216
views
Quality Control process for MODIS Leaf Area Index in GEE
I am trying to mask certain features from MODIS LAI image such as cloud cover and image quality. MODIS LAI has two quality control measures - FparLai_QC and FparExtra_QC. I tried doing it with the ...
1
vote
0
answers
52
views
Masking non-vegetation areas in image
I'm having a little trouble masking non-vegetation areas in my images.
I'm using Sentinel-2 images, and I have land use and cover across my country (Brazil). To this end, I reclassified this land use ...
1
vote
1
answer
95
views
Retrieving State Heightmaps (DMTED) - Accuracy possible with QGIS? - Requesting Steps
I need a gmted2010 height map of Massachusetts. Only Massachusetts, including its shoreline, islands, and of course state boundaries.
What I am currently doing, in bullet point form:
I am using https:...
1
vote
0
answers
35
views
How to get novalue data of xyz points
I have multibeam and single beam xyz points.
I am looking to do the exact same process as Patch over raster A with values from raster B where raster A values are nodata in GDAL as I want to infill the ...
1
vote
0
answers
128
views
How to clip polygon by line feature QGIS?
The clip tool will only allow for clipping by another polygon, I would like to clip polygon features by a line feature. Had tried installing the digitizing feature however the cut by lines button is ...
1
vote
0
answers
339
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 ...
1
vote
0
answers
639
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 ...
1
vote
0
answers
1k
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 ...
1
vote
0
answers
44
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 ...
1
vote
0
answers
543
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
0
answers
172
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
0
answers
59
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
0
answers
57
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
0
answers
372
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
0
answers
79
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
0
answers
104
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 ...