Documentation
¶
Overview ¶
Package sc3ml is for parsing SeisComPML.
Index ¶
- func Unmarshal(b []byte, s *Seiscomp) error
- type Amplitude
- type Arrival
- type CreationInfo
- type Event
- type EventParameters
- type IdpQuake
- type Magnitude
- type Origin
- type Pick
- type Quake
- type Quality
- type RealQuantity
- type Seiscomp
- type StationMagnitude
- type StationMagnitudeContribution
- type TimeValue
- type WaveformID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Amplitude ¶
type Amplitude struct {
PublicID string `xml:"publicID,attr"`
Amplitude RealQuantity `xml:"amplitude"`
PickID string `xml:"pickID"`
Azimuth float64 // not in the SC3ML - will be mapped from arrival using PickID
Distance float64 // not in the SC3ML - will be mapped from arrival using PickID
}
type CreationInfo ¶
type Event ¶
type Event struct {
PublicID string `xml:"publicID,attr"`
PreferredOriginID string `xml:"preferredOriginID"`
PreferredMagnitudeID string `xml:"preferredMagnitudeID"`
Type string `xml:"type"`
PreferredOrigin Origin
PreferredMagnitude Magnitude
ModificationTime time.Time `xml:"-"` // most recent modification time for all objects in the event. Not in the XML.
CreationInfo CreationInfo `xml:"creationInfo"`
}
type EventParameters ¶
type IdpQuake ¶
type IdpQuake struct {
// contains filtered or unexported fields
}
IdpQuake can be used to implement an idempotent receiver for Quakes. Thread safe.
type Magnitude ¶
type Magnitude struct {
PublicID string `xml:"publicID,attr"`
Magnitude RealQuantity `xml:"magnitude"`
Type string `xml:"type"`
MethodID string `xml:"methodID"`
StationCount int64 `xml:"stationCount"`
StationMagnitudeContributions []StationMagnitudeContribution `xml:"stationMagnitudeContribution"`
}
type Origin ¶
type Origin struct {
PublicID string `xml:"publicID,attr"`
Time TimeValue `xml:"time"`
Latitude RealQuantity `xml:"latitude"`
Longitude RealQuantity `xml:"longitude"`
Depth RealQuantity `xml:"depth"`
DepthType string `xml:"depthType"`
MethodID string `xml:"methodID"`
EarthModelID string `xml:"earthModelID"`
Quality Quality `xml:"quality"`
EvaluationMode string `xml:"evaluationMode"`
EvaluationStatus string `xml:"evaluationStatus"`
Arrivals []Arrival `xml:"arrival"`
StationMagnitudes []StationMagnitude `xml:"stationMagnitude"`
Magnitudes []Magnitude `xml:"magnitude"`
}
type Pick ¶
type Pick struct {
PublicID string `xml:"publicID,attr"`
Time TimeValue `xml:"time"`
WaveformID WaveformID `xml:"waveformID"`
EvaluationMode string `xml:"evaluationMode"`
EvaluationStatus string `xml:"evaluationStatus"`
}
type Quake ¶
type Quake struct {
PublicID string
Type string
AgencyID string
ModificationTime time.Time
Time time.Time
Latitude float64
Longitude float64
Depth float64
DepthType string
MethodID string
EarthModelID string
EvaluationMode string
EvaluationStatus string
UsedPhaseCount int
UsedStationCount int
StandardError float64
AzimuthalGap float64
MinimumDistance float64
Magnitude float64
MagnitudeUncertainty float64
MagnitudeType string
MagnitudeStationCount int
Site string
}
Quake for earthquakes.
func (*Quake) Alert ¶
Alert returns true if the quake should be considered for alerting, false with a reason if not.
type RealQuantity ¶
type Seiscomp ¶
type Seiscomp struct {
XMLns string `xml:"xmlns,attr"`
EventParameters EventParameters `xml:"EventParameters"`
}
type StationMagnitude ¶
type StationMagnitude struct {
PublicID string `xml:"publicID,attr"`
Magnitude RealQuantity `xml:"magnitude"`
Type string `xml:"type"`
AmplitudeID string `xml:"amplitudeID"`
WaveformID WaveformID `xml:"waveformID"`
Amplitude Amplitude
}
type StationMagnitudeContribution ¶
type StationMagnitudeContribution struct {
StationMagnitudeID string `xml:"stationMagnitudeID"`
Weight float64 `xml:"weight"`
Residual float64 `xml:"residual"`
StationMagnitude StationMagnitude
}
Click to show internal directories.
Click to hide internal directories.