Extract Raster by Mask
Overview
Extract data from an input raster using a raster mask. Cells selected by the mask are retained, while unselected cells are written as NoData.
The tool reads the input data according to the defined parameters, performs the corresponding GIS operation, and writes the result as a new dataset.
Use Cases
- Extract raster values inside a valid mask area for focused analysis.
- Use as an intermediate step in a longer GIS processing workflow.
- Improve efficiency for batch processing, repeated runs, or standardized delivery.
Parameters
| Parameter | Description | Notes |
|---|---|---|
| Input raster file | Raster file from which data will be extracted | Required |
| Mask raster file | Raster mask used for extraction | Required |
| Invert mask | True: extract areas where the mask is False; False: extract areas where the mask is True | Optional; default: False |
| Output raster file | Output raster file after mask extraction | Required |
Steps
- Start the tool: Open Geoprocessing Toolbox → Spatial Analysis Tools > Extraction Analysis, then start the Extract Raster by Mask tool pane.
- Prepare input: Select the Input raster file and Mask raster file, then confirm that both datasets are complete and readable.
- Set core parameters: Configure Invert mask based on the required extraction logic.
- Set output: Specify the Output raster file and confirm that the output path, format, and naming rules meet downstream requirements.
- Run and inspect the result: Click Run, then check whether the extracted area and NoData area match expectations.
Notes
- The input raster and mask raster should use the same coordinate system, resolution, extent, and grid alignment.