grs.pds.and
Class NsAveragedRecord

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

public class NsAveragedRecord
extends SpatialSeriesRecord

AND : Averaged Neutron Data. Product will contain fluxes for thermal, epithermal and fast neutrons over Martian seasons (15° of Ls) split into 4 weeks (3.75 ° of Ls. 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.

Author:
guym

Field Summary
 double epi_count
          stop time of average in ticks
 float epi_flux
           
 float epi_livetime
           
 float epi_overload_rate
           
 float epi_percent_dead
           
 double fast_count
           
 float fast_flux
           
 float fast_livetime
           
 float fast_overload_rate
           
 float fast_percent_dead
           
 float latitude
           
 float longitude
          centerpoint latitude of 5x5 cell
 double sc_start
           
 double sc_stop
          start time of average in ticks
 double thrm_count
           
 float thrm_flux
           
 float thrm_livetime
           
 float thrm_overload_rate
           
 float thrm_percent_dead
           
 Date utc_start
          centerpoint longitude of 5x5 cell
 Date utc_stop
          centerpoint longitude of 5x5 cell
 
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
NsAveragedRecord(DataInputStream in)
           
NsAveragedRecord(ResultSet rs)
          Constructor for NsDerivedRecord.
 
Method Summary
static String[] createInsertString(String schema)
          Create the SQL query used to insert gamma data into the PDS schema.
static String[] createSelectString(String schema)
           
 long getSCLKStart()
           
 long getSCLKStop()
           
static void main(String[] args)
          Demonstrates use of this class to parse an AND 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

latitude

public float latitude

longitude

public float longitude
centerpoint latitude of 5x5 cell


utc_start

public Date utc_start
centerpoint longitude of 5x5 cell


utc_stop

public Date utc_stop
centerpoint longitude of 5x5 cell


sc_start

public double sc_start

sc_stop

public double sc_stop
start time of average in ticks


epi_count

public double epi_count
stop time of average in ticks


epi_livetime

public float epi_livetime

epi_percent_dead

public float epi_percent_dead

epi_overload_rate

public float epi_overload_rate

epi_flux

public float epi_flux

thrm_count

public double thrm_count

thrm_livetime

public float thrm_livetime

thrm_percent_dead

public float thrm_percent_dead

thrm_overload_rate

public float thrm_overload_rate

thrm_flux

public float thrm_flux

fast_count

public double fast_count

fast_livetime

public float fast_livetime

fast_percent_dead

public float fast_percent_dead

fast_overload_rate

public float fast_overload_rate

fast_flux

public float fast_flux
Constructor Detail

NsAveragedRecord

public NsAveragedRecord(ResultSet rs)
                 throws SQLException,
                        SpiceException
Constructor for NsDerivedRecord.

Parameters:
rs -

NsAveragedRecord

public NsAveragedRecord(DataInputStream in)
                 throws IOException
Method Detail

createSelectString

public static String[] createSelectString(String schema)
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 gamma data into the PDS schema.

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

prepareInsert

public int prepareInsert(PreparedStatement pstmt)
                  throws 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
SQLException

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.

getSCLKStart

public long getSCLKStart()

getSCLKStop

public long getSCLKStop()

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.
See Also:
BasePdsRecord.writeTo(DataOutputStream)

main

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

Parameters:
args - Filename
Exception


2001 Mars Odyssey Gamma Ray Spectrometer Team