Terrenus HRPT v2.2

terrenus.telemetry
Class NOAA1bHRPTStream

java.lang.Object
  extended by terrenus.telemetry.AbstractTelemetryStream
      extended by terrenus.telemetry.HRPTStream
          extended by terrenus.telemetry.NOAA1bHRPTStream
All Implemented Interfaces:
TelemetryStream

public class NOAA1bHRPTStream
extends HRPTStream

The NOAA1bHRPTStream class reads NOAA 1b format data files and extracts just the HRPT frame data. The format supported has two variants:

  1. NOAA 1b version 1 style (pre-KLM) as described at:
    http://www.ncdc.noaa.gov/oa/pod-guide/ncdc/docs/podug/html/c2/sec2-0.htm
    http://www.ncdc.noaa.gov/oa/pod-guide/ncdc/docs/podug/html/c2/sec2-1.htm
    http://www.ncdc.noaa.gov/oa/pod-guide/ncdc/docs/podug/html/c3/sec3-1.htm#sec3-121
    http://www.ncdc.noaa.gov/oa/pod-guide/ncdc/docs/podug/html/c3/sec3-2.htm
  2. NOAA 1b version 2 and up style (KLMNN') as described at:
    http://www.ncdc.noaa.gov/oa/pod-guide/ncdc/docs/klm/html/c8/sec831-1.htm
    http://www.ncdc.noaa.gov/oa/pod-guide/ncdc/docs/klm/html/c8/sec831-2.htm
    http://www.ncdc.noaa.gov/oa/pod-guide/ncdc/docs/klm/html/c8/sec83132-2.htm
    http://www.ncdc.noaa.gov/oa/pod-guide/ncdc/docs/klm/html/c8/sec83133-2.htm


Field Summary
 
Fields inherited from class terrenus.telemetry.HRPTStream
AUX_SYNC_BLOCK, BLOCK_LENGTHS, BLOCK_OFFSETS, EARTH_BLOCK, FRAME_SYNC_BLOCK, ID_BLOCK, INTERNAL_TARGET_BLOCK, SPACE_BLOCK, SPARE_BLOCK, SYNC_DELTA_BLOCK, TELEMETRY_BLOCK, TIME_CODE_BLOCK, TIP_BLOCK
 
Fields inherited from class terrenus.telemetry.AbstractTelemetryStream
input
 
Constructor Summary
NOAA1bHRPTStream(java.lang.String fileName)
          Creates a new stream using the specified file as input.
 
Method Summary
 java.nio.ByteBuffer getBlock(int frame, int block)
          Gets the data for the specified block.
 java.lang.String getFormat()
          Gets a description of the underlying data format.
 
Methods inherited from class terrenus.telemetry.HRPTStream
checkFrame, getBlockCount, getBlockLength, getBlockPosition, getDecoder
 
Methods inherited from class terrenus.telemetry.AbstractTelemetryStream
checkStream, 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
 

Constructor Detail

NOAA1bHRPTStream

public NOAA1bHRPTStream(java.lang.String fileName)
                 throws java.io.IOException
Creates a new stream using the specified file as input.

Throws:
java.io.IOException
Method Detail

getFormat

public java.lang.String getFormat()
Description copied from interface: TelemetryStream
Gets a description of the underlying data format.


getBlock

public java.nio.ByteBuffer getBlock(int frame,
                                    int block)
Description copied from interface: TelemetryStream
Gets the data for the specified block.

Specified by:
getBlock in interface TelemetryStream
Overrides:
getBlock in class AbstractTelemetryStream
Parameters:
frame - the frame to get data.
block - the block number to get data.
Returns:
the block data buffer.

Terrenus HRPT v2.2