Array types (gwpy.types)#

The core Array object and direct subclasses.

These objects form the basic 1-D and 2-D arrays with metadata from which we can build specific data representations like the TimeSeries.

Classes#

Array(value, *[, unit, name, epoch, ...])

Array holding data with a unit, and other metadata.

Array2D(data[, unit, x0, dx, xindex, xunit, ...])

A two-dimensional array with metadata.

Index(value[, unit, dtype, copy, order, ...])

1-D Quantity array for indexing a Series.

Series(value[, unit, x0, dx, xindex, xunit])

A one-dimensional data series.

Class Inheritance Diagram#

digraph inheritance4d30f749de { bgcolor=transparent; rankdir=TB; size="8.0, 12.0"; "Array" [URL="../gwpy.types.Array/#gwpy.types.Array",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Array holding data with a unit, and other metadata."]; "Quantity" -> "Array" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Array2D" [URL="../gwpy.types.Array2D/#gwpy.types.Array2D",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A two-dimensional array with metadata."]; "Series" -> "Array2D" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Index" [URL="../gwpy.types.Index/#gwpy.types.Index",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="1-D `~astropy.units.Quantity` array for indexing a `Series`."]; "Quantity" -> "Index" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Quantity" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A `~astropy.units.Quantity` represents a number with some associated unit."]; "ndarray" -> "Quantity" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Series" [URL="../gwpy.types.Series/#gwpy.types.Series",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A one-dimensional data series."]; "Array" -> "Series" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ndarray" [URL="https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="ndarray(shape, dtype=float, buffer=None, offset=0, strides=None, order=None)"]; }