|
|||||||||||
| 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.cgs.CorrectedGammaSpectraRecord
CGS: Corrected Gamma Spectrum.
| Field Summary | |
short |
apps_gain_dhk
|
float |
b170k_norm_temp
|
float |
b170k_temp
|
float |
b170k_tempco
|
long |
bad_code
defined in bad_flags.txt |
long |
ceb_time
GRS CEB count in milliseconds |
byte[] |
corrected_spectrum
the corrected gamma spectrum |
short |
day_index
mars day of year |
double |
delta_angle
pointing angle in degrees from |
short |
first_channel
first valid channel, typically zero |
short |
first_full_channel
|
float |
gain
target gain and offset |
float |
gain_correction
|
float |
gamma_vref_temp
|
double[] |
gpa_coefficients
|
float |
gpa_temp
|
int |
grs_orbit_number
GRS orbit number |
int |
grs_pixel_number
pixel number since the start of GRS orbit number |
float |
hvbs_monitor
|
double[] |
inl_coefficients
|
RCoords |
instrboresight_mars
instrument normal vector |
byte |
intersecting
1 = pointed at planet, 0 = not |
float |
is_norm_temp
|
float |
is_temp_a
smoothed, interpolated engineering values |
float |
is_temp_b
smoothed, interpolated engineering values |
float |
is_tempco
|
int |
l1_cntr
|
int |
l2_cntr
|
int |
l3_cntr
|
short |
last_channel
last valid channel, typically 16383 |
short |
last_full_channel
|
double |
latitude
centerpoint latitude (degrees) |
int |
lld_cntr
|
byte |
local_hour
position of sun at sub-spacecraft point |
byte |
local_min
position of sun at sub-spacecraft point |
double |
longitude
centerpoint longitude, east (degrees) |
double |
mars_sol
solar longitude |
int |
ody_orbit_number
spacecraft orbit number |
float |
offset
target gain and offset |
float |
offset_correction
|
float |
os_temp_a
smoothed, interpolated engineering values |
float |
os_temp_b
smoothed, interpolated engineering values |
int |
pha_cntr
|
long |
pha_timer
|
short |
pixel_duration
collection interval |
byte |
pointing
1 = pointing data available, 0 = not |
long |
sc_ev_time
middle of the pixel interval, in ticks |
long |
sc_recv_time
time packet was recieved by spacecraft, in ticks |
double |
scalt
spacecraft altitude |
static int |
SPECTRUM_LENGTH
number of bytes in gamma spectrum |
RCoords |
subsc_pos_mars
vector from planet center to nadir intersection |
int |
uld_cntr
|
Date |
utc
sc_ev_time in 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 | |
CorrectedGammaSpectraRecord(DataInputStream in)
Read CGS record from binary stream. |
|
CorrectedGammaSpectraRecord(ResultSet rs)
Create a CGS record from a database ResultSet. |
|
| Method Summary | |
static String[] |
createInsertString(String schema)
Create the SQL to insert CGS records into the PDS schema. |
static String[] |
createSelectString(String schema)
Create the SQL to fetch CGS records. |
long |
getSCLK()
The time of this 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 CGS 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 static final int SPECTRUM_LENGTH
public long sc_recv_time
public long sc_ev_time
public long ceb_time
public Date utc
public short pixel_duration
public int grs_pixel_number
public int grs_orbit_number
public int ody_orbit_number
public double latitude
public double longitude
public RCoords instrboresight_mars
public RCoords subsc_pos_mars
public double scalt
public double delta_angle
public double mars_sol
public short day_index
public byte local_hour
public byte local_min
public float is_temp_a
public float is_temp_b
public float os_temp_a
public float os_temp_b
public float b170k_temp
public float b170k_norm_temp
public float is_norm_temp
public float gpa_temp
public float gamma_vref_temp
public float is_tempco
public float b170k_tempco
public float hvbs_monitor
public short apps_gain_dhk
public int lld_cntr
public int uld_cntr
public int l1_cntr
public int l2_cntr
public int l3_cntr
public int pha_cntr
public long pha_timer
public short first_channel
public short last_channel
public short first_full_channel
public short last_full_channel
public float gain
public float offset
public float gain_correction
public float offset_correction
public double[] gpa_coefficients
public double[] inl_coefficients
public byte[] corrected_spectrum
public long bad_code
public byte pointing
public byte intersecting
| Constructor Detail |
public CorrectedGammaSpectraRecord(ResultSet rs)
throws SQLException
rs - ResultSet from query.
SQLException - Error reading from ResultSet.
public CorrectedGammaSpectraRecord(DataInputStream in)
throws IOException,
ParseException
in - Stream in CGS format.
IOException - Error reading from stream.
ParseException - Unparseable date (utc)| Method Detail |
public long getSCLK()
getSCLK in class TimeSeriesRecordpublic Date getUTC()
TimeSeriesRecord
getUTC in class TimeSeriesRecordpublic String[] toStringArray()
toStringArray in class BasePdsRecordpublic 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 -
SQLException
public void writeTo(DataOutputStream out)
throws IOException
writeTo in class BasePdsRecordout - Data stream to write to.
IOException - Error writing to stream.
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 | ||||||||||