Terrenus HRPT v2.2

terrenus.instrument
Class AVHRRData

java.lang.Object
  extended by terrenus.instrument.AVHRRData
All Implemented Interfaces:
InstrumentData, RadiometerData

public class AVHRRData
extends java.lang.Object
implements RadiometerData

The AVHRRData class holds data from an AVHRR/3 instrument on the NOAA KLM series spacecrafts.

See Also:
AVHRR, NOAAKLMSpacecraft

Constructor Summary
AVHRRData(int frame, HRPTDecoder decoder, AVHRRCalibrator calibrator, RadiometerCalibrator.Record record, AVHRRLocator locator)
          Creates a new AVHRR data object for the specified telemetry frame.
 
Method Summary
 double[] getCalibratedData(int channel, RadiometerCalibrator.CalibrationType calType, double[] calData)
          Gets the calibrated data for the radiometer channel.
 int[] getCountData(int channel, int[] countData)
          Gets the raw count data for the radiometer channel.
 Instrument getInstrument()
          Gets the instrument on which the data was recorded.
 void getLocationData(double[] latitude, double[] longitude, double[] satZenith, double[] solZenith, double[] relAzimuth)
          Gets the earth locations and angles for the radiometer data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AVHRRData

public AVHRRData(int frame,
                 HRPTDecoder decoder,
                 AVHRRCalibrator calibrator,
                 RadiometerCalibrator.Record record,
                 AVHRRLocator locator)
Creates a new AVHRR data object for the specified telemetry frame.

Parameters:
frame - the frame number for the data.
decoder - the HRPT decoder to use for data.
calibrator - the calibrator to use for calibration.
record - the calibration record for this data or null if one cannot be created.
locator - the location generator.
Method Detail

getInstrument

public Instrument getInstrument()
Description copied from interface: InstrumentData
Gets the instrument on which the data was recorded.

Specified by:
getInstrument in interface InstrumentData

getCountData

public int[] getCountData(int channel,
                          int[] countData)
                   throws java.io.IOException
Description copied from interface: RadiometerData
Gets the raw count data for the radiometer channel.

Specified by:
getCountData in interface RadiometerData
Parameters:
channel - the channel to retrieve data for.
countData - the destination data array or null to create.
Returns:
the count data array.
Throws:
java.io.IOException - if an error occurred reading the data.

getCalibratedData

public double[] getCalibratedData(int channel,
                                  RadiometerCalibrator.CalibrationType calType,
                                  double[] calData)
                           throws java.io.IOException
Description copied from interface: RadiometerData
Gets the calibrated data for the radiometer channel.

Specified by:
getCalibratedData in interface RadiometerData
Parameters:
channel - the channel to retrieve data for in the range [1..N].
calType - the calibration type.
calData - the destination data array or null to create.
Returns:
the calibrated data array.
Throws:
java.io.IOException - if an error occurred reading the data or no calibration data was available.

getLocationData

public void getLocationData(double[] latitude,
                            double[] longitude,
                            double[] satZenith,
                            double[] solZenith,
                            double[] relAzimuth)
Description copied from interface: RadiometerData
Gets the earth locations and angles for the radiometer data. Locations are geodetic latitude and longitude. All angles are in radians.

Specified by:
getLocationData in interface RadiometerData
Parameters:
latitude - the output latitude array.
longitude - the output longitude array.
satZenith - the output satellite zenith array.
solZenith - the output solar zenith array.
relAzimuth - the output relative azimuth array.

Terrenus HRPT v2.2