Documentation
¶
Overview ¶
Package gw reads LIGO, Virgo, and Kagra catalogue events from the Gravitational Wave Open Science Center, called the centre here. Estimates and credible intervals are converted to SI as they are read; event times become sky.Instant values on the GPS scale.
Parameters retain the centre’s names. A caller chooses which estimates to interpret; the reader does not guess their meaning. Missing values remain absent rather than becoming zero, and missing interval bounds remain unknown.
Unit strings such as M_sun and Mpc use explicit conversions. Unknown unit strings return an error instead of leaving a value in ambiguous units.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Estimate ¶
type Estimate struct {
// contains filtered or unexported fields
}
Estimate stores a catalogue value in SI with its reported 90% credible interval. Bounds are offsets below and above the central value; a missing bound leaves the interval unknown.
func (*Estimate) Interval ¶
Interval returns absolute lower and upper limits and whether both bounds were reported. If either is missing, both returned endpoints equal Value and known is false.
type Estimator ¶
Estimator supplies estimates by the centre’s parameter names. Event implements it; callers can use the generated mock to test estimate handling separately from catalogue parsing.
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
Event holds one versioned catalogue event: name, catalogue, GPS time, and estimates under the centre’s original parameter names.
func ReadEvents ¶
ReadEvents parses the centre’s event-API JSON and returns events in key order. It rejects malformed or empty event objects, missing names or GPS times, unsupported units, and bounds on the wrong side of their estimates. Invalid GPS times retain the sky conversion error.
func (*Event) Estimate ¶
Estimate looks up a reported parameter. A blank or absent value returns an error rather than an invented zero.
func (*Event) Parameters ¶
Parameters returns estimated parameter names in sorted order.