|
Terrenus HRPT v2.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectterrenus.telemetry.AbstractTelemetryStream
terrenus.telemetry.HRPTStream
public abstract class HRPTStream
The HRPTStream
is a telemetry stream of NOAA HRPT
data. The stream delivers HRPT data as detailed in "NOAA Technical
Memorandum NESS 107 - Rev. 1, Data Extraction and Calibration of
TIROS-N/NOAA Radiometers, Walter G. Planet, Washington, D.C.,
November 1979 (Revised October 1988)".
The methods commit the subclass to the delivery of HRPT minor frames in the same format as outlined in the NOAA documentation, regardless of the underlying capture station storage format. In the case where the storage format does not store some part of the data, the methods may create artificial data (such as the frame synchronization) or may resort to zero-filling if there is no reasonable alternative. The only modification to the original documented format is that words returned by the methods contain data in the least significant 10 bits of a 16-bit value rather than the original 10-bit word.
Subclasses must implement the TelemetryStream.getFormat()
method and
override any other methods such as AbstractTelemetryStream.getFramePosition(int)
that would required changes if the file format is structurally
very different from a broadcast HRPT stream.
Field Summary | |
---|---|
static int |
AUX_SYNC_BLOCK
Auxiliary sync block index. |
static int[] |
BLOCK_LENGTHS
The array of HRPT frame block lengths in bytes. |
static int[] |
BLOCK_OFFSETS
The array of HRPT frame block offsets in bytes. |
static int |
EARTH_BLOCK
Earth data block index. |
static int |
FRAME_SYNC_BLOCK
Frame sync block index. |
static int |
ID_BLOCK
ID block index. |
static int |
INTERNAL_TARGET_BLOCK
Internal target block index. |
static int |
SPACE_BLOCK
Space data block index. |
static int |
SPARE_BLOCK
Spare words block index. |
static int |
SYNC_DELTA_BLOCK
Sync delta block index. |
static int |
TELEMETRY_BLOCK
Telemetry block index. |
static int |
TIME_CODE_BLOCK
Time code block index. |
static int |
TIP_BLOCK
TIP data block index. |
Fields inherited from class terrenus.telemetry.AbstractTelemetryStream |
---|
input |
Constructor Summary | |
---|---|
HRPTStream()
|
Method Summary | |
---|---|
protected boolean |
checkFrame(int frame)
Checks a frame for errors. |
int |
getBlockCount()
Gets the number of blocks per frame. |
protected int |
getBlockLength(int block)
Gets the length of a block. |
protected int |
getBlockPosition(int block)
Gets the position of a block within a frame. |
TelemetryDecoder |
getDecoder()
Gets a decoder for the stream data. |
Methods inherited from class terrenus.telemetry.AbstractTelemetryStream |
---|
checkStream, getBlock, getDayCount, getFrameCount, getFramePosition, getInputBuffer, getYear, initStream, main, setDayCount, setYear |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface terrenus.telemetry.TelemetryStream |
---|
getFormat |
Field Detail |
---|
public static final int[] BLOCK_OFFSETS
public static final int[] BLOCK_LENGTHS
public static final int FRAME_SYNC_BLOCK
public static final int ID_BLOCK
public static final int TIME_CODE_BLOCK
public static final int TELEMETRY_BLOCK
public static final int INTERNAL_TARGET_BLOCK
public static final int SPACE_BLOCK
public static final int SYNC_DELTA_BLOCK
public static final int TIP_BLOCK
public static final int SPARE_BLOCK
public static final int EARTH_BLOCK
public static final int AUX_SYNC_BLOCK
Constructor Detail |
---|
public HRPTStream()
Method Detail |
---|
public int getBlockCount()
TelemetryStream
protected int getBlockPosition(int block)
AbstractTelemetryStream
getBlockPosition
in class AbstractTelemetryStream
block
- the block in question.
protected int getBlockLength(int block)
AbstractTelemetryStream
getBlockLength
in class AbstractTelemetryStream
block
- the block in question.
public TelemetryDecoder getDecoder() throws java.io.IOException
TelemetryStream
java.io.IOException
- if an error occurred decoding the stream
data.protected boolean checkFrame(int frame)
AbstractTelemetryStream
checkFrame
in class AbstractTelemetryStream
frame
- the frame number to check.
AbstractTelemetryStream.checkStream()
|
Terrenus HRPT v2.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |