Combine Multiple Files¶
ETHOS.GeoKit's RegionMask object provides a powerful way to combine and analyze raster and vector data within a specific region of interest. RegionMasks can be created from shapefiles, geometries, or extent objects combined with Boolean numpy arrays, making them flexible tools for spatial analysis workflows.
You can use the RegionMask object to:
Create and Inspect a RegionMask¶
- Create RegionMask objects from various sources
- From shapefiles (via
.load()) - From geometry objects such as boxes or polygons (via
.load()) - From extent objects combined with Boolean numpy arrays (via
.fromMask())
- From shapefiles (via
- Query RegionMask properties such as extent, pixel size, and area
Warp Rasters to RegionMask Context¶
- Align and warp raster data to a RegionMask's coordinate system and extent
- Filter raster data to extract only values within the region boundary
- Extract statistical information from the masked raster data
Create Rasters from RegionMask¶
- Create raster files from numpy arrays using a RegionMask as the spatial extent and coordinate reference system
- Automatically handle raster geospatial metadata (CRS, projection, pixel alignment)
Extract Vector Features within a Region¶
- Extract vector features (such as point locations or geometries) that fall within a RegionMask's boundaries (via
.extractFeatures()) - Filter vector data based on spatial location
Indicate Features with Optional Buffering¶
- Create binary raster representations of vector features within a RegionMask (via
.indicateFeatures()) - Apply buffer zones around features to expand their influence area
- Use '1' to indicate feature presence and '0' for absence
Indicate Raster Values with Thresholds and Buffering¶
- Identify regions within a raster that contain specific values or fall within a value range (via
.indicateValues()) - Create binary masks indicating raster value thresholds
- Apply buffer zones around identified value regions for expanded analysis areas