|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--grs.pds.BasePdsRecord
|
+--grs.pds.TimeSeriesRecord
|
+--grs.pds.dhd.HendDerivedRecord
DHD: Derived HEND Data.
| Field Summary | |
float |
latitude
|
float |
ld_adjusted_counts
|
float |
ld_background
|
float |
ld_raw_counts
|
float |
longitude
|
float |
mars_sol
|
float |
md_adjusted_counts
|
float |
md_background
|
float |
md_raw_counts
|
float |
pixel_duration
|
float |
sc_high_adjusted_counts
|
float |
sc_high_background
|
float |
sc_high_raw_counts
|
float |
sc_low_adjusted_counts
|
float |
sc_low_background
|
float |
sc_low_raw_counts
|
long |
sc_recv_time
|
float |
sd_adjusted_counts
|
float |
sd_background
|
float |
sd_raw_counts
|
byte |
sun_activity
|
Date |
utc
|
| 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 | |
HendDerivedRecord(DataInputStream in)
Read DHD record from binary stream. |
|
HendDerivedRecord(ResultSet rs)
Create a DHD record from a database ResultSet. |
|
| Method Summary | |
static String[] |
createInsertString(String schema)
Create the SQL to insert DHD records into the PDS schema. |
static String[] |
createSelectString(String schema)
Create the SQL to fetch DND records. |
long |
getSCLK()
The time of this record. |
Date |
getUTC()
The time of this record. |
static void |
main(String[] args)
Demonstrates use of this class to parse a DHD file. |
int |
prepareInsert(PreparedStatement pstmt)
Bind values to the insert statement. |
String[] |
toStringArray()
Fetch this record as an array of strings. |
void |
writeTo(DataOutputStream out)
Write this record to a stream in the format specified in the label. |
| 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 |
public long sc_recv_time
public Date utc
public byte sun_activity
public float latitude
public float longitude
public float mars_sol
public float pixel_duration
public float sd_background
public float md_background
public float ld_background
public float sc_low_background
public float sc_high_background
public float sd_raw_counts
public float md_raw_counts
public float ld_raw_counts
public float sc_low_raw_counts
public float sc_high_raw_counts
public float sd_adjusted_counts
public float md_adjusted_counts
public float ld_adjusted_counts
public float sc_low_adjusted_counts
public float sc_high_adjusted_counts
| Constructor Detail |
public HendDerivedRecord(ResultSet rs)
throws SQLException
rs - ResultSet from query.
SQLException - Error reading from ResultSet.
public HendDerivedRecord(DataInputStream in)
throws IOException,
ParseException
in - Stream in DHD format.
IOException - Error reading from stream.
ParseException - Unparseable date (utc)| Method Detail |
public static String[] createSelectString(String schema)
schema -
public static String[] createInsertString(String schema)
schema - DB schema to use.
public Date getUTC()
getUTC in class TimeSeriesRecord
public void writeTo(DataOutputStream out)
throws IOException
writeTo in class BasePdsRecordout - Data stream to write to.
IOException - Error writing to stream.
public int prepareInsert(PreparedStatement pstmt)
throws SQLException
prepareInsert in class BasePdsRecordpstmt -
SQLExceptionpublic long getSCLK()
getSCLK in class TimeSeriesRecordpublic String[] toStringArray()
toStringArray in class BasePdsRecord
public static final void main(String[] args)
throws Exception
args - Filename
Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||