|
Terrenus HRPT v2.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectterrenus.telemetry.HRPTDecoder
public class HRPTDecoder
The HRPTDecoder
class uses an HRPTStream
to
decode NOAA HRPT data.
Constructor Summary | |
---|---|
HRPTDecoder(HRPTStream stream)
Create a new decoder using the specified stream. |
Method Summary | |
---|---|
int |
getAuxSyncErrors(int frame)
Gets the number of errors in the frame auxiliary sync bits, or 0 if no errors are present. |
int |
getAVHRRSyncPeriods(int frame)
Gets the count of 0.9984 MHz AVHRR sync periods. |
InstrumentData |
getData(int frame,
Instrument inst)
Gets the frame data for a specific instrument. |
int |
getDayCount(int frame)
Gets the frame day count. |
int |
getFrameSyncErrors(int frame)
Gets the number of errors in the frame sync bits, or 0 if no errors are present. |
int |
getMillisecond(int frame)
Gets the frame millisecond. |
int |
getMinorFrame(int frame)
Returns the minor frame number, either 1, 2, or 3. |
Spacecraft |
getSpacecraft()
Gets the spacecraft detected by this decoder. |
int |
getSpacecraftId()
Gets the spacecraft address identified for this HRPT data. |
int |
getSpacecraftId(int frame)
Gets the spacecraft address for the frame. |
HRPTStream |
getStream()
Gets the telemetry stream used for data. |
long |
getTime(int frame)
Gets the start time of frame capture in milliseconds since the epoch. |
int |
getTIPParityErrors(int frame)
Gets the number of TIP words in the frame that have errors based on an even parity check over bits 1-8 with parity in bit 9. |
boolean |
hasErrors(int frame)
Gets the frame error flag. |
boolean |
isAVHRRNormal(int frame)
Returns true if the frame is normal AVHRR input, or false if it is pseudonoise. |
boolean |
isAVHRRSync(int frame)
Returns true if the frame is an AVHRR sync, or false if it is an internal sync. |
boolean |
isAVHRRSyncLate(int frame)
Returns true if the frame AVHRR sync delta is late, or false if it is early. |
boolean |
isChannel3a(int frame)
Returns true if the frame contains AVHRR channel 3a data, or false if it contains AVHRR channel 3b. |
boolean |
isResync(int frame)
Returns true if the frame is a resync, or false if it is stable. |
static void |
main(java.lang.String[] argv)
Tests this class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HRPTDecoder(HRPTStream stream) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public boolean hasErrors(int frame) throws java.io.IOException
TelemetryDecoder
hasErrors
in interface TelemetryDecoder
frame
- the frame to return the flag for in the range
[0..FRAMES-1].
java.io.IOException
- if an error occurred reading data from the
stream.public HRPTStream getStream()
TelemetryDecoder
getStream
in interface TelemetryDecoder
public int getFrameSyncErrors(int frame)
public boolean isAVHRRSync(int frame) throws java.io.IOException
java.io.IOException
public int getMinorFrame(int frame) throws java.io.IOException
java.io.IOException
public long getTime(int frame)
getDayCount(int)
and getMillisecond(int)
since some frames may
have bit errors. The actual frame time is computed by examining
a number of frame times, inferring the correct data start time
from those times, and then computing the frame time using the
frame index and the known frame step interval. This presents the
HRPT data as a continuous, uniformly stepping set of frames and
is very useful for computing correct Earth locations for every
sensor scan even when the frame itself contains unusable sensor
data.
getTime
in interface TelemetryDecoder
frame
- the frame to return the time for, starting at 0.
public int getSpacecraftId()
getSpacecraftId(int)
since some frames may have bit
errors. The actual spacecraft address is detected by
examining a number of HRPT minor frames.
public int getSpacecraftId(int frame) throws java.io.IOException
java.io.IOException
public boolean isResync(int frame) throws java.io.IOException
java.io.IOException
public boolean isAVHRRNormal(int frame) throws java.io.IOException
java.io.IOException
public boolean isChannel3a(int frame) throws java.io.IOException
java.io.IOException
public int getDayCount(int frame) throws java.io.IOException
java.io.IOException
public int getMillisecond(int frame) throws java.io.IOException
java.io.IOException
public boolean isAVHRRSyncLate(int frame) throws java.io.IOException
java.io.IOException
public int getAVHRRSyncPeriods(int frame) throws java.io.IOException
java.io.IOException
public int getTIPParityErrors(int frame)
public int getAuxSyncErrors(int frame)
public InstrumentData getData(int frame, Instrument inst) throws java.io.IOException
TelemetryDecoder
getData
in interface TelemetryDecoder
frame
- the frame to return data for in the range
[0..FRAMES-1].inst
- the instrument to return data for.
java.io.IOException
- if an error occurred reading the instrument
data from the stream.public Spacecraft getSpacecraft()
TelemetryDecoder
getSpacecraft
in interface TelemetryDecoder
public static void main(java.lang.String[] argv) throws java.lang.Exception
java.lang.Exception
|
Terrenus HRPT v2.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |