Questions tagged [masking]

The tag has no usage guidance.

47 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
180 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- ...
4
votes
0answers
2k 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
157 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
642 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
1answer
117 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 ...
3
votes
0answers
145 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
99 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
0answers
41 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
148 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
0answers
31 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
383 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
85 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
134 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
757 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
279 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
392 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
1answer
41 views

Mask water bodies in GEE

I'm trying to to detect changes in land surface over few periods in a specific polygon. The problem is that I want to block water bodies from my calculations. How can I do it? This is the code I ...
1
vote
1answer
30 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 ...
1
vote
0answers
48 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
46 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
45 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
62 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
1answer
88 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 ...
1
vote
0answers
62 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
42 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
402 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
87 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
35 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
98 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
57 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
178 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
112 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
121 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
191 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
301 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
1k 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
1answer
12 views

Give non-overlapping parts of 2 rasters a value 0 (QGIS)

Is there a way in QGIS to give non-overlapping parts of 2 rasters a value of 0 in the new raster file? I would like the data gaps in the velocity file (so where Ice mask is displayed on the chart) ...
0
votes
0answers
49 views

Clipping raster by feature using GDAL in QGIS?

I have successfully selected the feature from a shapefile (boundary) and intend to use this as a mask to clip the raster map underneath. However, having followed instructions when I open the GDAL > ...
0
votes
0answers
12 views

Why the Masking in ENVI does not give different statistical result

I want to run statistical band correlation of an image in ENVI. The image has been masked with polygon of interest, and shows no-data value outside the polygon. I expected that it calculated only the ...
0
votes
0answers
38 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
60 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
91 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 ...
0
votes
1answer
67 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
0answers
42 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 ...
0
votes
1answer
297 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
89 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 ...