Documentation ¶
Index ¶
- Variables
- func GetLeapSeconds(queryTime time.Time) (s int, err error)
- func GetSystem(csys string) (isys int, err error)
- func SerializeRnxNav4(w io.Writer, epochMap observation.EpochMap, gnssSet *observation.Set, ...) (err error)
- func SerializeRnxObs2(w io.Writer, epoch observation.Epoch) (err error)
- func SerializeRnxObs3(w io.Writer, epochMap observation.EpochMap, gnssSet *observation.Set, ...) (err error)
- func SerializeRnxObs4(w io.Writer, epochMap observation.EpochMap, gnssSet *observation.Set, ...) (err error)
- type Antenna
- type Header
- func (h *Header) Dump() string
- func (h *Header) GetRinex2Types() (typeMap map[int][]string, err error)
- func (h *Header) GetRinex3Types() (types map[int][]string, err error)
- func (h *Header) GetRinexPGM() (p ProgramRunByDate, err error)
- func (h *Header) GetRinexSystem() (s string, err error)
- func (h *Header) GetRinexType() (t string, err error)
- func (h *Header) GetRinexVersion() (version float64, err error)
- func (h *Header) Write(w io.Writer) (err error)
- type LeapSecond
- type Metadata
- type ObsLineElement
- type OutputSetting
- type OutputSettings
- type OutputType
- type ProgramRunByDate
- type Receiver
- type Rinex2ObsHeaderValues
- type Rinex3HeaderMetadata
- type Rinex4HeaderMetadata
- type RinexHeaderRecord
- type RinexVersion
- type Scanner
- func (scanner Scanner) DeserializeRnx3NavValues(line string, nLines int) (vals []float64, err error)
- func (scanner Scanner) DeserializeRnx4NavValues(line string, nLines int) (vals []float64, err error)
- func (scanner Scanner) DeserializeRnxMet2Epoch() (epoch met.Epoch, err error)
- func (scanner Scanner) DeserializeRnxMet3Epoch() (epoch met.Epoch, err error)
- func (scanner Scanner) DeserializeRnxMet4Epoch() (epoch met.Epoch, err error)
- func (scanner Scanner) DeserializeRnxNavEpoch2() (eph ephemeris.Ephemeris, err error)
- func (scanner Scanner) DeserializeRnxNavEpoch3() (eph ephemeris.Ephemeris, err error)
- func (scanner Scanner) DeserializeRnxNavEpoch4() (eph ephemeris.Ephemeris, err error)
- func (scanner Scanner) DeserializeRnxNavGLO() (eph ephemeris.Ephemeris, err error)
- func (scanner Scanner) DeserializeRnxNavGPS() (eph ephemeris.Ephemeris, err error)
- func (scanner Scanner) DeserializeRnxObsEpoch2() (epoch observation.Epoch, err error)
- func (scanner Scanner) DeserializeRnxObsEpoch3() (epoch observation.Epoch, err error)
- func (scanner Scanner) DeserializeRnxObsEpoch4() (epoch observation.Epoch, err error)
- func (scanner Scanner) NextMetEpoch() (epoch met.Epoch, err error)
- func (scanner Scanner) NextNavEpoch() (eph ephemeris.Ephemeris, err error)
- func (scanner Scanner) NextObsEpoch() (epoch observation.Epoch, err error)
- func (scanner Scanner) ScanHeader() (header Header, err error)
- type SysSat
Constants ¶
This section is empty.
Variables ¶
var ( // REGEX_TYPE_SV_MSSG is a regular expression for capturing TYPE/SV/MSSG from RINEX 4 navigation files REGEX_TYPE_SV_MSSG = regexp.MustCompile(`> (EPH|STO|EOP|ION)\s([A-Z]{1})([0-9]{2}|\s{2})\s([A-Z0-9]+)`) )
Functions ¶
func SerializeRnxNav4 ¶
func SerializeRnxNav4(w io.Writer, epochMap observation.EpochMap, gnssSet *observation.Set, outputSettings OutputSettings) (err error)
SerializeRnxNav4 writes a ephemeris.Ephemeris as RINEX 4 to the provided io.Writer interface.
func SerializeRnxObs2 ¶
func SerializeRnxObs2(w io.Writer, epoch observation.Epoch) (err error)
func SerializeRnxObs3 ¶
func SerializeRnxObs3(w io.Writer, epochMap observation.EpochMap, gnssSet *observation.Set, outputSettings OutputSettings) (err error)
SerializeRnxObs3 writes a observation.EpochMap as RINEX 3 to the provided io.Writer interface. The ordering of the observation types are in gnssSet. The selection of measurements to be output (phase, range, snr, doppler) is controlled by outputSettings.
func SerializeRnxObs4 ¶
func SerializeRnxObs4(w io.Writer, epochMap observation.EpochMap, gnssSet *observation.Set, outputSettings OutputSettings) (err error)
SerializeRnxObs4 writes a observation.EpochMap as RINEX 4 to the provided io.Writer interface. The ordering of the observation types are in gnssSet. The selection of measurements to be output (phase, range, snr, doppler) is controlled by outputSettings.
Types ¶
type Header ¶
type Header struct { Records []RinexHeaderRecord ObsTypes map[int][]string }
Header is a struct for storing header records.
func NewRinex2ObsHeader ¶
func NewRinex2ObsHeader(vals Rinex2ObsHeaderValues) *Header
func NewRinex3ObsHeader ¶
func NewRinex3ObsHeader(rm Rinex3HeaderMetadata, gnssSet *observation.Set, outputSettings OutputSettings) *Header
func NewRinex4NavHeader ¶
func NewRinex4NavHeader(rm Rinex4HeaderMetadata) *Header
func NewRinex4ObsHeader ¶
func NewRinex4ObsHeader(rm Rinex4HeaderMetadata, gnssSet *observation.Set, outputSettings OutputSettings) *Header
func (*Header) GetRinex2Types ¶
GetRinex2Types -
func (*Header) GetRinex3Types ¶
GetRinex3Types -
func (*Header) GetRinexPGM ¶
func (h *Header) GetRinexPGM() (p ProgramRunByDate, err error)
GetRinexPGM parses the program, run_by, and date fields from the RINEX header
func (*Header) GetRinexSystem ¶
GetRinexSystem parses the system from the RINEX header.
func (*Header) GetRinexType ¶
GetRinexType parses the RINEX type from the header.
func (*Header) GetRinexVersion ¶
GetRinexVersion parses the RINEX version from the header.
type LeapSecond ¶
type ObsLineElement ¶
type OutputSettings ¶
type OutputSettings map[OutputType]bool
OutputSettings
func (*OutputSettings) CountEnabled ¶
func (os *OutputSettings) CountEnabled() (count int)
CountEnabled
type OutputType ¶
type OutputType int
const ( // Phase Phase OutputType = iota // Range Range // SNR SNR // Doppler Doppler )
type ProgramRunByDate ¶
type Rinex2ObsHeaderValues ¶
type Rinex3HeaderMetadata ¶
type Rinex3HeaderMetadata struct { VersionType RinexVersion `json:"version"` TimeOfFirst time.Time `json:"time_of_first"` Metadata Metadata `json:"metadata"` }
func NewRinex3HeaderMetadata ¶
func NewRinex3HeaderMetadata() Rinex3HeaderMetadata
type Rinex4HeaderMetadata ¶
type Rinex4HeaderMetadata struct { VersionType RinexVersion `json:"version"` Interval float64 `json:"interval"` TimeOfFirst time.Time `json:"time_of_first"` TimeOfLast time.Time `json:"time_of_last"` Metadata Metadata `json:"metadata"` }
func NewRinex4HeaderMetadata ¶
func NewRinex4HeaderMetadata() Rinex4HeaderMetadata
type RinexHeaderRecord ¶
RinexHeaderRecord stores the header lines in a struct splitting the content (60 chars) and the label (20 chars) into two separate strings. Supports versions 2,3,4.
type RinexVersion ¶
type Scanner ¶
Scanner -
func NewScanner ¶
NewScanner creates a new RINEX scanner. It reads the header, extracting the version, type and system. Other type and version specific information is extracted in later steps.
func (Scanner) DeserializeRnx3NavValues ¶
func (Scanner) DeserializeRnx4NavValues ¶
func (Scanner) DeserializeRnxMet2Epoch ¶
func (Scanner) DeserializeRnxMet3Epoch ¶
func (Scanner) DeserializeRnxMet4Epoch ¶
func (Scanner) DeserializeRnxNavEpoch2 ¶
func (Scanner) DeserializeRnxNavEpoch3 ¶
func (Scanner) DeserializeRnxNavEpoch4 ¶
func (Scanner) DeserializeRnxNavGLO ¶
func (Scanner) DeserializeRnxNavGPS ¶
func (Scanner) DeserializeRnxObsEpoch2 ¶
func (scanner Scanner) DeserializeRnxObsEpoch2() (epoch observation.Epoch, err error)
DeserializeRnxObsEpoch2 -
func (Scanner) DeserializeRnxObsEpoch3 ¶
func (scanner Scanner) DeserializeRnxObsEpoch3() (epoch observation.Epoch, err error)
DeserializeRnxObsEpoch3 -
func (Scanner) DeserializeRnxObsEpoch4 ¶
func (scanner Scanner) DeserializeRnxObsEpoch4() (epoch observation.Epoch, err error)
DeserializeRnxObsEpoch4 -
func (Scanner) NextNavEpoch ¶
NextNavEpoch -
func (Scanner) NextObsEpoch ¶
func (scanner Scanner) NextObsEpoch() (epoch observation.Epoch, err error)
NextObsEpoch -
func (Scanner) ScanHeader ¶
ScanHeader -
Source Files ¶
- codes_rnx_2.go
- deserialize_rnx_met_2.go
- deserialize_rnx_met_3.go
- deserialize_rnx_met_4.go
- deserialize_rnx_nav_2.go
- deserialize_rnx_nav_3.go
- deserialize_rnx_nav_4.go
- deserialize_rnx_obs_2.go
- deserialize_rnx_obs_3.go
- deserialize_rnx_obs_4.go
- fcn_codes.go
- header_common.go
- header_version_2.go
- header_version_3.go
- header_version_4.go
- scanner.go
- serialize_rnx_nav_4.go
- serialize_rnx_obs_2.go
- serialize_rnx_obs_3.go
- serialize_rnx_obs_4.go
- utilities.go