Questions tagged [extract-by-mask]

Isolating particular cells to a new raster based on overlap with another raster or vector layer, or specified values/ranges.

1
vote
1answer
23 views

Is there an alternative function which does the same thing as clip raster by masked layer on QGIS?

I am having some technical problems with the clip raster by masked layer and I faintly remember using a different method a long time ago for a similar problem. Anybody familiar with another function?
0
votes
1answer
38 views

Mask with ring polygon in R?

I'm trying to mask a raster with a ring polygon using the function raster::mask, but only recognizes the outer edges of the polygon, can anyone help me with this? I only need the pixels within the ...
0
votes
1answer
28 views

Count number of pixels from .msk in Python to derive study area size

Apologies I am totally new to GIS in Python. I am trying to find out the total area of the Barents Sea mask the NSIDC use to calculate their products and therefore I need to know how many pixels the ...
1
vote
1answer
37 views

How to mask a raster layer to only include specific values in QGIS?

I'm attempting to reduce a raster layer, wherein each point represents night-time luminosity/intensity of city lights, to include only those pixels with values in the top 10% of values. Effectively, I'...
1
vote
1answer
27 views

Select area from raster layer as a new layer

In qgis 3.4.6, I tried to select an area from a raster map, to use the cropped area as a new layer or export the cropped area as a geotiff. I'm trying to use "Raster/Extraction/Clip Raster by Extent",...
0
votes
0answers
35 views

QGIS 3.6--Error— Creation of data source failed: unable to open database file

I have been working on 3 predators' data layer files. I created a vector point shapefile for each predator prior to do a heatmap (GeoTIFF file) for each data layer file. In order to extract 50% of ...
0
votes
0answers
3 views

Additional mask files

I used the tool "Extract by Mask" to clip a raster. It resulted in 5 tif images: mask, maskc1, maskc2, maskc3, and maskc4. What are the maskc1-4 files? They're large and I'd like to delete them if ...
0
votes
1answer
94 views

Clip bathymetry raster file from vector mask layer its not working in QGIS 3.4.3

I'm trying to extract bathymetry of Mediterranean Sea raster GeoTIFF file (downloaded from https://www.bodc.ac.uk/data/hosted_data_systems/gebco_gridded_bathymetry_data/gebco_30_second_grid/) from ...
1
vote
1answer
34 views

Extract By Mask - Raster Horizontal Shift

Is there a way to snap a raster/DEM to a mosaic dataset? I am using the Extract By Mask tool in ArcPro on a mosaic dataset. The output raster's cell values do not match the original mosaic dataset it ...
1
vote
1answer
108 views

Reprojection of satellite images mosaic to CRS with latitude and longitudes

I downloaded MODIS product MOD13A1 for India. Then mosaiced the granules in GeoTIFF format using rasterio Python library. I have the appropriate shapefile to mask the mosaiced raster. After mosaicing ...
1
vote
2answers
213 views

Extract by Mask tool not clipping to mask extent?

I am using ArcMap 10.4.1. I am using the Extract by Mask tool to clip a raster using a polygon shapefile. When the tool finishes running, the output raster does not fill the entire mask extent (see ...
1
vote
1answer
60 views

QGIS Mask - Error Code

I am trying to interpolate points and then clip the interpolation with a Raster> Extraction> Clipper. I receive an error code after trying to mask over the region I am interested in. Would you ...
1
vote
0answers
32 views

Does ArcGIS Desktop have similar tool to QGIS Clip raster by Mask layer which creates and outputs alpha band on request?

This QGIS tool creates an alpha band by clipping an image with a polygon. https://docs.qgis.org/2.8/en/docs/user_manual/processing_algs/gdalogr/gdal_extraction/cliprasterbymasklayer.html Is there an ...
0
votes
0answers
109 views

Clip raster by mask layer gdalwarp error in QGIS

I've been trying to find why my gdalwarp isn't allowing me to clip a raster to the shape of a shapefile. GDAL command: gdalwarp -ot Byte -of GTiff -cutline /Users/johnmorris/Desktop/Geodata/...
1
vote
1answer
484 views

Google Earth Engine, how to distinguish between rivers/streams and ponds/lakes in a water mask

I am trying to pull out every lake and pond in a region of SW Alaska. I have successfully identified all water features using the following code: // study area var rect = ee.Geometry.Rectangle([-168, ...
1
vote
1answer
100 views

Clipping raster with shapefile and exporting each raster subset using ArcPy?

I want to clip a raster image using a shapefile with differents polygons (each polygon have its "FID_malla" value [FID_malla is large data type]) and save the subset rasters individually with "...
1
vote
0answers
151 views

Exporting NetCDF layers as individual rasters? [closed]

I have a NetCDF (CRU diurnal temperature data) for each year and month from 1901 to the 2016. I would like to export individual rasters for a selection of the year and month options. I would like ...
0
votes
0answers
33 views

Extraction by mask using a polygon changes the cell counts on each category?

I am attempting to use Extraction by Mask on a raster set (land use) to gather the cell counts of each category. The data is from a county level and the polygon I am using is a specific city within ...
1
vote
0answers
60 views

Different outputs from Clip_management and ExtractByMask

I have a question about clipping a part from a raster according to the extent of a polygon. Should Clip_management and ExtractByMask create the same results if I set the "NO_MAINTAIN_EXTENT" option ...
1
vote
1answer
76 views

Average of polygons within mask polygon

I have two shapefiles. One consists of squared grid cells and contains ... let's say precipitation data. The other one was downloaded from NaturalEarthData and contains country-internal administrative ...
1
vote
1answer
615 views

Error clipping raster files in QGIS?

I have a series of raster files I´d like to clip to the same extent. To do so I am using a shapefile as mask through the method (raster >extraction> clipper) but every time I do so I keep getting the ...
1
vote
1answer
60 views

How to clip specific cells from raster that aren't fully covered by mask?

I have two data layers of the same geographic area, one which has a much coarser resolution and the other that is a much finer resolution. As such, the first layer has some cells that do not overlay ...
1
vote
3answers
3k views

Iterate through features to use selection as input for ExtractByMask

I need to iterate through each of the features of a feature class successively to use each one as the mask to extract from a raster with the ExtractByMask tool. Basically I'm looking for the "Iterate ...
1
vote
3answers
642 views

Extract by mask

I have a netCDF file. After converting the file into a Raster layer, I extract it for my study area i.e Pakistan. After applying the extract by mask tool the extracted raster layer does not properly ...
1
vote
1answer
88 views

Extracting multiple shapefiles by mask

I have one shapefile which is divided into multiple villages (polygons). I can see the name of the villages from attribute table of the shapefile. For each village, I want to extract elevation from ...
1
vote
1answer
249 views

Cell size changing when cropping a raster

I am cropping a large raster with the extent of a smaller one. The printout for large: class : RasterLayer dimensions : 6327, 12697, 80333919 (nrow, ncol, ncell) resolution : 463.3127, 463....
6
votes
1answer
130 views

Extract By Mask gives different result (and WARNING 000622) in ArcPy than from tool dialog?

I'm using ArcMap 10.3.1 When I use the gp tool to extract by mask, I get the correct result with any area outside the mask set as NoData. When I do the same thing in a script, I end up with cells ...
0
votes
1answer
43 views

Extract Specific Raster Cells From Gridded Shapefile

I have a raster image with a corresponding shapefile grid in which I am looking to extract an individual piece of that image using a single grid of the entire shapefile. The gridded shapefile is ...
2
votes
1answer
349 views

Need to Extract by Mask on Features in a Feature Class

I have a polygon feature class of a country that has water basin polygons as individual features. I am trying iterate each feature and Extract by Mask using a set of rasters - for instance on Basin_ID ...
1
vote
1answer
232 views

Export raster with one band only using gdalwarp in extracting raster using shapefile via python script? QGIS 2.18

This code of mine is written to extract raster using a particular shapefile in PyQGIS: import subprocess, os, glob, gdal result_path = "/data/brent/bukidnon_hansen_data/result_path//" os.chdir("/data/...
0
votes
1answer
1k views

Extracting raster by mask outputs raster with extent beyond the mask layer's in QGIS

I'm trying to extract a section of a raster file that overlaps with a polygon shapefile in QGIS 2.18.3. When I run extract, I'm left with a large null value area as part of the extent of the output ...
1
vote
3answers
118 views

Error on Extract to Mask | ArcPy

I am attempting to run Extract by Mask through a loop using Search Cursor, where the Cursor is defined by the row "FID" in a table from a grid shapefile. The code is as follows: import arcpy, os ...
0
votes
1answer
442 views

How to clip mesh files with a mask, and calculate the (3D) area of triangles inside?

I have a georeferenced mesh produced by photogrammetry software such as Agisoft Photoscan. Within this mesh, I have some areas of interest, which I can define with 2D vector masks (on the x and y ...
1
vote
0answers
38 views

Extract raster data by feature attributes/elements

I have a DEM raster, and a shapefile consisting of ~20 lines of steepest descent, created from the "flow Path Tracing" tool in Arc Hydro. Though the lines are all in the same shapefile, I wish to ...
1
vote
4answers
89 views

Clip a shapefile, given a set of coodinates

I need to clip a shapefile, the same way one would use Extract by Polygon on a Raster to achieve a smaller subset of the shapefile. I have previously exployed Extract by Polygon on a Raster and used ...
5
votes
1answer
312 views

Displacement when clip raster by shapefile

I run a script to clip raster by shapefile. Even with layers own the same crs (epsg: 4674) the output raster be displaced. I didn't find out in my script what is caused the error. Here is my code: ""...
0
votes
1answer
46 views

Extract by Mask produces large box

I am using ArcGIS Pro 1.4. I have a shapefile with the boundaries of the countries in Sub-Saharan Africa which I am using as the mask. The raster is a land use data set. When I run Extract by Mask ...
5
votes
2answers
852 views

Mask pixel values in Raster image QGIS

I am looking at classifying an image to identify crop types. I am interested in masking out all other landcover classes except crop class in the band stack false colour composite image e.g. buildings,...
1
vote
0answers
51 views

Function “Extract by Mask” in batch mode - just one resulting layer

I would like to clip 25 raster layers with self-made polygon using "Extract by Mask" function. The problem is that I am still receiving just one processed layer, instead of 25 processed layers. ...
0
votes
1answer
1k views

Building Masks (0-1 binary image) out of ROIs in Envi Classic?

I have the following 701x551 image in Envi with the shown raster ROIs (By pressing pixelbutton of ROI Tooldialogue window, I've converted the ROIs into raster format but I have access to ROI vectors ...
2
votes
1answer
1k views

Clip raster by mask without change values

I am clipping raster by mask with python. My input raster owned Float32, however the output of clipping was Byte. I don't know why? I suspect that transformation of tif to numpy.array is changing ...
0
votes
0answers
101 views

Summing pixel values within polygon zone in ArcGIS Desktop? [duplicate]

My question is the same as Summing pixel values within polygon zone in QGIS? but I'm working with ArcGIS and not QGIS. I have a raster data set with values of type float. And a polygon ...
2
votes
2answers
651 views

Clipper in QGIS with Python Script

I want to use clipper function over a raster layer with the help of mask layer (.shp file) which will produce a clipped raster layer. How this can be done with Python script? I used this script: ...
0
votes
1answer
193 views

Landmasking in SAR geotiff image?

I am working on masking land in a SAR geotiff grayscale image. The image is a tilted one and as I am new to this field, I do not know how to proceed. Also, I searched about rsgislib which provides ...
1
vote
1answer
81 views

ArcGIS extract by mask improper output for polygon with gaps (holes) inside

I'm working with ArcGIS 10.1, and I have used a polygon with gaps (holes) inside it. Extract by mask gives an improper output with removing the horizontal section of the image where those holes are ...
4
votes
3answers
3k views

Avoiding Extract by mask error 999999?

I am iterating through ~300 raster tiles, using a polygon feature class to extract by mask. The model successfully processes the first ~100 tiles and then I get the following error on the same tile ...
0
votes
1answer
298 views

Extracting some part of a satellite image using mask?

I'm trying to extract some part of a satellite Landsat-8 image. using another image. I have the following satellite image: and I want to keep only the areas from the satellite image which are ...
4
votes
1answer
531 views

Error when running Extract by Mask Script

I am using ArcGIS 10.3 Desktop to write a script tool to, among other things, extract raster data using a mask. I keep getting these errors: ExecuteError: ERROR 000875: Output raster: C:\...
1
vote
1answer
129 views

Using ModelBuilder to create smaller individual DEMs from a large DEM using multiple polygon?

How can I use a polygon (which is made up of smaller polygons) to create individual DEMs from a large DEM using the polygons as the mask/extent? I am trying to do this in ModelBuilder and it isn't ...
1
vote
0answers
43 views

exclude value from feature analysis classification (ArcGIS extension)

I am using feature analysis to classify small (mm) round features from the landscape. I have calculated the circularity of each shape and I want to exclude those which are not round enough. Does ...