public class SP3aEphemeris extends Object implements IAvailability
Constructor and Description |
---|
SP3aEphemeris()
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
Point |
createPoint(int prn)
Creates a point based on the
PointInterpolator using the ECEF coordinate frame and the default
TranslationalMotionInterpolator . |
PlatformCollection |
createSatelliteCollection()
Creates a GPS satellite for each PRN referenced in the SP3 file.
|
TimeIntervalCollection |
getAvailabilityIntervals()
Gets a
TimeIntervalCollection over which data is available. |
TimeIntervalCollection |
getAvailabilityIntervals(TimeIntervalCollection consideredIntervals)
Gets the intervals over which data is available.
|
SP3aEphemerisData<Double> |
getClock()
Gets the clock data, by pseudorandom number.
|
SP3aEphemerisData<Double> |
getClockRate()
Gets the clock rate data, by pseudorandom number.
|
SP3aHeaderRecord |
getHeader()
Gets the header of the SP3a file.
|
boolean |
getIsVelocityIncluded()
Gets a value indicating whether this SP3a file has velocity data included.
|
SP3aEphemerisData<Cartesian> |
getPositions()
Gets the position data, by pseudorandom number.
|
List<JulianDate> |
getTimes()
Gets the epochs listed in the SP3a file, in the GPS time standard.
|
SP3aEphemerisData<Cartesian> |
getVelocities()
Gets the Velocity data, by pseudorandom number.
|
boolean |
isAvailable(JulianDate date)
Determines if valid data is available for the given
JulianDate . |
static SP3aEphemeris |
readFrom(BufferedReader reader)
Reads the SP3 version A file from the
BufferedReader and returns a SP3aEphemeris Record. |
static SP3aEphemeris |
readFrom(String fileName)
Reads the SP3 version A file from a file and returns a
SP3aEphemeris Record. |
void |
setHeader(SP3aHeaderRecord value)
Sets the header of the SP3a file.
|
void |
setIsVelocityIncluded(boolean value)
Sets a value indicating whether this SP3a file has velocity data included.
|
public TimeIntervalCollection getAvailabilityIntervals(TimeIntervalCollection consideredIntervals)
getAvailabilityIntervals
in interface IAvailability
consideredIntervals
- The intervals over which availability information is needed. Note that the returned availability
intervals may indicate availability outside of these intervals of consideration.public final boolean isAvailable(@Nonnull JulianDate date)
JulianDate
.isAvailable
in interface IAvailability
date
- The date for which to check availability.true
if valid data is available for this date; otherwise false
.@Nonnull public final TimeIntervalCollection getAvailabilityIntervals()
TimeIntervalCollection
over which data is available.
If the availability interval is infinite, this returns
Infinite
(get
).
It is recommended that you call SP3aEphemeris.isAvailable(agi.foundation.time.JulianDate)
to determine availability instead of
calling this method and checking for yourself.
@Nonnull public static SP3aEphemeris readFrom(@Nonnull String fileName)
SP3aEphemeris
Record.fileName
- The name of the SP3a file from which to read.SP3aEphemeris
.ArgumentNullException
- Thrown when fileName
is null
.InvalidDataException
- Thrown when the file represented by the fileName
is not
version "A".InvalidDataException
- Thrown when the Position-Velocity flag in the SP3 file is neither 'P' nor 'V'.@Nonnull public static SP3aEphemeris readFrom(@Nonnull BufferedReader reader)
BufferedReader
and returns a SP3aEphemeris
Record.reader
- BufferedReader
for the SP3a file to read.SP3aEphemeris
.ArgumentNullException
- Thrown when the reader
is null
.InvalidDataException
- Thrown when the file represented by the reader
is not
version "A".InvalidDataException
- Thrown when the Position-Velocity flag in the SP3 file is neither 'P' nor 'V'.@Nonnull public final PlatformCollection createSatelliteCollection()
GpsSatelliteExtension
instance for each record in the SP3 file.@Nonnull public final Point createPoint(int prn)
PointInterpolator
using the ECEF coordinate frame and the default
TranslationalMotionInterpolator
.prn
- The PRN to create the point for.ArgumentOutOfRangeException
- Thrown when the prn
is not listed in this SP3 file.@Nonnull public final List<JulianDate> getTimes()
@Nonnull public final SP3aEphemerisData<Cartesian> getPositions()
The position data is returned in meters.
@Nonnull public final SP3aEphemerisData<Cartesian> getVelocities()
The velocity data is returned in meters/second.
@Nonnull public final SP3aEphemerisData<Double> getClock()
The clock data is returned in microseconds.
@Nonnull public final SP3aEphemerisData<Double> getClockRate()
The clock rate data is returned in .0001 microseconds/second.
public final SP3aHeaderRecord getHeader()
public final void setHeader(SP3aHeaderRecord value)
public final boolean getIsVelocityIncluded()
public final void setIsVelocityIncluded(boolean value)