public class RinexClock extends Object
A time system should be specified in the file. However, if it is not, default time system will be chosen regarding the satellite system. If it is mixed or not specified, default time system will be UTC.
Some fields might be null after parsing. It is expected because of the numerous kind of data that can be stored in clock data file.
Caution, files with missing information in header can lead to wrong data dates and station positions. It is adviced to check the correctness and format compliance of the clock file to be parsed. Some values such as file time scale still can be set by user.
Modifier and Type | Class and Description |
---|---|
class |
RinexClock.ClockDataLine
Clock data for a single station.
|
static class |
RinexClock.ClockDataType
Clock data type.
|
static class |
RinexClock.Receiver
Represents a receiver or a satellite with its position in the considered frame.
|
static class |
RinexClock.ReferenceClock
Represents a reference clock with its validity time span.
|
Constructor and Description |
---|
RinexClock(Function<? super String,? extends Frame> frameBuilder)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAppliedDCBS(AppliedDCBS appliedDCBS)
Add an applied differencial code bias corrections.
|
void |
addAppliedPCVS(AppliedPCVS appliedPCVS)
Add an applied phase center variations.
|
void |
addClockData(String id,
RinexClock.ClockDataLine clockDataLine)
Add a clock data line to a specified receiver/satellite.
|
void |
addClockDataType(RinexClock.ClockDataType clockDataType)
Add a clock data types.
|
void |
addComment(String comment)
Add a comment line.
|
void |
addReceiver(RinexClock.Receiver receiver)
Add a new receiver to the list of stored receivers.
|
void |
addReferenceClockList(List<RinexClock.ReferenceClock> referenceClockList,
AbsoluteDate startDate)
Add a list of reference clocks wich will be used after a specified date.
|
void |
addSatellite(String satId)
Add a new satellite with a given identifier to the list of stored satellites.
|
void |
addSystemObservationType(SatelliteSystem satSystem,
ObservationType observationType)
Add an observation type for a specified satellite system.
|
String |
getAgencyName()
Getter for the agency name.
|
String |
getAnalysisCenterID()
Getter for the analysis center ID.
|
String |
getAnalysisCenterName()
Getter for the analysis center name.
|
Map<String,List<RinexClock.ClockDataLine>> |
getClockData()
Getter for an unmodifiable map of clock data.
|
List<RinexClock.ClockDataType> |
getClockDataTypes()
Getter for the different clock data types.
|
String |
getComments()
Getter for the comments.
|
AbsoluteDate |
getCreationDate()
Getter for the creation date.
|
String |
getCreationDateString()
Getter for the creation date of the file as a string.
|
String |
getCreationTimeString()
Getter for the creation time of the file as a string.
|
String |
getCreationTimeZoneString()
Getter for the creation time zone of the file as a string.
|
String |
getExternalClockReference()
Getter for the external clock reference.
|
double |
getFormatVersion()
Getter for the format version.
|
Frame |
getFrame()
Get the reference frame for the station positions.
|
String |
getFrameName()
Getter for the frame name.
|
List<AppliedDCBS> |
getListAppliedDCBS()
Getter for the applied differential code bias corrections.
|
List<AppliedPCVS> |
getListAppliedPCVS()
Getter for the applied phase center variations.
|
int |
getNumberOfClockDataTypes()
Get the number of different clock data types in the file.
|
int |
getNumberOfLeapSeconds()
Getter for the number of leap seconds.
|
int |
getNumberOfLeapSecondsGNSS()
Getter for the number of leap second for GNSS time scales.
|
int |
getNumberOfReceivers()
Get the number of receivers that are considered in the file.
|
int |
getNumberOfSatellites()
Get the number of satellites that are considered in the file.
|
String |
getProgramName()
Getter for the program name.
|
List<RinexClock.Receiver> |
getReceivers()
Getter for the receivers.
|
TimeSpanMap<List<RinexClock.ReferenceClock>> |
getReferenceClocks()
Getter for the reference clocks.
|
List<String> |
getSatellites()
Getter for the satellites.
|
SatelliteSystem |
getSatelliteSystem()
Getter for the satellite system.
|
String |
getStationIdentifier()
Getter for the station identifier.
|
String |
getStationName()
Getter for the station name.
|
Map<SatelliteSystem,List<ObservationType>> |
getSystemObservationTypes()
Getter for the different observation type for each satellite system.
|
TimeScale |
getTimeScale()
Getter for the data time scale.
|
TimeSystem |
getTimeSystem()
Getter for the file time system.
|
int |
getTotalNumberOfDataLines()
Get the total number of complete data lines in the file.
|
int |
numberOfObsTypes(SatelliteSystem system)
Get the number of observation types for a given system.
|
void |
setAgencyName(String agencyName)
Setter for the agency name.
|
void |
setAnalysisCenterID(String analysisCenterID)
Setter for the analysis center ID.
|
void |
setAnalysisCenterName(String analysisCenterName)
Setter for the analysis center name.
|
void |
setCreationDate(AbsoluteDate creationDate)
Setter for the creation date.
|
void |
setCreationDateString(String creationDateString)
Setter for the creation date as a string.
|
void |
setCreationTimeString(String creationTimeString)
Setter for the creation time as a string.
|
void |
setCreationTimeZoneString(String creationTimeZoneString)
Setter for the creation time zone.
|
void |
setExternalClockReference(String externalClockReference)
Setter for the external clock reference.
|
void |
setFormatVersion(double formatVersion)
Setter for the format version.
|
void |
setFrameName(String frameName)
Setter for the frame name.
|
void |
setNumberOfLeapSeconds(int numberOfLeapSeconds)
Setter for the number of leap seconds.
|
void |
setNumberOfLeapSecondsGNSS(int numberOfLeapSecondsGNSS)
Setter for the number of leap seconds for GNSS time scales.
|
void |
setProgramName(String programName)
Setter for the program name.
|
void |
setSatelliteSystem(SatelliteSystem satelliteSystem)
Setter for the satellite system.
|
void |
setStationIdentifier(String stationIdentifier)
Setter for the station identifier.
|
void |
setStationName(String stationName)
Setter for the station name.
|
void |
setTimeScale(TimeScale timeScale)
Setter for the data time scale.
|
void |
setTimeSystem(TimeSystem timeSystem)
Setter for the file time system.
|
public void addSatellite(String satId)
satId
- the satellite identifierpublic void addReceiver(RinexClock.Receiver receiver)
receiver
- the receiverpublic int getNumberOfClockDataTypes()
public int getTotalNumberOfDataLines()
public int numberOfObsTypes(SatelliteSystem system)
system
- the satellite system to considerpublic int getNumberOfReceivers()
public int getNumberOfSatellites()
public double getFormatVersion()
public void setFormatVersion(double formatVersion)
formatVersion
- the format version to setpublic SatelliteSystem getSatelliteSystem()
public void setSatelliteSystem(SatelliteSystem satelliteSystem)
satelliteSystem
- the satellite system to setpublic String getProgramName()
public void setProgramName(String programName)
programName
- the program name to setpublic String getAgencyName()
public void setAgencyName(String agencyName)
agencyName
- the agency name to setpublic String getCreationDateString()
public void setCreationDateString(String creationDateString)
creationDateString
- the creation date as a string to setpublic String getCreationTimeString()
public void setCreationTimeString(String creationTimeString)
creationTimeString
- the creation time as a string to setpublic String getCreationTimeZoneString()
public void setCreationTimeZoneString(String creationTimeZoneString)
creationTimeZoneString
- the creation time zone as a string to setpublic AbsoluteDate getCreationDate()
public void setCreationDate(AbsoluteDate creationDate)
creationDate
- the creation date to setpublic String getComments()
public void addComment(String comment)
comment
- the comment line to addpublic Map<SatelliteSystem,List<ObservationType>> getSystemObservationTypes()
public void addSystemObservationType(SatelliteSystem satSystem, ObservationType observationType)
satSystem
- the satellite system to add observation typeobservationType
- the system observation type to setpublic TimeSystem getTimeSystem()
public void setTimeSystem(TimeSystem timeSystem)
timeSystem
- the file time system to setpublic TimeScale getTimeScale()
public void setTimeScale(TimeScale timeScale)
timeScale
- the data time scale to setpublic int getNumberOfLeapSeconds()
public void setNumberOfLeapSeconds(int numberOfLeapSeconds)
numberOfLeapSeconds
- the number of leap seconds to setpublic int getNumberOfLeapSecondsGNSS()
public void setNumberOfLeapSecondsGNSS(int numberOfLeapSecondsGNSS)
numberOfLeapSecondsGNSS
- the number of leap seconds for GNSS time scales to setpublic List<AppliedDCBS> getListAppliedDCBS()
public void addAppliedDCBS(AppliedDCBS appliedDCBS)
appliedDCBS
- the applied differencial code bias corrections to addpublic List<AppliedPCVS> getListAppliedPCVS()
public void addAppliedPCVS(AppliedPCVS appliedPCVS)
appliedPCVS
- the phase center variations to addpublic List<RinexClock.ClockDataType> getClockDataTypes()
public void addClockDataType(RinexClock.ClockDataType clockDataType)
clockDataType
- the clock data types to addpublic String getStationName()
public void setStationName(String stationName)
stationName
- the station name to setpublic String getStationIdentifier()
public void setStationIdentifier(String stationIdentifier)
stationIdentifier
- the station identifier to setpublic String getExternalClockReference()
public void setExternalClockReference(String externalClockReference)
externalClockReference
- the external clock reference to setpublic String getAnalysisCenterID()
public void setAnalysisCenterID(String analysisCenterID)
analysisCenterID
- the analysis center ID to setpublic String getAnalysisCenterName()
public void setAnalysisCenterName(String analysisCenterName)
analysisCenterName
- the analysis center name to setpublic TimeSpanMap<List<RinexClock.ReferenceClock>> getReferenceClocks()
public void addReferenceClockList(List<RinexClock.ReferenceClock> referenceClockList, AbsoluteDate startDate)
referenceClockList
- the reference clock liststartDate
- the date the list will be valid after.public String getFrameName()
public void setFrameName(String frameName)
frameName
- the frame name to setpublic List<RinexClock.Receiver> getReceivers()
public List<String> getSatellites()
public Frame getFrame()
public Map<String,List<RinexClock.ClockDataLine>> getClockData()
public void addClockData(String id, RinexClock.ClockDataLine clockDataLine)
id
- the satellite system to add observation typeclockDataLine
- the clock data line to addCopyright © 2002-2021 CS GROUP. All rights reserved.