|
|||||||||||
| 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.edr.ProfileEdrRecord
GRS gamma profile records.
| Nested Class Summary | |
class |
ProfileEdrRecord.Profile
Profile element from the profile_series. |
| Field Summary | |
long |
bad_code
bad flags defined in BadFlag.doc |
long |
ceb_time
CEB time in milliseconds since previous rollover |
long |
counter
counters from up to eight packets |
int |
ody_orbit
ody orbit number |
int |
orbit
grs orbit number |
int |
pixel
grs pixel number |
ProfileEdrRecord.Profile[] |
profile
profile array |
short |
profile_count
number of valid elements in the profile array |
long |
sc_ev_time
spacecraft time at middle of the pixel, in ticks |
short |
sc_ev_time_fine
fine time addition to sc_ev_time |
long |
sc_recv_time
spacecraft received time, in ticks |
Date |
utc
UTC at middle of pixel |
| 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 | |
ProfileEdrRecord(DataInputStream in)
Create record from a DataInputStream. |
|
ProfileEdrRecord(ResultSet rs)
Read record from a ResultSet. |
|
| 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)
Create the SQL query string used for these records. |
long |
getSCLK()
Get the Date (time) of record. |
Date |
getUTC()
Get the UTC time that this record was observed on. |
static void |
main(String[] args)
Demonstrates use of this class to parse a Profile EDR record. |
int |
prepareInsert(PreparedStatement pstmt)
Bind the variables to a prepared statement. |
String[] |
toStringArray()
Display this record as a string array. |
void |
writeTo(DataOutputStream out)
Write record to DataOutputStream. |
| 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 long sc_ev_time
public short sc_ev_time_fine
public long ceb_time
public Date utc
public int pixel
public int orbit
public int ody_orbit
public long bad_code
public long counter
public short profile_count
public ProfileEdrRecord.Profile[] profile
| Constructor Detail |
public ProfileEdrRecord(ResultSet rs)
throws SQLException,
IOException
rs - ResultSet to read from.
SQLException - error reading from result set.
IOException - internal error processing data.
public ProfileEdrRecord(DataInputStream in)
throws ParseException,
IOException
in - Stream to read from.
IOException - Error reading from stream.
ParseException - UTC date is in an invalid format.| Method Detail |
public static String[] createSelectString(String schema)
schema - DB Schema to use.
public static String[] createInsertString(String schema)
schema - DB Schema to use.
public int prepareInsert(PreparedStatement pstmt)
throws SQLException
prepareInsert in class BasePdsRecordpstmt - prepared statement
SQLException - could not bind variables
public void writeTo(DataOutputStream out)
throws IOException
writeTo in class BasePdsRecordout - Stream to write to.
IOException - Error writing to stream.public String[] toStringArray()
toStringArray in class BasePdsRecordpublic long getSCLK()
getSCLK in class TimeSeriesRecordpublic Date getUTC()
TimeSeriesRecord
getUTC in class TimeSeriesRecord
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 | ||||||||||