Documentation ¶
Index ¶
- func CalculateNormECEF(x, y, z float64) float64
- func IsNormWithinRange(x, y, z, minNorm, maxNorm float64) bool
- func Norm(vector []float64) float64
- type EphemerisMap
- type EphemerisSlice
- type Metadata
- type Results
- type SatKey
- type Satellite
- func (s *Satellite) CalculateIonosphericCorrection() error
- func (s *Satellite) CalculateMelbourneWubbena(meta Metadata) error
- func (s *Satellite) CalculateSatelliteAzimuthElevation(meta Metadata) error
- func (s *Satellite) CalculateSatelliteCoordinates(meta Metadata, epochTime time.Time, eph gnss.Ephemeris) error
- func (s *Satellite) CalculateTroposphericCorrection(meta Metadata) error
- func (s *Satellite) Prepare(meta Metadata, ephemeris gnss.Ephemeris, dt time.Time) error
- func (s *Satellite) WriteJSON(w io.Writer) error
- type SatellitePosition
- type Satellites
- type TDCP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateNormECEF ¶ added in v0.6.10
CalculateNormECEF calculates the norm (magnitude) of ECEF XYZ coordinates.
func IsNormWithinRange ¶ added in v0.6.10
IsNormWithinRange checks if the norm of ECEF coordinates is within the specified range.
Types ¶
type EphemerisMap ¶ added in v0.7.6
type EphemerisSlice ¶ added in v0.7.4
func (EphemerisSlice) GetEphemeris ¶ added in v0.7.4
func (ephemerisSlice EphemerisSlice) GetEphemeris(sys gnss.System, sat int, t time.Time) (gnss.Ephemeris, error)
find the closest ephemeris to the time of clock
func (EphemerisSlice) GetEphemerisMap ¶ added in v0.7.6
func (ephemerisSlice EphemerisSlice) GetEphemerisMap(t time.Time) EphemerisMap
type Metadata ¶
type Metadata struct { Name string `xml:"name" json:"name"` X float64 `xml:"x" json:"x"` Y float64 `xml:"y" json:"y"` Z float64 `xml:"z" json:"z"` EleMask float64 `xml:"elevation_mask" json:"elevation_mask"` GPSFrequencies []string `xml:"gps_frequencies" json:"gps_frequencies"` // GLOFrequencies []string `xml:"glo_frequencies" json:"glo_frequencies"` // GALFrequencies []string `xml:"gal_frequencies" json:"gal_frequencies"` // BDSFrequencies []string `xml:"bds_frequencies" json:"bds_frequencies"` // QZSSFrequencies []string `xml:"qzss_frequencies" json:"qzss_frequencies"` // IRNSSFrequencies []string `xml:"irnss_frequencies" json:"irnss_frequencies"` // SBASFrequencies []string `xml:"sbas_frequencies" json:"sbas_frequencies"` MWSlipThreshold float64 `xml:"mw_slip_threshold" json:"mw_slip_threshold"` Combination string `xml:"combination" json:"combination"` }
TODO: add validation for metadata Metadata contains the metadata of the station
func (Metadata) CheckCoordinates ¶ added in v0.7.4
CheckCoordinates checks if the metadata has valid coordinates
type Results ¶
type Results struct { Metadata // time of first epoch Time time.Time // time difference between epochs DeltaTime time.Duration // estimated parameters DelC float64 DelE float64 DelN float64 DelU float64 DelX float64 DelY float64 DelZ float64 }
func CalculateTDCP ¶
func CalculateTDCP(metadata Metadata, satellites []Satellites) (results Results, err error)
type Satellite ¶
type Satellite struct { Sys gnss.System SvID int Prepared bool SatellitePosition SatellitePosition SatelliteElevation float64 SatelliteAzimuth float64 TroposphericCorrection float64 IonosphericCorrection float64 MelbourneWubbena float64 // IonosphereFree float64 // GeometryFree float64 ObservationMap map[string]*gnss.Observation }
func (*Satellite) CalculateIonosphericCorrection ¶ added in v0.7.4
func (*Satellite) CalculateMelbourneWubbena ¶ added in v0.7.4
CalculateMelbourneWubbena calculates the Melbourne-Wubbena combination for a given pair of observation codes c1 and c2 (e.g. "1C" and "2W")
func (*Satellite) CalculateSatelliteAzimuthElevation ¶ added in v0.7.4
func (*Satellite) CalculateSatelliteCoordinates ¶ added in v0.7.4
func (*Satellite) CalculateTroposphericCorrection ¶ added in v0.7.4
type SatellitePosition ¶ added in v0.7.4
type Satellites ¶ added in v0.7.4
func NewSatellitesFromEpoch ¶ added in v0.7.4
func NewSatellitesFromEpoch(epoch gnss.Epoch) Satellites
func (*Satellites) PrepareAll ¶ added in v0.7.4
func (satellites *Satellites) PrepareAll(meta Metadata, ephemerisMap EphemerisMap) error
Click to show internal directories.
Click to hide internal directories.