public class CCD_Record extends java.lang.Object implements CCD_Fields, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static int |
BUFFER_PIXELS
The number of buffer pixels for each line of each channel.
|
static int |
CHANNEL_HEADER_BYTES
The total header size for each channel.
|
static int |
ENGINEERING_HEADER_BYTES
The size of the engineering header in bytes.
|
static java.lang.String |
ID
Class identification name with source code version and date.
|
static int |
LINE_HEADER_BYTES
The size of the line header in bytes.
|
static int |
LUT_HEADER_BYTES
The size of the lookup table header in bytes.
|
static int |
MASK_PIXELS
The number of mask pixels for each line of each channel.
|
static int |
SCIENCE_CHANNEL_HEADER_BYTES
The size of the science channel header in bytes.
|
BINNING, CCD_NAME, CPMM_RAW_DATA_VOLUME_BYTES, IMAGE_LINES, IMAGE_MEAN, LOOKUP_TABLE_K_VALUE, LOOKUP_TABLE_MAXIMUM, LOOKUP_TABLE_MEDIAN, LOOKUP_TABLE_MINIMUM, LOOKUP_TABLE_NUMBER, LOOKUP_TABLE_TYPE, LUT_TYPE_LINEAR, LUT_TYPE_NONE, LUT_TYPE_SQUARE_ROOT, LUT_TYPE_STORED, PLANNED_CCD_PARAMETERS_TABLE, PLANNED_OBSERVATIONS_ID, PLANNED_SNR, TDI, TRIM_LINES
Constructor and Description |
---|
CCD_Record() |
CCD_Record(java.util.Vector ccdParameters)
Creates a new CCD record from a set of CCD parameters.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Returns a clone of this set of CCD parameters
|
java.lang.Integer |
getBinning() |
java.lang.String |
getCcdName() |
static java.util.List<java.lang.String> |
getCcdParameterFields() |
static int |
getDataVolumeBytes(int imageLines,
int tdi,
int bin,
boolean isLutted)
Computes the data volume in bytes for a HiRISE CCD.
|
java.lang.Integer |
getImageLines() |
java.lang.Double |
getImageMean() |
java.util.Date |
getLastUpdate() |
static int |
getLineDataVolumeBytes(int bin,
boolean isLutted)
Computes the data volume in bytes for a single line of HiRISE data for a
single channel.
|
java.lang.Integer |
getLookupTableKValue() |
java.lang.Integer |
getLookupTableMaximum() |
java.lang.Integer |
getLookupTableMedian() |
java.lang.Integer |
getLookupTableMinimum() |
java.lang.Integer |
getLookupTableNumber() |
java.lang.String |
getLookupTableType() |
java.lang.Integer |
getPlannedObservationsId() |
java.lang.Double |
getPlannedSnr() |
java.lang.Integer |
getRawDataVolumeBytes() |
java.lang.Integer |
getTdi() |
java.lang.Integer |
getTrimLines() |
void |
setBinning(java.lang.Integer binning) |
void |
setCcdName(java.lang.String ccdName) |
void |
setImageLines(java.lang.Integer imageLines) |
void |
setImageMean(java.lang.Double imageMean) |
void |
setLastUpdate(java.util.Date lastUpdate) |
void |
setLookupTableKValue(java.lang.Integer lookupTableKValue) |
void |
setLookupTableMaximum(java.lang.Integer lookupTableMaximum) |
void |
setLookupTableMedian(java.lang.Integer lookupTableMedian) |
void |
setLookupTableMinimum(java.lang.Integer lookupTableMinimum) |
void |
setLookupTableNumber(java.lang.Integer lookupTableNumber) |
void |
setLookupTableType(java.lang.String lookupTableType) |
void |
setPlannedObservationsId(java.lang.Integer plannedObservationsId) |
void |
setPlannedSnr(java.lang.Double plannedSnr) |
void |
setTdi(java.lang.Integer tdi) |
void |
setTrimLines(java.lang.Integer trimLines) |
java.util.Vector<java.lang.String> |
toVector() |
public static final java.lang.String ID
public static final int SCIENCE_CHANNEL_HEADER_BYTES
The channel's header consists of the science channel header, the engineering header, and the lookup table. A lookup table is present even if the CCD is not LUT-compressed. The total header data volume H for each channel is
H = SCH + ENG + LUT
where SCH is the science channel header size, ENG is the engineering header size, and LUT is the LUT size.
public static final int ENGINEERING_HEADER_BYTES
The channel's header consists of the science channel header, the engineering header, and the lookup table. A lookup table is present even if the CCD is not LUT-compressed. The total header data volume H for each channel is
H = SCH + ENG + LUT
where SCH is the science channel header size, ENG is the engineering header size, and LUT is the LUT size.
public static final int LUT_HEADER_BYTES
The channel's header consists of the science channel header, the engineering header, and the lookup table. A lookup table is present even if the CCD is not LUT-compressed. The total header data volume H for each channel is
H = SCH + ENG + LUT
where SCH is the science channel header size, ENG is the engineering header size, and LUT is the LUT size.
public static final int CHANNEL_HEADER_BYTES
The channel's header consists of the science channel header, the engineering header, and the lookup table. A lookup table is present even if the CCD is not LUT-compressed. The total header data volume H for each channel is
H = SCH + ENG + LUT
where SCH is the science channel header size, ENG is the engineering header size, and LUT is the LUT size.
public static final int LINE_HEADER_BYTES
Each line produces the following data volume L in bytes:
L = LH + (B + M + P) × S
where LH is the line header, B is the number of buffer pixels, M is the number of mask pixels, P is the number of binned image pixels, and S is the number of bytes per pixel (the pixel size). P, the number of binned pixels, is
P = 1024/b
where b is the binning factor. If 3×3 binning is used, however, P = 342 pixels. Note that bin 3 is generally to be avoided in operations.
BUFFER_PIXELS
,
MASK_PIXELS
,
Constant Field Valuespublic static final int BUFFER_PIXELS
Each line produces the following data volume L in bytes:
L = LH + (B + M + P) × S
where LH is the line header, B is the number of buffer pixels, M is the number of mask pixels, P is the number of binned image pixels, and S is the number of bytes per pixel (the pixel size). P, the number of binned pixels, is
P = 1024/b
where b is the binning factor. If 3×3 binning is used, however, P = 342 pixels. Note that bin 3 is generally to be avoided in operations.
LINE_HEADER_BYTES
,
MASK_PIXELS
,
Constant Field Valuespublic static final int MASK_PIXELS
Each line produces the following data volume L in bytes:
L = LH + (B + M + P) × S
where LH is the line header, B is the number of buffer pixels, M is the number of mask pixels, P is the number of binned image pixels, and S is the number of bytes per pixel (the pixel size). P, the number of binned pixels, is
P = 1024/b
where b is the binning factor. If 3×3 binning is used, however, P = 342 pixels. Note that bin 3 is generally to be avoided in operations.
LINE_HEADER_BYTES
,
BUFFER_PIXELS
,
Constant Field Valuespublic CCD_Record(java.util.Vector ccdParameters)
public CCD_Record()
public java.lang.Integer getPlannedObservationsId()
public void setPlannedObservationsId(java.lang.Integer plannedObservationsId)
public java.lang.String getCcdName()
public void setCcdName(java.lang.String ccdName)
public java.lang.Integer getBinning()
public void setBinning(java.lang.Integer binning)
public java.lang.Integer getTdi()
public void setTdi(java.lang.Integer tdi)
public java.lang.Integer getImageLines()
public void setImageLines(java.lang.Integer imageLines)
public java.lang.Integer getTrimLines()
public void setTrimLines(java.lang.Integer trimLines)
public java.lang.String getLookupTableType()
public void setLookupTableType(java.lang.String lookupTableType)
public java.lang.Integer getLookupTableMinimum()
public void setLookupTableMinimum(java.lang.Integer lookupTableMinimum)
public java.lang.Integer getLookupTableMaximum()
public void setLookupTableMaximum(java.lang.Integer lookupTableMaximum)
public java.lang.Integer getLookupTableMedian()
public void setLookupTableMedian(java.lang.Integer lookupTableMedian)
public java.lang.Integer getLookupTableKValue()
public void setLookupTableKValue(java.lang.Integer lookupTableKValue)
public java.lang.Integer getLookupTableNumber()
public void setLookupTableNumber(java.lang.Integer lookupTableNumber)
public java.lang.Double getImageMean()
public void setImageMean(java.lang.Double imageMean)
public java.lang.Double getPlannedSnr()
public void setPlannedSnr(java.lang.Double plannedSnr)
public java.util.Date getLastUpdate()
public void setLastUpdate(java.util.Date lastUpdate)
public java.lang.Integer getRawDataVolumeBytes()
public java.lang.Object clone()
clone
in class java.lang.Object
public java.util.Vector<java.lang.String> toVector()
public static int getDataVolumeBytes(int imageLines, int tdi, int bin, boolean isLutted)
Warning The values for lines, tdi, and bin are not checked; if they are not valid, this method will not return a valid result.
imageLines
- the number of post-binning image lines, not
including calibration lines.tdi
- the number of time delay integration stages.bin
- the binning factor.isLutted
- true if the data are LUT-compressed,
false otherwise.Instrument.calibration_lines_minimum(int, int)
public static int getLineDataVolumeBytes(int bin, boolean isLutted)
Warning The value for bin is not checked; if it is not a valid HiRISE binning factor, this method will not return a valid result.
bin
- the binning factor.isLutted
- true if the data are LUT-compressed,
false otherwise.public static java.util.List<java.lang.String> getCcdParameterFields()
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona