public class RinexUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
LABEL_INDEX
Index of label in header lines.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
convert2DigitsYear(int yy)
Convert a 2 digits year to a complete year.
|
static String |
getLabel(String line)
Get the trimmed label from a header line.
|
static boolean |
matchesLabel(String line,
String label)
Check if a header line matches an expected label.
|
static void |
parseComment(int lineNumber,
String line,
RinexFile<?> rinexFile)
Parse a comment.
|
static double |
parseDouble(String line,
int startIndex,
int size)
Parse a double value.
|
static int |
parseInt(String line,
int startIndex,
int size)
Parse an integer value.
|
static void |
parseProgramRunByDate(String line,
int lineNumber,
String name,
TimeScales timeScales,
RinexBaseHeader header)
Parse program, run/by and date.
|
static String |
parseString(String line,
int startIndex,
int size)
Parse a string value.
|
static void |
parseVersionFileTypeSatelliteSystem(String line,
String name,
RinexBaseHeader header,
double... supportedVersions)
Parse version, file type and satellite system.
|
public static final int LABEL_INDEX
public static String getLabel(String line)
line - header line to parsepublic static boolean matchesLabel(String line, String label)
line - header line to checklabel - expected labelpublic static void parseVersionFileTypeSatelliteSystem(String line, String name, RinexBaseHeader header, double... supportedVersions)
line - line to parsename - file name (for error message generation)header - header to fill with parsed datasupportedVersions - supported versionspublic static void parseProgramRunByDate(String line, int lineNumber, String name, TimeScales timeScales, RinexBaseHeader header)
line - line to parselineNumber - line numbername - file name (for error message generation)timeScales - the set of time scales used for parsing dates.header - header to fill with parsed datapublic static void parseComment(int lineNumber,
String line,
RinexFile<?> rinexFile)
lineNumber - line numberline - line to parserinexFile - rinex filepublic static double parseDouble(String line, int startIndex, int size)
line - line to parsestartIndex - start indexsize - size of the valuepublic static int parseInt(String line, int startIndex, int size)
line - line to parsestartIndex - start indexsize - size of the valuepublic static String parseString(String line, int startIndex, int size)
line - line to parsestartIndex - start indexsize - size of the valuepublic static int convert2DigitsYear(int yy)
yy - year between 0 and 99Copyright © 2002-2023 CS GROUP. All rights reserved.