pypago.areas

This function allows to extract spatial domains, by giving its section boundaries.

Functions

extract_dom_from_pol(grid, lonpol, latpol) Extracts the i, j indexes of the grid domain by provinding the longitudes and latitudes of a polygon.

Classes

Areas(grid, name, i, j[, secnames, signs]) Domain area class
class Areas(grid, name, i, j, secnames=None, signs=None)[source]

Domain area class

finalplot(grid, gridsec=None, ax=None)[source]

Draws the areas mask. It draws the model mask and the model sections, and it fills the mask of the area

Parameters:
extract_dom_from_pol(grid, lonpol, latpol)[source]

Extracts the i, j indexes of the grid domain by provinding the longitudes and latitudes of a polygon.

Parameters:
  • grid (pypago.grid.Grid) – Input grid
  • lonpol (numpy.array) – Polygon longitude
  • lonpol – Polygon latitude
Returns:

A tuple containing the i, j indexes of the domain point within the domain.

Return type:

tuple