Class RinexNavigationWriter
java.lang.Object
org.orekit.files.rinex.utils.BaseRinexWriter<RinexNavigationHeader>
org.orekit.files.rinex.navigation.RinexNavigationWriter
- All Implemented Interfaces:
AutoCloseable
Writer for Rinex navigation file.
- Since:
- 14.0
- Author:
- Luc Maisonobe
-
Field Summary
Fields inherited from class org.orekit.files.rinex.utils.BaseRinexWriter
FOUR_DIGITS_INTEGER, NINE_TWO_DIGITS_FLOAT, NINETEEN_SCIENTIFIC_FLOAT, PADDED_FOUR_DIGITS_INTEGER, PADDED_TWO_DIGITS_INTEGER, SIX_DIGITS_INTEGER, THREE_DIGITS_INTEGER, TWO_DIGITS_INTEGER -
Constructor Summary
ConstructorsConstructorDescriptionRinexNavigationWriter(Appendable output, String outputName) Simple constructor.RinexNavigationWriter(Appendable output, String outputName, BiFunction<SatelliteSystem, TimeScales, ? extends TimeScale> timeScaleBuilder, TimeScales timeScales) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the known time scales.voidindentLine(RinexNavigationHeader header) Start (indent) a new line.voidwriteCompleteFile(RinexNavigation rinexNavigation) Write a complete navigation file.voidwriteDate(AbsoluteDate date, SatelliteSystem system) Write a date.voidWrite a date.voidwriteDouble(double value, Unit unit) Write a double field.voidWrite an empty field.voidwriteHeader(RinexNavigationHeader header) Write header.voidwriteInt(int value) Write an integer field.Methods inherited from class org.orekit.files.rinex.utils.BaseRinexWriter
checkHeaderWritten, close, exceedsHeaderLength, finishHeaderLine, finishLine, getColumn, getHeader, outputField, outputField, outputField, outputField, outputField, prepareComments, writeHeader, writeHeaderLine, writeProgramRunByDate
-
Constructor Details
-
RinexNavigationWriter
Simple constructor.This constructor uses the
default data contextand recognizes onlyPredefinedObservationTypeandSatelliteSystemwith non-nulltime scales(i.e. neither user-defined, norSatelliteSystem.SBAS, norSatelliteSystem.MIXED).- Parameters:
output- destination of generated outputoutputName- output name for error messages
-
RinexNavigationWriter
public RinexNavigationWriter(Appendable output, String outputName, BiFunction<SatelliteSystem, TimeScales, ? extends TimeScale> timeScaleBuilder, TimeScales timeScales) Simple constructor.- Parameters:
output- destination of generated outputoutputName- output name for error messagestimeScaleBuilder- mapper from satellite system to time scales (useful for user-defined satellite systems)timeScales- the set of time scales to use when parsing dates- Since:
- 13.0
-
-
Method Details
-
getTimeScales
Get the known time scales.- Returns:
- known time scales
-
writeDate
Write a date.- Parameters:
date- date to writesystem- satellite system- Throws:
IOException- if an I/O error occurs.
-
writeDate
Write a date.The date will span over 23 characters.
- Parameters:
dtc- date to write- Throws:
IOException- if an I/O error occurs.
-
writeDouble
Write a double field.The field will span over 19 characters.
- Parameters:
value- field value to write, in SI unitsunit- unit to use- Throws:
IOException- if an I/O error occurs.
-
writeInt
Write an integer field.The field will span over 19 characters.
- Parameters:
value- field value to write, in SI units- Throws:
IOException- if an I/O error occurs.
-
writeEmpty
Write an empty field.The field will span over 19 characters.
- Throws:
IOException- if an I/O error occurs.
-