Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrivalFormat ¶
ArrivalFormat describes the values that are in the map returned by ArrivalMap. This can be used for query validation and documentation.
func PickFormat ¶
PickFormat describes the values that are in the map returned by PickMap. This can be used for query validation and documentation.
Types ¶
type Arrival ¶
type Arrival struct { PickID string `xml:"pickID"` Phase string `xml:"phase"` Azimuth float64 `xml:"azimuth"` Distance float64 `xml:"distance"` TimeResidual float64 `xml:"timeResidual"` TimeWeight float64 `xml:"timeWeight"` Pick *Pick }
Arrival for unmarshalling QuakeML
type Event ¶
type Event struct { PreferredOriginID string `xml:"preferredOriginID"` PreferredMagnitudeID string `xml:"preferredMagnitudeID"` O []Origin `xml:"origin"` M []Magnitude `xml:"magnitude"` P []Pick `xml:"pick"` Origins map[string]*Origin Picks map[string]*Pick Magnitudes map[string]*Magnitude PreferredOrigin *Origin PreferredMagnitude *Magnitude }
Event for unmarshalling QuakeML
type EventParameters ¶
type EventParameters struct {
Event Event `xml:"event"`
}
EventParameters for unmarshalling QuakeML
type Magnitude ¶
type Magnitude struct { PublicID string `xml:"publicID,attr"` Mag Mag `xml:"mag"` Type string `xml:"type"` MethodID string `xml:"methodID"` StationCount int `xml:"stationCount"` }
Magnitude for unmarshalling QuakeML
type Origin ¶
type Origin struct { PublicID string `xml:"publicID,attr"` Time TimeValue `xml:"time"` Arrivals []Arrival `xml:"arrival"` }
Origin for unmarshalling QuakeML
func (*Origin) ArrivalMap ¶
ArrivalMap remaps the Arrival information in the QuakeML to allow for user selectable output.
type Pick ¶
type Pick struct { PublicID string `xml:"publicID,attr"` Time TimeValue `xml:"time"` WaveformID WaveformID `xml:"waveformID"` PhaseHint string `xml:"phaseHint"` EvaluationMode string `xml:"evaluationMode"` EvaluationStatus string `xml:"evaluationStatus"` }
Pick for unmarshalling QuakeML
type Quakeml ¶
type Quakeml struct {
EventParameters EventParameters `xml:"eventParameters"`
}
Quakeml the top level container for unmarshalling QuakeML
Reflection is used in parsing so if case doesn't match the names then have to name the corresponding element. Tried changing case of the elements in the XML but it got problematic with namespaces.