pyrocko.model.geometry

Representation of geometrical objects built from vertices, faces, outlines, etc.

Functions

reduce_array_dims(array)

Support function to reduce output array ndims from table

Classes

Geometry(**kwargs)

Spatial (and temporal) distributed properties of an event

reduce_array_dims(array)[source]

Support function to reduce output array ndims from table

class Geometry(**kwargs)[source]

Bases: Object

Spatial (and temporal) distributed properties of an event

The Geometry object allows to store properties of an event in a spatial (and temporal) distributed manner. For a set of planes (“faces”), characterized by their corner points (“vertices”), properties are stored. Also information on the outline of the source are stored.

properties

pyrocko.table.Table, optional, default: Table()

Properties that should be displayable on the surface of the geometry. If 2d time dependency in column directions.

vertices

pyrocko.table.Table, optional, default: Table()

Vertices of the mesh of the geometry. Expected to be (lat,lon,north,east,depth) for each vertex.

faces

pyrocko.table.Table, optional, default: Table()

Face integer indexes to the respective vertices. Indexes belonging to one polygon have to be given row-wise.

outlines

list of pyrocko.table.Table objects, optional, default: []

List of vertices of the mesh of the outlines of the geometry. Expected to be (lat,lon,north,east,depth) for each vertex(outline).

event

pyrocko.model.event.Event, default: Event()

times

numpy.ndarray (pyrocko.guts_array.Array), optional

1d vector of times [s] wrt. event time for which properties have value. Must have constant delta t

property deltat

Sampling rate of properties (time difference) [s]