terrenus.telemetry
Class QuorumCHRPTStream
java.lang.Object
terrenus.telemetry.AbstractTelemetryStream
terrenus.telemetry.CHRPTStream
terrenus.telemetry.QuorumCHRPTStream
- All Implemented Interfaces:
- TelemetryStream
public class QuorumCHRPTStream
- extends CHRPTStream
The QuorumCHRPTStream
class reads Quorum QTrack CMA
CHRPT storage format. The file structure is as follows:
- Possible header of unknown size
- CHRPT pseudo frames signalled by a 0x8000 start word
- 44360 bytes per CHRPT frame
- 10-bit words are stored as least significant 10 bits
in each 16-bit byte-swapped word
Fields inherited from class terrenus.telemetry.CHRPTStream |
AUX_SYNC_BLOCK, BLOCK_LENGTHS, BLOCK_OFFSETS, EARTH_BLOCK, FRAME_SYNC_BLOCK, ID_BLOCK, INTERNAL_TARGET_BLOCK, SPACE_BLOCK, SPARE_BLOCK, TELEMETRY_BLOCK, TIME_CODE_BLOCK |
Constructor Summary |
QuorumCHRPTStream(java.lang.String fileName)
Creates a new stream using the specified file as input. |
Method Summary |
int |
getDayCount(int frame)
Gets the day count for the specified frame. |
java.lang.String |
getFormat()
Gets a description of the underlying data format. |
int |
getFrameCount()
Gets the total number of telemetry frames. |
protected int |
getFramePosition(int frame)
Gets the position of a frame within the input. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuorumCHRPTStream
public QuorumCHRPTStream(java.lang.String fileName)
throws java.io.IOException
- Creates a new stream using the specified file as input.
- Throws:
java.io.IOException
getFormat
public java.lang.String getFormat()
- Description copied from interface:
TelemetryStream
- Gets a description of the underlying data format.
getFramePosition
protected int getFramePosition(int frame)
- Description copied from class:
AbstractTelemetryStream
- Gets the position of a frame within the input.
- Overrides:
getFramePosition
in class AbstractTelemetryStream
- Parameters:
frame
- the frame in question.
- Returns:
- the position in bytes, relative to the end of any input
header data.
getFrameCount
public int getFrameCount()
- Description copied from interface:
TelemetryStream
- Gets the total number of telemetry frames.
- Specified by:
getFrameCount
in interface TelemetryStream
- Overrides:
getFrameCount
in class AbstractTelemetryStream
getDayCount
public int getDayCount(int frame)
throws java.io.IOException
- Description copied from class:
CHRPTStream
- Gets the day count for the specified frame. The day count is not
available from the CHRPT telemetry stream from the spacecraft
because the bits in the time code where the day count are
supposed to be are zero filled.
- Specified by:
getDayCount
in class CHRPTStream
- Throws:
java.io.IOException