grs.pds.sgs
Class SummedGammaSpectraRecord

java.lang.Object
  |
  +--grs.pds.BasePdsRecord
        |
        +--grs.pds.SpatialSeriesRecord
              |
              +--grs.pds.sgs.SummedGammaSpectraRecord
All Implemented Interfaces:
PdsRecord

public class SummedGammaSpectraRecord
extends SpatialSeriesRecord

SGS (Summed Gamma Spectra) Sums of corrected spectra.

Author:
guym

Field Summary
 int apps_gain_dhk_default
           
 int apps_gain_dhk_max
           
 int apps_gain_dhk_min
           
 float b170k_temp_max
           
 float b170k_temp_mean
           
 float b170k_temp_min
           
 float b170k_temp_std
           
 long bad_code
           
 double clock_time
           
 short first_channel_max
          first valid channel, typically zero
 float gain_mean
           
 float gamma_vref_temp_max
           
 float gamma_vref_temp_mean
           
 float gamma_vref_temp_min
           
 float gamma_vref_temp_std
           
 float gpa_temp_max
           
 float gpa_temp_mean
           
 float gpa_temp_min
           
 float gpa_temp_std
           
 float hvbs_monitor_max
           
 float hvbs_monitor_mean
           
 float hvbs_monitor_min
           
 float hvbs_monitor_std
           
 float is_temp_a_max
           
 float is_temp_a_mean
           
 float is_temp_a_min
           
 float is_temp_a_std
           
 float is_temp_b_max
           
 float is_temp_b_mean
           
 float is_temp_b_min
           
 float is_temp_b_std
           
 double l1_sum
           
 double l2_sum
           
 double l3_sum
           
 short last_channel_min
          last valid channel, typically 16383
 float latitude
           
 double lld_sum
           
 float longitude
           
 float offset_mean
           
 float os_temp_a_max
           
 float os_temp_a_mean
           
 float os_temp_a_min
           
 float os_temp_a_std
           
 float os_temp_b_max
           
 float os_temp_b_mean
           
 float os_temp_b_min
           
 float os_temp_b_std
           
 double pha_sum
           
 double record_count
           
 double sc_start
           
 double sc_stop
           
static int SPECTRUM_LENGTH
          number of bytes in gamma spectrum
 byte[] summed_spectrum
          the summed corrected gamma spectrum
 double uld_sum
           
 Date utc_start_time
           
 Date utc_stop_time
           
 
Fields inherited from class grs.pds.BasePdsRecord
PdsTimeFormat
 
Fields inherited from interface grs.pds.PdsRecord
GAMMA_CHANNELS, int10, int12, int2, int3, logger, MESSAGE_LENGTH, NS_MAX_EVENTS, PEF_COMMANDS, prec10, prec12, prec13, prec14, prec15, prec16, prec17, prec5, prec6, prec7, PROFILE_LENGTH, PROFILE_SIZE, PULSER_CHANNELS, QUERY_DATE_FMT, SC_ID
 
Constructor Summary
SummedGammaSpectraRecord(DataInputStream in)
           
SummedGammaSpectraRecord(ResultSet rs)
           
 
Method Summary
static String[] createInsertString(String schema)
           
static String[] createSelectString(String schema)
           
static void main(String[] args)
          Demonstrates use of this class to parse a CGS file.
 int prepareInsert(PreparedStatement pstmt)
          Bind the values to a prepared statement, for inserting into schema.
 String[] toStringArray()
          Subclasses will override this to display records as text, suitable for display.
 void writeTo(DataOutputStream out)
          Subclasses will override this method to write data to a binary or text stream.
 
Methods inherited from class grs.pds.BasePdsRecord
endianSwapShort
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPECTRUM_LENGTH

public static final int SPECTRUM_LENGTH
number of bytes in gamma spectrum

See Also:
Constant Field Values

latitude

public float latitude

longitude

public float longitude

utc_start_time

public Date utc_start_time

utc_stop_time

public Date utc_stop_time

sc_start

public double sc_start

sc_stop

public double sc_stop

clock_time

public double clock_time

record_count

public double record_count

bad_code

public long bad_code

lld_sum

public double lld_sum

uld_sum

public double uld_sum

l1_sum

public double l1_sum

l2_sum

public double l2_sum

l3_sum

public double l3_sum

pha_sum

public double pha_sum

hvbs_monitor_min

public float hvbs_monitor_min

hvbs_monitor_max

public float hvbs_monitor_max

hvbs_monitor_mean

public float hvbs_monitor_mean

hvbs_monitor_std

public float hvbs_monitor_std

is_temp_a_min

public float is_temp_a_min

is_temp_a_max

public float is_temp_a_max

is_temp_a_mean

public float is_temp_a_mean

is_temp_a_std

public float is_temp_a_std

is_temp_b_min

public float is_temp_b_min

is_temp_b_max

public float is_temp_b_max

is_temp_b_mean

public float is_temp_b_mean

is_temp_b_std

public float is_temp_b_std

os_temp_a_min

public float os_temp_a_min

os_temp_a_max

public float os_temp_a_max

os_temp_a_mean

public float os_temp_a_mean

os_temp_a_std

public float os_temp_a_std

os_temp_b_min

public float os_temp_b_min

os_temp_b_max

public float os_temp_b_max

os_temp_b_mean

public float os_temp_b_mean

os_temp_b_std

public float os_temp_b_std

b170k_temp_min

public float b170k_temp_min

b170k_temp_max

public float b170k_temp_max

b170k_temp_mean

public float b170k_temp_mean

b170k_temp_std

public float b170k_temp_std

gpa_temp_min

public float gpa_temp_min

gpa_temp_max

public float gpa_temp_max

gpa_temp_mean

public float gpa_temp_mean

gpa_temp_std

public float gpa_temp_std

gamma_vref_temp_min

public float gamma_vref_temp_min

gamma_vref_temp_max

public float gamma_vref_temp_max

gamma_vref_temp_mean

public float gamma_vref_temp_mean

gamma_vref_temp_std

public float gamma_vref_temp_std

apps_gain_dhk_default

public int apps_gain_dhk_default

apps_gain_dhk_min

public int apps_gain_dhk_min

apps_gain_dhk_max

public int apps_gain_dhk_max

gain_mean

public float gain_mean

offset_mean

public float offset_mean

first_channel_max

public short first_channel_max
first valid channel, typically zero


last_channel_min

public short last_channel_min
last valid channel, typically 16383


summed_spectrum

public byte[] summed_spectrum
the summed corrected gamma spectrum

Constructor Detail

SummedGammaSpectraRecord

public SummedGammaSpectraRecord(ResultSet rs)
                         throws SpiceException,
                                SQLException,
                                IOException

SummedGammaSpectraRecord

public SummedGammaSpectraRecord(DataInputStream in)
                         throws IOException,
                                ParseException
Method Detail

toStringArray

public String[] toStringArray()
Description copied from class: BasePdsRecord
Subclasses will override this to display records as text, suitable for display.

Specified by:
toStringArray in class BasePdsRecord
Returns:
Array of column values.

createSelectString

public static String[] createSelectString(String schema)

createInsertString

public static String[] createInsertString(String schema)

prepareInsert

public int prepareInsert(PreparedStatement pstmt)
                  throws IOException,
                         SQLException
Description copied from class: BasePdsRecord
Bind the values to a prepared statement, for inserting into schema. Should return the number of values bound.

Specified by:
prepareInsert in class BasePdsRecord
IOException
SQLException

writeTo

public void writeTo(DataOutputStream out)
             throws IOException
Description copied from class: BasePdsRecord
Subclasses will override this method to write data to a binary or text stream.

Specified by:
writeTo in class BasePdsRecord
Parameters:
out - OutputStream to write data to.
Throws:
IOException - Error writing to stream.

main

public static final void main(String[] args)
Demonstrates use of this class to parse a CGS file.

Parameters:
args - Filename


2001 Mars Odyssey Gamma Ray Spectrometer Team