Questions tagged [masking]
Covering or hiding features on a map.
356
questions
4
votes
3
answers
128
views
Inverted Polygon in ArcGIS Pro
Back when I used QGIS, I symbolized with the 'Inverted Polygon' setting all the time. Mostly it was to create a half-opaque mask around a feature that I wanted to pop out more prominently, but I can't ...
0
votes
1
answer
11
views
Does MapServer allow to set up empty tiles as a return of a webapp request for data outside of the layer mask in MapServer?
Is it possible to set up empty tiles as a return for webapp request of a data outside of the layer mask in MapServer ?
I have a MapServer-based webapp with a layer that uses a mask option to limit ...
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 ...
0
votes
0
answers
17
views
Estimate position of shadows cast by clouds in GEE
I have a script for cloud masking that does its job well:
var START_DATE = ee.Date('2022-06-15');
var END_DATE = ee.Date('2022-07-15');
var MAX_CLOUD_PROBABILITY = 65;
var region = region_name
Map....
1
vote
1
answer
62
views
Google Earth Engine Water Mask and keep non water area
I'm pretty new at GEE.
I want to mask only the water areas for my study area. I want non-water areas to retain their pixel values. For this I detected and masked water areas with NDWI. However, after ...
1
vote
1
answer
23
views
How can I update this function to block out values of NDVI that are greater than or equal to 0.1?
Really new to JavaScript and Google Earth Engine, sorry if formatted badly. I am wondering if there is a way to only calculate an NDVI value that is greater than 0.1 in my .addBands line. If not, how ...
1
vote
2
answers
67
views
How to mask bands of an image based on values of one of the bands using numpy and gdal
I have a raster with two bands, and I want to mask both bands to get data where band "yod" has a value of 2011 and export a new tif file with the same two bands masked.
The following script ...
1
vote
2
answers
74
views
Mask GeoJSON with nested Polygons/Nested donuts
How would I mask a geojson that looks like this
{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":&...
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
2
answers
42
views
Naming clipped files from layer mask?
I have to clip a quite large raster (corn crops) into individuals rows. It's working fine with the "Clip raster by mask layer" tool with a grid I created.
However, I need the clipped images ...
0
votes
0
answers
25
views
Masking NetCDF data onto US counties
I'm a complete beginner in using geographical data. I'm using public NASA satellite data. What I now want to do is to mask this data onto all US counties, i.e. I want to for example show the PM2.5 ...
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 ...
0
votes
0
answers
23
views
Masking Range-Enabled Feature Layers
Is there a way to mask features that have been range-enabled?
I have a range enabled polygon feature of different project boundaries. I am using this range to show/unshow features in bookmarks similar ...
4
votes
3
answers
326
views
Use Raster Layer as a Mask over a polygon in QGIS
I have a raster layer, as seen on the attached image, that works as a background of my working area. The red line, that marks the limit between the two countries, is a .shp file that, naturally, goes ...
0
votes
1
answer
62
views
s2cloudless sometimes masking out fields
I have implemented the s2cloudless code as written in the official documentation. The only changes I did were:
Skipping the step where the median is calculated (I aim to do a time-series analysis);
...
0
votes
0
answers
60
views
Fully removing raster values that have been masked out
I want to fully delete the values to this suitability raster that have been masked out. When I apply the mask (feature layer -> appearance -> masking) the stretch does not rescale. It is ...
0
votes
0
answers
61
views
Masked image collection bands showing "masked" as values in GEE
I am using this cloud masking code (opens into GEE) as it takes cloud shadow into account. When I run it without any editing, it works well. However, I am not interested in the median. I need to ...
0
votes
1
answer
56
views
How to make multiclass color mask based on polygons (osgeo.gdal python)?
I know how to make binary 1-band mask in python with
osgeo.gdal.Rasterize(src, shp_file_name, burnValues=[1])
But what if I have several classes and want to make 3-band mask with different colors for ...
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 ...
2
votes
1
answer
308
views
How to use Turf mask when Polygon has islands in inner rings/inner rings
I am getting some weird result with turf.mask().
This is the polygon I am trying to run the mask() function with: https://gist.githubusercontent.com/Stophface/50155878441205412001247878f58b63/raw/...
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
1
answer
181
views
Masking in rasterio changes the values the output file
I am masking a raster file using rasterio. I am doing this using the mask function. The result of the masking changes the value of the pixels when loaded to GIS.
import fiona
import rasterio
import ...
1
vote
1
answer
366
views
Mask NetCDF data in Python with shapefile
Precursor to this question: Masking NetCDF data with a shapefile in that has more than one variable Python. Note: Data files are in the previous question.
I am trying to mask my polygon but I don't ...
0
votes
0
answers
112
views
Turf.js with multiple webworkers for point transformation 48 core CPU
I need to split a GeoJSON file to multiple parts engaging about 10 web workers to do some point transformation using turf.js. Afterwards, the returned processed data will need to be appended to form ...
0
votes
1
answer
137
views
Split categorical image into multi-band image in Google Earth Engine, where every band only contains pixels from one category
Context
I need to calculate the yearly forest area lost for every country, based on the Hansen Tree Cover Loss (TCL) image. The band I use is categorical and indicates the lossyear in the form of an ...
0
votes
1
answer
46
views
Stacked image created, while most of the bands became masked
I am trying to do a crop-type classification, so I created a stacked image from my collection for training by RF. However, when the collection is stacked, most of the bands inside the stacked image ...
1
vote
1
answer
167
views
How to get rolling count of masked pixels in Google Earth Engine
Using the Global Forecast System from NOAA, which provides relative humidity (RH) estimates several hours in to the future (up to 16 days to be exact). I create a binary of the RH, call it leaf ...
1
vote
2
answers
221
views
Sample Regions - excludes points with masked bands. Google Earth Engine
I have a set of points from around the world and I want to extract the pixel values from a set of images, giving information about the local environment, for each point. Then export the set of values ...
0
votes
0
answers
38
views
Raster masking keep old extent
I want to clip a raster file using for mask other raster file and in SAGA GIS provider tool QGIS QGIS Processing | Raster Tools | raster masking .
I realized the new masking file keeps in the ...
3
votes
1
answer
59
views
Fixing errors in old DTM in QGIS
I'm currently working on fixing some errors in some old DTMs.
The issue is there are pixels with a value of "-1.4013e-45" which are all over the rasters. I'm looking for a way to remove ...
0
votes
1
answer
205
views
rasterio.fill.fillnodata doesn't work as expected
I have a DEM of a lake bottom, that contains a few holes (nodata) which I'd like to fill. For that purpose i'm using rasterio's fillnodata with a mask. Unfortunatly, I don't get the results I am ...
2
votes
1
answer
220
views
Google Earth Engine: can I use multiple masks?
I am trying to use GEE to get temperature rasters. I am using the Daymet data, pulling every day of the year in 2011 in a county in New York, USA. I want to exclude temperatures less than 10 C and ...
3
votes
1
answer
53
views
Delimit the loading "zone" in a shapefile
I have to make several atlases of a large region in France. My study area is relatively small compared to the entire region. However, most of my layers are related to the entire region.
As I intend to ...
5
votes
1
answer
706
views
How to mask everything but a polygon in QGIS?
I am able to draw polygons over areas of interest in QGIS. For example via: Layer -> Create Layer -> New Temporary Scratch Layer, name the layer, select Polygon as Geometry type, OK, select the ...
0
votes
1
answer
1k
views
Clip a GeoTIFF based on a bounding box coordinates using rasterio
I would like to clip a geodaframe based on coordinates. Let's say that I have the following bounding box from a GeoPandas dataframe. The projection is mollweide.
gdf.boundary.plot()
gdf.total_bounds
...
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.
...
1
vote
1
answer
260
views
Clipping raster by raster (0-1 range) using QGIS
I am supposed to clip 6 raster files of Europe by a raster of agricultural land in Europe (mask layer). Initially, to do that I vectorised my mask layer and then clipped the rasters by that. It seemed ...
1
vote
0
answers
14
views
Remove inner side of mask layer from raster (equivalent of clip raster by mask for the inner side, instead of outside) [duplicate]
Objective:
Clip raster by a mask but remove area interior to the mask (instead of the default exterior area, when using clip raster by mask)
Details of Attempts:
Clipping raster using the outer ...
0
votes
0
answers
59
views
Create new shapefile layer per raster layer
In QGIS i have several hundreds raster tiles. For a deep learning application i would like to create segementation masks. To achieve this, my approach is to make a new shapefile, create the polygon ...
0
votes
1
answer
288
views
Output raster of rasterio.mask doesn't match CRS of input [closed]
I'm trying to mask a raster with population data with my area of interest. I reprojected the original population raster according to the AOI's crs, but after masking and writing the new file, the crs ...
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
306
views
Indexing Sentinel 2 image collection using several conditions
I want to mask water bodies with two different conditions and then add the two indexed layers together to create one layer with different values of 0 (no water), 1 (water: based on index 1), 2 (water: ...
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 ...
0
votes
1
answer
56
views
Looping with a variable r.mapcalc GRASS GIS
I want to crop a raster based on another one, inside a loop. I created a mask (MASK) and then cropped the old raster (old), creating a new raster (new).
r.mask vector=EU@PERMANENT #my mask
r.mapcalc &...
0
votes
0
answers
599
views
Earth Engine: Landsat 8 QA_PIXEL issues with cloud, shadow, and land masking
Using the QA_PIXEL band in Landsat 8 to mask out clouds, cloud shadow, and land often masks out large areas of water. The QA_PIXEL band identifies these water areas as land and cloud shadow, when this ...
0
votes
1
answer
204
views
Change missing areas value(0) to other in Google Dynamic World Landcover Yearly Mode Mosaic to not mix with water class (also 0)
When I create a yearly mode mosaic using Google Dynamic World Landcover Data, the areas with missing landcover values especially in high Himalayan regions(perhaps due to the 35% cloud threshold) are ...
0
votes
1
answer
2k
views
How to mask raster based on vector shape file
For this work Data are obtained from:-
For Raster:-https://download.hermes.com.np/land-cover-map-of-nepal-2010/.
For Vector :-https://cellapp.co/download-nepals-new-map-vector-image/.
Rupandehi ...
2
votes
1
answer
120
views
Use polygon lines to create masks
Given a tile (the cropped base map in the left) and polylines (red lines), is there any tool/workflow in QGIS to convert them into masks in the right?
0
votes
2
answers
558
views
Delete single pixels (noise) from raster
I have a raster layer (based on Landsat (30x30m)) of newly emergent lakes after spring snowmelt and subsequent runoff. These are stored in a raster layer. When I look at it, there is a lot of noise (...