Documentation
¶
Overview ¶
Package gw is gravitational waves as the LIGO, Virgo and Kagra detectors publish them through the gravitational wave open science centre, called the centre here: the events of its catalogues, each with its estimates and their credible intervals, read into si units.
gw knows the centre's format, not its parameters' meanings: an event holds every estimate the centre gives under the centre's own name for it, and a caller asks for one by that name. A value the centre leaves blank is absent, never nought, and a bound it leaves blank is unknown.
Units arrive as strings, M_sun or Mpc; each is turned into si as it is read, by a table of the strings the centre writes, and a string not in the table is refused. Time is the event's gps time, as a sky.Instant.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrAbsent ¶
func ErrAbsent() error
ErrAbsent is a parameter an event has no estimate for: the centre left it blank, or never gave it.
Types ¶
type Estimate ¶
type Estimate struct {
// contains filtered or unexported fields
}
Estimate is a value the centre publishes for an event, in si units, and its credible interval, as the centre states it: how far below and above the value the interval runs. the centre gives ninety per cent intervals. A bound it leaves blank is unknown.
func (*Estimate) Interval ¶
Interval is the lowest and highest the credible interval reaches, and whether the centre gave both its bounds. When it did not, the interval is not known and the two are the value.
func (*Estimate) String ¶
String is the estimate as the centre writes it: the value, the interval's reach below and above, and the unit.
type Estimator ¶
Estimator gives an event's estimates, by the centre's name for each parameter: an Event is one. A caller that works from an event's estimates takes an Estimator, so its tests stand a mock in (celestial/mocks) and expect its calls.
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
Event is a merger as a the centre catalogue lists it: its name and version, the catalogue it is in, its gps time, and every estimate the centre gives for it, by the centre's name for the parameter.
func ReadEvents ¶
ReadEvents is every event in the centre's event json, as its event api gives it: an object of events, each keyed by its name and version. It refuses a file that is not that, an event without its name or gps time, and a unit gw has no conversion for, and then gives none.
func (*Event) Estimate ¶
Estimate is the event's estimate of a parameter, by the centre's name for it. It refuses a parameter the event has no estimate for, and then gives none.
func (*Event) Parameters ¶
Parameters is the name of every parameter the event has an estimate for, in order.