Click or drag to resize

YumaAlmanacRecordReadFrom Method

Reads a record from a reader.

Namespace:  AGI.Foundation.Navigation.DataReaders
Assembly:  AGI.Foundation.Navigation (in AGI.Foundation.Navigation.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public static YumaAlmanacRecord ReadFrom(
	TextReader reader,
	int rolloverCount
)

Parameters

reader
Type: System.IOTextReader
The reader to read from.
rolloverCount
Type: SystemInt32
The number of times the GPS week counter had rolled over when this almanac was created. See below for more information.

Return Value

Type: YumaAlmanacRecord
A record read from the stream, or if there are no records left to be read.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when reader is .
ArgumentOutOfRangeException Thrown when rolloverCount is less than zero.
FormatExceptionThrown when the Yuma Almanac is not well-formed.
OverflowExceptionThrown when the values in the Yuma almanac are too large.
IndexOutOfRangeExceptionThrown when a line in the Yuma almanac is not well-formed.
Remarks

The following list represents the rollover dates for the GPS week parameter. On or after the date listed below, you will need to use the specified rollover count.

DateRollover Count
January 6, 19800
August 22, 19991
April 7, 20192
November 21, 20383
July 7, 20584

To compute the rollover count for a given date, construct a GlobalPositioningSystemDate and use the value of RolloverCount.

See Also