pyrocko.gato.grid.base

Classes

Grid(**kwargs)

Base class for Gato grids.

GridSnap(...)

Flag to indicate how grid inconsistencies are handled.

class GridSnap(...) str[source]

Bases: StringChoice

Flag to indicate how grid inconsistencies are handled.

'both': adjust minimum and maximum to be multiples of given spacing. 'min': adjust minimum only. 'max': adjust maximum only. 'fail': raise an error.

class Grid(**kwargs)[source]

Bases: Object

Base class for Gato grids.

Grids can consist of location or slowness vectors.

property shape

Logical shape of the grid.

property size

Number of grid nodes.

property effective_dimension

Number of non-flat dimensions.