Class RinexNavigationWriter
- java.lang.Object
-
- org.orekit.files.rinex.utils.BaseRinexWriter<RinexNavigationHeader>
-
- org.orekit.files.rinex.navigation.RinexNavigationWriter
-
- All Implemented Interfaces:
AutoCloseable
public class RinexNavigationWriter extends BaseRinexWriter<RinexNavigationHeader>
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
Constructors Constructor Description RinexNavigationWriter(Appendable output, String outputName)Simple constructor.RinexNavigationWriter(Appendable output, String outputName, BiFunction<SatelliteSystem,TimeScales,? extends TimeScale> timeScaleBuilder, TimeScales timeScales)Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeScalesgetTimeScales()Get 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.voidwriteDate(DateTimeComponents dtc)Write a date.voidwriteDouble(double value, Unit unit)Write a double field.voidwriteEmpty()Write 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 Detail
-
RinexNavigationWriter
@DefaultDataContext public RinexNavigationWriter(Appendable output, String outputName)
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 Detail
-
getTimeScales
public TimeScales getTimeScales()
Get the known time scales.- Returns:
- known time scales
-
writeCompleteFile
public void writeCompleteFile(RinexNavigation rinexNavigation) throws IOException
Write a complete navigation file.- Parameters:
rinexNavigation- Rinex navigation file to write- Throws:
IOException- if an I/O error occurs.
-
writeHeader
public void writeHeader(RinexNavigationHeader header) throws IOException
Write header.This method must be called exactly once at the beginning (directly or by
writeCompleteFile(RinexNavigation))- Parameters:
header- header to write- Throws:
IOException- if an I/O error occurs.
-
writeDate
public void writeDate(AbsoluteDate date, SatelliteSystem system) throws IOException
Write a date.- Parameters:
date- date to writesystem- satellite system- Throws:
IOException- if an I/O error occurs.
-
writeDate
public void writeDate(DateTimeComponents dtc) throws IOException
Write a date.The date will span over 23 characters.
- Parameters:
dtc- date to write- Throws:
IOException- if an I/O error occurs.
-
writeDouble
public void writeDouble(double value, Unit unit) throws IOExceptionWrite 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
public void writeInt(int value) throws IOExceptionWrite 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
public void writeEmpty() throws IOExceptionWrite an empty field.The field will span over 19 characters.
- Throws:
IOException- if an I/O error occurs.
-
indentLine
public void indentLine(RinexNavigationHeader header) throws IOException
Start (indent) a new line.- Parameters:
header- header- Throws:
IOException- if an I/O error occurs.
-
-