quake

package
v0.0.0-...-f235a5e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_quake_key_proto protoreflect.FileDescriptor
View Source
var File_quake_quake_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Key

type Key struct {
	QuakeID string `protobuf:"bytes,1,opt,name=quake_iD,json=quakeID,proto3" json:"quake_iD,omitempty"`
	// contains filtered or unexported fields
}

for Kafka message keys.

func (*Key) Descriptor deprecated

func (*Key) Descriptor() ([]byte, []int)

Deprecated: Use Key.ProtoReflect.Descriptor instead.

func (*Key) GetQuakeID

func (x *Key) GetQuakeID() string

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) ProtoReflect

func (x *Key) ProtoReflect() protoreflect.Message

func (*Key) Reset

func (x *Key) Reset()

func (*Key) String

func (x *Key) String() string

type Magnitude

type Magnitude struct {

	// StationMagnitude that have contributed to the Magnitude.
	StationMagnitude     []*StationMagnitude `protobuf:"bytes,1,rep,name=station_magnitude,json=stationMagnitude,proto3" json:"station_magnitude,omitempty"`
	Magnitude            float64             `protobuf:"fixed64,2,opt,name=magnitude,proto3" json:"magnitude,omitempty"`
	MagnitudeUncertainty float64             `protobuf:"fixed64,3,opt,name=magnitude_uncertainty,json=magnitudeUncertainty,proto3" json:"magnitude_uncertainty,omitempty"`
	MagnitudeType        string              `protobuf:"bytes,4,opt,name=magnitude_type,json=magnitudeType,proto3" json:"magnitude_type,omitempty"`
	MagnitudeMethod      string              `protobuf:"bytes,5,opt,name=magnitude_method,json=magnitudeMethod,proto3" json:"magnitude_method,omitempty"`
	StationCount         int64               `protobuf:"varint,6,opt,name=station_count,json=stationCount,proto3" json:"station_count,omitempty"`
	// contains filtered or unexported fields
}

Magnitude represents a quake magnitude.

func (*Magnitude) Descriptor deprecated

func (*Magnitude) Descriptor() ([]byte, []int)

Deprecated: Use Magnitude.ProtoReflect.Descriptor instead.

func (*Magnitude) GetMagnitude

func (x *Magnitude) GetMagnitude() float64

func (*Magnitude) GetMagnitudeMethod

func (x *Magnitude) GetMagnitudeMethod() string

func (*Magnitude) GetMagnitudeType

func (x *Magnitude) GetMagnitudeType() string

func (*Magnitude) GetMagnitudeUncertainty

func (x *Magnitude) GetMagnitudeUncertainty() float64

func (*Magnitude) GetStationCount

func (x *Magnitude) GetStationCount() int64

func (*Magnitude) GetStationMagnitude

func (x *Magnitude) GetStationMagnitude() []*StationMagnitude

func (*Magnitude) ProtoMessage

func (*Magnitude) ProtoMessage()

func (*Magnitude) ProtoReflect

func (x *Magnitude) ProtoReflect() protoreflect.Message

func (*Magnitude) Reset

func (x *Magnitude) Reset()

func (*Magnitude) String

func (x *Magnitude) String() string

type Phase

type Phase struct {
	NetworkCode      string     `protobuf:"bytes,1,opt,name=network_code,json=networkCode,proto3" json:"network_code,omitempty"`
	StationCode      string     `protobuf:"bytes,2,opt,name=station_code,json=stationCode,proto3" json:"station_code,omitempty"`
	LocationCode     string     `protobuf:"bytes,3,opt,name=location_code,json=locationCode,proto3" json:"location_code,omitempty"`
	ChannelCode      string     `protobuf:"bytes,4,opt,name=channel_code,json=channelCode,proto3" json:"channel_code,omitempty"`
	Phase            string     `protobuf:"bytes,5,opt,name=phase,proto3" json:"phase,omitempty"`
	Time             *Timestamp `protobuf:"bytes,6,opt,name=time,proto3" json:"time,omitempty"`
	Residual         float64    `protobuf:"fixed64,7,opt,name=residual,proto3" json:"residual,omitempty"`
	Weight           float64    `protobuf:"fixed64,8,opt,name=weight,proto3" json:"weight,omitempty"`
	Azimuth          float64    `protobuf:"fixed64,9,opt,name=azimuth,proto3" json:"azimuth,omitempty"`
	Distance         float64    `protobuf:"fixed64,10,opt,name=distance,proto3" json:"distance,omitempty"`
	EvaluationMode   string     `protobuf:"bytes,11,opt,name=evaluation_mode,json=evaluationMode,proto3" json:"evaluation_mode,omitempty"`
	EvaluationStatus string     `protobuf:"bytes,12,opt,name=evaluation_status,json=evaluationStatus,proto3" json:"evaluation_status,omitempty"`
	// contains filtered or unexported fields
}

Phase represents a seismic phase.

func (*Phase) Descriptor deprecated

func (*Phase) Descriptor() ([]byte, []int)

Deprecated: Use Phase.ProtoReflect.Descriptor instead.

func (*Phase) GetAzimuth

func (x *Phase) GetAzimuth() float64

func (*Phase) GetChannelCode

func (x *Phase) GetChannelCode() string

func (*Phase) GetDistance

func (x *Phase) GetDistance() float64

func (*Phase) GetEvaluationMode

func (x *Phase) GetEvaluationMode() string

func (*Phase) GetEvaluationStatus

func (x *Phase) GetEvaluationStatus() string

func (*Phase) GetLocationCode

func (x *Phase) GetLocationCode() string

func (*Phase) GetNetworkCode

func (x *Phase) GetNetworkCode() string

func (*Phase) GetPhase

func (x *Phase) GetPhase() string

func (*Phase) GetResidual

func (x *Phase) GetResidual() float64

func (*Phase) GetStationCode

func (x *Phase) GetStationCode() string

func (*Phase) GetTime

func (x *Phase) GetTime() *Timestamp

func (*Phase) GetWeight

func (x *Phase) GetWeight() float64

func (*Phase) ProtoMessage

func (*Phase) ProtoMessage()

func (*Phase) ProtoReflect

func (x *Phase) ProtoReflect() protoreflect.Message

func (*Phase) Reset

func (x *Phase) Reset()

func (*Phase) String

func (x *Phase) String() string

type Quake

type Quake struct {

	// All the Phase used to locate the quake.
	Phases []*Phase `protobuf:"bytes,1,rep,name=phases,proto3" json:"phases,omitempty"`
	// Magnitude all the magnitudes associated with the quake.
	Magnitudes            []*Magnitude `protobuf:"bytes,2,rep,name=magnitudes,proto3" json:"magnitudes,omitempty"`
	PublicID              string       `protobuf:"bytes,10,opt,name=public_iD,json=publicID,proto3" json:"public_iD,omitempty"`
	QuakeType             string       `protobuf:"bytes,11,opt,name=quake_type,json=quakeType,proto3" json:"quake_type,omitempty"`
	Time                  *Timestamp   `protobuf:"bytes,12,opt,name=time,proto3" json:"time,omitempty"`
	Latitude              float64      `protobuf:"fixed64,13,opt,name=latitude,proto3" json:"latitude,omitempty"`
	LatitudeUncertainty   float64      `protobuf:"fixed64,14,opt,name=latitude_uncertainty,json=latitudeUncertainty,proto3" json:"latitude_uncertainty,omitempty"`
	Longitude             float64      `protobuf:"fixed64,15,opt,name=longitude,proto3" json:"longitude,omitempty"`
	LongitudeUncertainty  float64      `protobuf:"fixed64,16,opt,name=longitude_uncertainty,json=longitudeUncertainty,proto3" json:"longitude_uncertainty,omitempty"`
	Depth                 float64      `protobuf:"fixed64,17,opt,name=depth,proto3" json:"depth,omitempty"`
	DepthUncertainty      float64      `protobuf:"fixed64,18,opt,name=depth_uncertainty,json=depthUncertainty,proto3" json:"depth_uncertainty,omitempty"`
	DepthType             string       `protobuf:"bytes,19,opt,name=depth_type,json=depthType,proto3" json:"depth_type,omitempty"`
	Magnitude             float64      `protobuf:"fixed64,20,opt,name=magnitude,proto3" json:"magnitude,omitempty"`
	MagnitudeUncertainty  float64      `protobuf:"fixed64,21,opt,name=magnitude_uncertainty,json=magnitudeUncertainty,proto3" json:"magnitude_uncertainty,omitempty"`
	MagnitudeType         string       `protobuf:"bytes,22,opt,name=magnitude_type,json=magnitudeType,proto3" json:"magnitude_type,omitempty"`
	MagnitudeStationCount int64        `` /* 128-byte string literal not displayed */
	Method                string       `protobuf:"bytes,24,opt,name=method,proto3" json:"method,omitempty"`
	EarthModel            string       `protobuf:"bytes,25,opt,name=earth_model,json=earthModel,proto3" json:"earth_model,omitempty"`
	EvaluationMode        string       `protobuf:"bytes,26,opt,name=evaluation_mode,json=evaluationMode,proto3" json:"evaluation_mode,omitempty"`
	EvaluationStatus      string       `protobuf:"bytes,27,opt,name=evaluation_status,json=evaluationStatus,proto3" json:"evaluation_status,omitempty"`
	UsedPhaseCount        int64        `protobuf:"varint,28,opt,name=used_phase_count,json=usedPhaseCount,proto3" json:"used_phase_count,omitempty"`
	UsedStationCount      int64        `protobuf:"varint,29,opt,name=used_station_count,json=usedStationCount,proto3" json:"used_station_count,omitempty"`
	StandardError         float64      `protobuf:"fixed64,30,opt,name=standard_error,json=standardError,proto3" json:"standard_error,omitempty"`
	AzimuthalGap          float64      `protobuf:"fixed64,31,opt,name=azimuthal_gap,json=azimuthalGap,proto3" json:"azimuthal_gap,omitempty"`
	MinimumDistance       float64      `protobuf:"fixed64,32,opt,name=minimum_distance,json=minimumDistance,proto3" json:"minimum_distance,omitempty"`
	Agency                string       `protobuf:"bytes,33,opt,name=agency,proto3" json:"agency,omitempty"`
	ModificationTime      *Timestamp   `protobuf:"bytes,34,opt,name=modification_time,json=modificationTime,proto3" json:"modification_time,omitempty"`
	// contains filtered or unexported fields
}

Quake is for earthquake information. Field names are chosen to avoid clashes with ksqldb keywords

func Read

func Read(file string) (Quake, error)

func (*Quake) Descriptor deprecated

func (*Quake) Descriptor() ([]byte, []int)

Deprecated: Use Quake.ProtoReflect.Descriptor instead.

func (*Quake) GetAgency

func (x *Quake) GetAgency() string

func (*Quake) GetAzimuthalGap

func (x *Quake) GetAzimuthalGap() float64

func (*Quake) GetDepth

func (x *Quake) GetDepth() float64

func (*Quake) GetDepthType

func (x *Quake) GetDepthType() string

func (*Quake) GetDepthUncertainty

func (x *Quake) GetDepthUncertainty() float64

func (*Quake) GetEarthModel

func (x *Quake) GetEarthModel() string

func (*Quake) GetEvaluationMode

func (x *Quake) GetEvaluationMode() string

func (*Quake) GetEvaluationStatus

func (x *Quake) GetEvaluationStatus() string

func (*Quake) GetLatitude

func (x *Quake) GetLatitude() float64

func (*Quake) GetLatitudeUncertainty

func (x *Quake) GetLatitudeUncertainty() float64

func (*Quake) GetLongitude

func (x *Quake) GetLongitude() float64

func (*Quake) GetLongitudeUncertainty

func (x *Quake) GetLongitudeUncertainty() float64

func (*Quake) GetMagnitude

func (x *Quake) GetMagnitude() float64

func (*Quake) GetMagnitudeStationCount

func (x *Quake) GetMagnitudeStationCount() int64

func (*Quake) GetMagnitudeType

func (x *Quake) GetMagnitudeType() string

func (*Quake) GetMagnitudeUncertainty

func (x *Quake) GetMagnitudeUncertainty() float64

func (*Quake) GetMagnitudes

func (x *Quake) GetMagnitudes() []*Magnitude

func (*Quake) GetMethod

func (x *Quake) GetMethod() string

func (*Quake) GetMinimumDistance

func (x *Quake) GetMinimumDistance() float64

func (*Quake) GetModificationTime

func (x *Quake) GetModificationTime() *Timestamp

func (*Quake) GetPhases

func (x *Quake) GetPhases() []*Phase

func (*Quake) GetPublicID

func (x *Quake) GetPublicID() string

func (*Quake) GetQuakeType

func (x *Quake) GetQuakeType() string

func (*Quake) GetStandardError

func (x *Quake) GetStandardError() float64

func (*Quake) GetTime

func (x *Quake) GetTime() *Timestamp

func (*Quake) GetUsedPhaseCount

func (x *Quake) GetUsedPhaseCount() int64

func (*Quake) GetUsedStationCount

func (x *Quake) GetUsedStationCount() int64

func (*Quake) ProtoMessage

func (*Quake) ProtoMessage()

func (*Quake) ProtoReflect

func (x *Quake) ProtoReflect() protoreflect.Message

func (*Quake) Reset

func (x *Quake) Reset()

func (*Quake) String

func (x *Quake) String() string

type StationMagnitude

type StationMagnitude struct {
	NetworkCode   string  `protobuf:"bytes,1,opt,name=network_code,json=networkCode,proto3" json:"network_code,omitempty"`
	StationCode   string  `protobuf:"bytes,2,opt,name=station_code,json=stationCode,proto3" json:"station_code,omitempty"`
	LocationCode  string  `protobuf:"bytes,3,opt,name=location_code,json=locationCode,proto3" json:"location_code,omitempty"`
	ChannelCode   string  `protobuf:"bytes,4,opt,name=channel_code,json=channelCode,proto3" json:"channel_code,omitempty"`
	Magnitude     float64 `protobuf:"fixed64,5,opt,name=magnitude,proto3" json:"magnitude,omitempty"`
	MagnitudeType string  `protobuf:"bytes,6,opt,name=magnitude_type,json=magnitudeType,proto3" json:"magnitude_type,omitempty"`
	Residual      float64 `protobuf:"fixed64,7,opt,name=residual,proto3" json:"residual,omitempty"`
	Weight        float64 `protobuf:"fixed64,8,opt,name=weight,proto3" json:"weight,omitempty"`
	Amplitude     float64 `protobuf:"fixed64,9,opt,name=amplitude,proto3" json:"amplitude,omitempty"`
	// contains filtered or unexported fields
}

StationMagnitude the magnitude calculated at a single station.

func (*StationMagnitude) Descriptor deprecated

func (*StationMagnitude) Descriptor() ([]byte, []int)

Deprecated: Use StationMagnitude.ProtoReflect.Descriptor instead.

func (*StationMagnitude) GetAmplitude

func (x *StationMagnitude) GetAmplitude() float64

func (*StationMagnitude) GetChannelCode

func (x *StationMagnitude) GetChannelCode() string

func (*StationMagnitude) GetLocationCode

func (x *StationMagnitude) GetLocationCode() string

func (*StationMagnitude) GetMagnitude

func (x *StationMagnitude) GetMagnitude() float64

func (*StationMagnitude) GetMagnitudeType

func (x *StationMagnitude) GetMagnitudeType() string

func (*StationMagnitude) GetNetworkCode

func (x *StationMagnitude) GetNetworkCode() string

func (*StationMagnitude) GetResidual

func (x *StationMagnitude) GetResidual() float64

func (*StationMagnitude) GetStationCode

func (x *StationMagnitude) GetStationCode() string

func (*StationMagnitude) GetWeight

func (x *StationMagnitude) GetWeight() float64

func (*StationMagnitude) ProtoMessage

func (*StationMagnitude) ProtoMessage()

func (*StationMagnitude) ProtoReflect

func (x *StationMagnitude) ProtoReflect() protoreflect.Message

func (*StationMagnitude) Reset

func (x *StationMagnitude) Reset()

func (*StationMagnitude) String

func (x *StationMagnitude) String() string

type Timestamp

type Timestamp struct {

	// Unix time in seconds
	Secs int64 `protobuf:"varint,1,opt,name=secs,proto3" json:"secs,omitempty"`
	// Frational part of time in nanoseconds.
	Nanos int64 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"`
	// contains filtered or unexported fields
}

Timestamp for encoding time stamps.

func (*Timestamp) Descriptor deprecated

func (*Timestamp) Descriptor() ([]byte, []int)

Deprecated: Use Timestamp.ProtoReflect.Descriptor instead.

func (*Timestamp) GetNanos

func (x *Timestamp) GetNanos() int64

func (*Timestamp) GetSecs

func (x *Timestamp) GetSecs() int64

func (*Timestamp) ProtoMessage

func (*Timestamp) ProtoMessage()

func (*Timestamp) ProtoReflect

func (x *Timestamp) ProtoReflect() protoreflect.Message

func (*Timestamp) Reset

func (x *Timestamp) Reset()

func (*Timestamp) String

func (x *Timestamp) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL