grs.pds.ahd
Class HendAveragedRecord

java.lang.Object
  |
  +--grs.pds.BasePdsRecord
        |
        +--grs.pds.SpatialSeriesRecord
              |
              +--grs.pds.SeasonalSeriesRecord
                    |
                    +--grs.pds.ahd.HendAveragedRecord
All Implemented Interfaces:
PdsRecord

public class HendAveragedRecord
extends SeasonalSeriesRecord

AHD : Averaged HEND Data. The table will contain the flux values for each cell in a 5°x5° grid. E.g. the first row will contain the data for the cell centered on +87.5°, 2.5°E, the second row will be centered on +82.5°, 7.5°E and so on, progressing eastward then southward.


Field Summary
 float alpha
           
 float epithermal_flux1
           
 float epithermal_flux2
           
 float exposure
          Exposure time of given map pixel, sec
 float fast_flux1
           
 float fast_flux2
           
 float in_sc_high_error
           
 float in_sc_high_normalization
           
 float in_sc_high_rate
           
 float in_sc_low_error
           
 float in_sc_low_normalization
           
 float in_sc_low_rate
           
 float latitude
          centerpoint latitude of 5x5 cell
 float ld_error
           
 float ld_normalization
           
 float ld_rate
           
 float longitude
          centerpoint longitude of 5x5 cell
 int mars_year
           
 float md_error
           
 float md_normalization
           
 float md_rate
           
 float neutron_normalization
           
 double sc_start
          start time of average in ticks
 double sc_stop
          stop time of average in ticks
 float sd_error
           
 float sd_normalization
           
 float sd_rate
           
 int season
           
 Date utc_start
           
 Date utc_stop
           
 
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
HendAveragedRecord(DataInputStream in)
          Read in an AHD record from a data input stream.
HendAveragedRecord(ResultSet rs)
          Constructor for NsDerivedRecord.
 
Method Summary
static String[] createInsertString(String schema)
          Create the SQL query used to insert data into the PDS schema.
static String[] createSelectString(String schema)
          Create the SQL to fetch DHD records.
 long getSCLKStart()
          Get start time of this record.
 long getSCLKStop()
          Get stop time of this record.
 Date getUTCStart()
          Get start time of this record.
 Date getUTCStop()
          Get stop time of this record.
static void main(String[] args)
          Demonstrates use of this class to parse an AHD file.
 int prepareInsert(PreparedStatement pstmt)
          Bind to prepared statement for insert into pds schema table.
 String[] toStringArray()
          Output as String array.
 void writeTo(DataOutputStream out)
          Output AHD record to 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

latitude

public float latitude
centerpoint latitude of 5x5 cell


longitude

public float longitude
centerpoint longitude of 5x5 cell


utc_start

public Date utc_start

utc_stop

public Date utc_stop

mars_year

public int mars_year

season

public int season

sc_start

public double sc_start
start time of average in ticks


sc_stop

public double sc_stop
stop time of average in ticks


exposure

public float exposure
Exposure time of given map pixel, sec


sd_normalization

public float sd_normalization

sd_rate

public float sd_rate

sd_error

public float sd_error

md_normalization

public float md_normalization

md_rate

public float md_rate

md_error

public float md_error

ld_normalization

public float ld_normalization

ld_rate

public float ld_rate

ld_error

public float ld_error

in_sc_low_normalization

public float in_sc_low_normalization

in_sc_low_rate

public float in_sc_low_rate

in_sc_low_error

public float in_sc_low_error

in_sc_high_normalization

public float in_sc_high_normalization

in_sc_high_rate

public float in_sc_high_rate

in_sc_high_error

public float in_sc_high_error

epithermal_flux1

public float epithermal_flux1

epithermal_flux2

public float epithermal_flux2

fast_flux1

public float fast_flux1

fast_flux2

public float fast_flux2

neutron_normalization

public float neutron_normalization

alpha

public float alpha
Constructor Detail

HendAveragedRecord

public HendAveragedRecord(ResultSet rs)
                   throws SQLException
Constructor for NsDerivedRecord.

Parameters:
rs - Database result to read from.

HendAveragedRecord

public HendAveragedRecord(DataInputStream in)
                   throws IOException
Read in an AHD record from a data input stream.

Parameters:
in - Input stream to read from.
Throws:
IOException - Could not read from stream.
Method Detail

createSelectString

public static String[] createSelectString(String schema)
Create the SQL to fetch DHD records.

Parameters:
schema - Schema to use (e.g. "map1").
Returns:
SQL to be used in PreparedStatement

createInsertString

public static String[] createInsertString(String schema)
Create the SQL query used to insert data into the PDS schema.

Parameters:
schema - DB Schema to use.
Returns:
SQL query array.

prepareInsert

public int prepareInsert(PreparedStatement pstmt)
                  throws SQLException
Bind to prepared statement for insert into pds schema table.

Specified by:
prepareInsert in class BasePdsRecord
Parameters:
pstmt -
Returns:
number of columns bound
Throws:
SQLException

toStringArray

public String[] toStringArray()
Output as String array.

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

getSCLKStart

public long getSCLKStart()
Get start time of this record.

Specified by:
getSCLKStart in class SeasonalSeriesRecord
Returns:
ticks

getSCLKStop

public long getSCLKStop()
Get stop time of this record.

Specified by:
getSCLKStop in class SeasonalSeriesRecord
Returns:
ticks

getUTCStart

public Date getUTCStart()
Get start time of this record.

Specified by:
getUTCStart in class SeasonalSeriesRecord
Returns:
UNIX time

getUTCStop

public Date getUTCStop()
Get stop time of this record.

Specified by:
getUTCStop in class SeasonalSeriesRecord
Returns:
UNIX time

writeTo

public void writeTo(DataOutputStream out)
             throws IOException
Output AHD record to stream.

Specified by:
writeTo in class BasePdsRecord
Parameters:
out - Stream to write to.
Throws:
IOException - could not write to stream

main

public static final void main(String[] args)
                       throws Exception
Demonstrates use of this class to parse an AHD file.

Parameters:
args - Filename
Exception


2001 Mars Odyssey Gamma Ray Spectrometer Team