csep.core.regions.masked_region

csep.core.regions.masked_region(region, polygon)[source]

Build a new region based off the coordinates in the polygon.

Parameters
  • region – CartesianGrid2D object

  • polygon – Polygon object

Returns

CartesianGrid2D object

Return type

new_region