Terrenus HRPT v2.2

terrenus.instrument
Class MVISRData

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

public class MVISRData
extends java.lang.Object
implements RadiometerData

The MVISRData class holds data from an MVISR instrument on the FY1 series spacecrafts.

See Also:
MVISR, FY1Spacecraft

Constructor Summary
MVISRData(int frame, CHRPTDecoder decoder, MVISRCalibrator calibrator, RadiometerCalibrator.Record record, MVISRLocator locator)
          Creates a new MVISR 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.
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

MVISRData

public MVISRData(int frame,
                 CHRPTDecoder decoder,
                 MVISRCalibrator calibrator,
                 RadiometerCalibrator.Record record,
                 MVISRLocator locator)
Creates a new MVISR data object for the specified telemetry frame.

Parameters:
frame - the frame number for the data.
decoder - the CHRPT 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.

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception
Tests this class.

Throws:
java.lang.Exception

Terrenus HRPT v2.2