Class RinexObservationHeader


public class RinexObservationHeader extends RinexClockObsBaseHeader
Container for Rinex observation file header.
Since:
9.2
  • Field Details

    • LABEL_INDEX

      public static final int LABEL_INDEX
      Index of label in header lines.
      See Also:
  • Constructor Details

    • RinexObservationHeader

      public RinexObservationHeader()
      Simple constructor.
  • Method Details

    • parseSatelliteSystem

      public SatelliteSystem parseSatelliteSystem(String line, SatelliteSystem defaultSatelliteSystem)
      Parse satellite system.
      Specified by:
      parseSatelliteSystem in class RinexBaseHeader
      Parameters:
      line - header line
      defaultSatelliteSystem - satellite system to use if string is null or empty
      Returns:
      parsed satellite system
    • parseProgramRunByDate

      public void parseProgramRunByDate(String line, TimeScales timeScales)
      Parse program, run/by and date.
      Specified by:
      parseProgramRunByDate in class RinexBaseHeader
      Parameters:
      line - line to parse
      timeScales - the set of time scales used for parsing dates
    • setMarkerName

      public void setMarkerName(String markerName)
      Set name of the antenna marker.
      Parameters:
      markerName - name of the antenna marker
    • getMarkerName

      public String getMarkerName()
      Get name of the antenna marker.
      Returns:
      name of the antenna marker
    • setMarkerNumber

      public void setMarkerNumber(String markerNumber)
      Set number of the antenna marker.
      Parameters:
      markerNumber - number of the antenna marker
    • getMarkerNumber

      public String getMarkerNumber()
      Get number of the antenna marker.
      Returns:
      number of the antenna marker
    • setObserverName

      public void setObserverName(String observerName)
      Set name of the observer.
      Parameters:
      observerName - name of the observer
    • getObserverName

      public String getObserverName()
      Get name of the observer.
      Returns:
      name of the observer
    • setAgencyName

      public void setAgencyName(String agencyName)
      Setter for the agency name.
      Parameters:
      agencyName - the agency name to set
    • getAgencyName

      public String getAgencyName()
      Get name of the agency.
      Returns:
      name of the agency
    • setAntennaNumber

      public void setAntennaNumber(String antennaNumber)
      Set the number of the antenna.
      Parameters:
      antennaNumber - number of the antenna
    • getAntennaNumber

      public String getAntennaNumber()
      Get the number of the antenna.
      Returns:
      number of the antenna
    • setAntennaType

      public void setAntennaType(String antennaType)
      Set the type of the antenna.
      Parameters:
      antennaType - type of the antenna
    • getAntennaType

      public String getAntennaType()
      Get the type of the antenna.
      Returns:
      type of the antenna
    • setApproxPos

      public void setApproxPos(Vector3D approxPos)
      Set the Approximate Marker Position.
      Parameters:
      approxPos - Approximate Marker Position
    • getApproxPos

      public Vector3D getApproxPos()
      Get the Approximate Marker Position.
      Returns:
      Approximate Marker Position
    • setAntennaHeight

      public void setAntennaHeight(double antennaHeight)
      Set the antenna height.
      Parameters:
      antennaHeight - height of the antenna
    • getAntennaHeight

      public double getAntennaHeight()
      Get the antenna height.
      Returns:
      height of the antenna
    • setEccentricities

      public void setEccentricities(Vector2D eccentricities)
      Set the eccentricities of antenna center.
      Parameters:
      eccentricities - Eccentricities of antenna center
    • getEccentricities

      public Vector2D getEccentricities()
      Get the eccentricities of antenna center.
      Returns:
      Eccentricities of antenna center
    • setClockOffsetApplied

      public void setClockOffsetApplied(boolean clockOffsetApplied)
      Set the application flag for realtime-derived receiver clock offset.
      Parameters:
      clockOffsetApplied - application flag for realtime-derived receiver clock offset
      Since:
      12.1
    • getClockOffsetApplied

      public boolean getClockOffsetApplied()
      Get the application flag for realtime-derived receiver clock offset.
      Returns:
      application flag for realtime-derived receiver clock offset
      Since:
      12.1
    • setInterval

      public void setInterval(double interval)
      Set the observation interval in seconds.
      Parameters:
      interval - Observation interval in seconds
    • getInterval

      public double getInterval()
      Get the observation interval in seconds.
      Returns:
      Observation interval in seconds
    • setTFirstObs

      public void setTFirstObs(AbsoluteDate firstObs)
      Set the time of First observation record.
      Parameters:
      firstObs - Time of First observation record
    • getTFirstObs

      public AbsoluteDate getTFirstObs()
      Get the time of First observation record.
      Returns:
      Time of First observation record
    • setTLastObs

      public void setTLastObs(AbsoluteDate lastObs)
      Set the time of last observation record.
      Parameters:
      lastObs - Time of last observation record
    • getTLastObs

      public AbsoluteDate getTLastObs()
      Get the time of last observation record.
      Returns:
      Time of last observation record
    • setMarkerType

      public void setMarkerType(String markerType)
      Set type of the antenna marker.
      Parameters:
      markerType - type of the antenna marker
    • getMarkerType

      public String getMarkerType()
      Get type of the antenna marker.
      Returns:
      type of the antenna marker
    • setAntennaReferencePoint

      public void setAntennaReferencePoint(Vector3D refPoint)
      Set the position of antenna reference point for antenna on vehicle.
      Parameters:
      refPoint - Position of antenna reference point for antenna on vehicle
    • getAntennaReferencePoint

      public Vector3D getAntennaReferencePoint()
      Get the position of antenna reference point for antenna on vehicle.
      Returns:
      Position of antenna reference point for antenna on vehicle
    • setPhaseCenterSystem

      public void setPhaseCenterSystem(SatelliteSystem phaseCenterSystem)
      Set satellite system for average phase center.
      Parameters:
      phaseCenterSystem - satellite system for average phase center
      Since:
      12.0
    • getPhaseCenterSystem

      public SatelliteSystem getPhaseCenterSystem()
      Get satellite system for average phase center.
      Returns:
      satellite system for average phase center
      Since:
      12.0
    • setObservationCode

      public void setObservationCode(String observationCode)
      Set the observation code of the average phasecenter position w/r to antenna reference point.
      Parameters:
      observationCode - Observation code of the average phasecenter position w/r to antenna reference point
    • getObservationCode

      public String getObservationCode()
      Get the observation code of the average phasecenter position w/r to antenna reference point.
      Returns:
      Observation code of the average phasecenter position w/r to antenna reference point
    • setAntennaPhaseCenter

      public void setAntennaPhaseCenter(Vector3D antennaPhaseCenter)
      Set the antenna phasecenter.
      Parameters:
      antennaPhaseCenter - Antenna phasecenter
    • getAntennaPhaseCenter

      public Vector3D getAntennaPhaseCenter()
      Get the antenna phasecenter.
      Returns:
      Antenna phasecenter
    • setAntennaBSight

      public void setAntennaBSight(Vector3D antennaBSight)
      Set the antenna B.Sight.
      Parameters:
      antennaBSight - Antenna B.Sight
    • getAntennaBSight

      public Vector3D getAntennaBSight()
      Get the antenna B.Sight.
      Returns:
      Antenna B.Sight
    • setAntennaAzimuth

      public void setAntennaAzimuth(double antennaAzimuth)
      Set the azimuth of the zero direction of a fixed antenna.
      Parameters:
      antennaAzimuth - Azimuth of the zero direction of a fixed antenna
    • getAntennaAzimuth

      public double getAntennaAzimuth()
      Get the azimuth of the zero direction of a fixed antenna.
      Returns:
      Azimuth of the zero direction of a fixed antenna
    • setAntennaZeroDirection

      public void setAntennaZeroDirection(Vector3D antennaZeroDirection)
      Set the zero direction of antenna.
      Parameters:
      antennaZeroDirection - Zero direction of antenna
    • getAntennaZeroDirection

      public Vector3D getAntennaZeroDirection()
      Get the zero direction of antenna.
      Returns:
      Zero direction of antenna
    • setCenterMass

      public void setCenterMass(Vector3D centerMass)
      Set the current center of mass of vehicle in body fixed coordinate system.
      Parameters:
      centerMass - Current center of mass of vehicle in body fixed coordinate system
    • getCenterMass

      public Vector3D getCenterMass()
      Get the current center of mass of vehicle in body fixed coordinate system.
      Returns:
      Current center of mass of vehicle in body fixed coordinate system
    • setSignalStrengthUnit

      public void setSignalStrengthUnit(String signalStrengthUnit)
      Set the unit of the carrier to noise ratio observables.
      Parameters:
      signalStrengthUnit - Unit of the carrier to noise ratio observables
    • getSignalStrengthUnit

      public String getSignalStrengthUnit()
      Get the unit of the carrier to noise ratio observables.
      Returns:
      Unit of the carrier to noise ratio observables
    • addPhaseShiftCorrection

      public void addPhaseShiftCorrection(PhaseShiftCorrection phaseShiftCorrection)
      Add phase shift correction used to generate phases consistent w/r to cycle shifts.
      Parameters:
      phaseShiftCorrection - phase shift correction used to generate phases consistent w/r to cycle shifts
    • getPhaseShiftCorrections

      public List<PhaseShiftCorrection> getPhaseShiftCorrections()
      Get the list of phase shift correction used to generate phases consistent w/r to cycle shifts.
      Returns:
      List of phase shift correction used to generate phases consistent w/r to cycle shifts
    • addScaleFactorCorrection

      public void addScaleFactorCorrection(SatelliteSystem satelliteSystem, ScaleFactorCorrection scaleFactorCorrection)
      Add scale factor correction.
      Parameters:
      satelliteSystem - system to which this scaling factor applies
      scaleFactorCorrection - scale factor correction
    • getScaleFactorCorrections

      public List<ScaleFactorCorrection> getScaleFactorCorrections(SatelliteSystem satelliteSystem)
      Get the list of scale factor correction.
      Parameters:
      satelliteSystem - system to which this scaling factor applies
      Returns:
      List of scale factor correction
    • addGlonassChannel

      public void addGlonassChannel(GlonassSatelliteChannel glonassChannel)
      Add GLONASS satellite/channel association.
      Parameters:
      glonassChannel - GLONASS satellite/channel association
      Since:
      12.0
    • getGlonassChannels

      public List<GlonassSatelliteChannel> getGlonassChannels()
      Get the list of GLONASS satellite/channel associations.
      Returns:
      List of GLONASS satellite/channel associations
      Since:
      12.0
    • setNbSat

      public void setNbSat(int nbSat)
      Set number of satellites.
      Parameters:
      nbSat - number of satellites
      Since:
      12.0
    • getNbSat

      public int getNbSat()
      Get number of satellites.
      Returns:
      number of satellites
      Since:
      12.0
    • setNbObsPerSatellite

      public void setNbObsPerSatellite(SatInSystem sat, String type, int nbObs)
      Set number of observations for a satellite.
      Parameters:
      sat - satellite
      type - observation type
      nbObs - number of observations of this type for this satellite
      Since:
      12.0
    • getNbObsPerSat

      public Map<SatInSystem,Map<String,Integer>> getNbObsPerSat()
      Get an unmodifiable view of the map of number of observations per satellites.
      Returns:
      unmodifiable view of the map of number of observations per satellites
      Since:
      12.0
    • setC1cCodePhaseBias

      public void setC1cCodePhaseBias(double c1cCodePhaseBias)
      Set the code phase bias correction for GLONASS PredefinedObservationType.C1C signal.
      Parameters:
      c1cCodePhaseBias - code phase bias correction for GLONASS PredefinedObservationType.C1C signal
      Since:
      12.0
    • getC1cCodePhaseBias

      public double getC1cCodePhaseBias()
      Get the code phase bias correction for GLONASS PredefinedObservationType.C1C signal.
      Returns:
      code phase bias correction for GLONASS PredefinedObservationType.C1C signal
      Since:
      12.0
    • setC1pCodePhaseBias

      public void setC1pCodePhaseBias(double c1pCodePhaseBias)
      Set the code phase bias correction for GLONASS PredefinedObservationType.C1P signal.
      Parameters:
      c1pCodePhaseBias - code phase bias correction for GLONASS PredefinedObservationType.C1P signal
      Since:
      12.0
    • getC1pCodePhaseBias

      public double getC1pCodePhaseBias()
      Get the code phase bias correction for GLONASS PredefinedObservationType.C1P signal.
      Returns:
      code phase bias correction for GLONASS PredefinedObservationType.C1P signal
      Since:
      12.0
    • setC2cCodePhaseBias

      public void setC2cCodePhaseBias(double c2cCodePhaseBias)
      Set the code phase bias correction for GLONASS PredefinedObservationType.C2C signal.
      Parameters:
      c2cCodePhaseBias - code phase bias correction for GLONASS PredefinedObservationType.C2C signal
      Since:
      12.0
    • getC2cCodePhaseBias

      public double getC2cCodePhaseBias()
      Get the code phase bias correction for GLONASS PredefinedObservationType.C2C signal.
      Returns:
      code phase bias correction for GLONASS PredefinedObservationType.C2C signal
      Since:
      12.0
    • setC2pCodePhaseBias

      public void setC2pCodePhaseBias(double c2pCodePhaseBias)
      Set the code phase bias correction for GLONASS PredefinedObservationType.C2P signal.
      Parameters:
      c2pCodePhaseBias - code phase bias correction for GLONASS PredefinedObservationType.C2P signal
      Since:
      12.0
    • getC2pCodePhaseBias

      public double getC2pCodePhaseBias()
      Get the code phase bias correction for GLONASS PredefinedObservationType.C2P signal.
      Returns:
      code phase bias correction for GLONASS PredefinedObservationType.C2P signal
      Since:
      12.0
    • checkType

      public void checkType(String line, String name)
      Check file type.
      Specified by:
      checkType in class RinexBaseHeader
      Parameters:
      line - header line
      name - file name (for error message)
    • getLabelIndex

      public int getLabelIndex()
      Get the index of the header label.
      Specified by:
      getLabelIndex in class RinexBaseHeader
      Returns:
      index of the header label
    • matchFound

      public boolean matchFound(Label label, String line)
      Check if a label is found in a line.
      Specified by:
      matchFound in class RinexBaseHeader
      Parameters:
      label - label to check
      line - header line
      Returns:
      true if label is found in the header line