public class Trim_Values
extends java.lang.Object
For example, BG13, RED5, and IR11 are in the same exposure column. A feature that appears in RED5's field of view will appear in that of BG13 and IR11 as well. They are, however, offset from each other in the along-track direction, with BG13 being the definition of the origin of the along-track axis. BG13 is offset at 0 lines. RED5 is offset 1214 lines. IR11 is offset 2396 lines. When HiRISE begins an exposure that uses all three CCDs, each CCD starts exposing at the same time. Because of the along-track offset, however, IR11 will expose 2396 lines of image that BG13 cannot expose.
These excess lines are thrown away by the HiRISE flight software; they are "trimmed" from the image data. This class contains a set of static methods that access the HiRISE trim values.
Note: There's some confusion about the nature of trim. It is sometimes referred to as "commanded trim lines," particularly in the canonical "HiRISE Observation Timeline for a CCD" diagram. There is no trim command for HiRISE. The trim values are stored as patchable constants, so they can theoretically be changed, but there is no reason to do so: The trim values represent a constant physical property of the instrument - the along-track offset of each of the CCDs. The offset cannot be changed, so the trim values should never be changed.
Trim Lines:
RED0 1789 RED1 1214 RED2 1836 RED3 1214 RED4 1797 RED5 1214 RED6 1812 RED7 1214 RED8 1789 RED9 1182 IR10 3003 IR11 2396 BG12 607 BG13 0
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
Class identification name with source code version and date.
|
static int[] |
TRIM_BY_CPMM
The trim values ordered by CPMM number.
|
Modifier and Type | Method and Description |
---|---|
static int |
getBG12Trim()
Gets the trim for BG12.
|
static int |
getBG13Trim()
Gets the trim for BG13.
|
static int |
getIR10Trim()
Gets the trim for IR10.
|
static int |
getIR11Trim()
Gets the trim for IR11.
|
static int |
getRED0Trim()
Gets the trim for RED0.
|
static int |
getRED1Trim()
Gets the trim for RED1.
|
static int |
getRED2Trim()
Gets the trim for RED2.
|
static int |
getRED3Trim()
Gets the trim for RED3.
|
static int |
getRED4Trim()
Gets the trim for RED4.
|
static int |
getRED5Trim()
Gets the trim for RED5.
|
static int |
getRED6Trim()
Gets the trim for RED6.
|
static int |
getRED7Trim()
Gets the trim for RED7.
|
static int |
getRED8Trim()
Gets the trim for RED8.
|
static int |
getRED9Trim()
Gets the trim for RED9.
|
static int |
getTrim(int cpmm)
Gets the trim value for the indicated CPMM.
|
static int |
getTrim(java.lang.String ccd)
Gets the trim value for the indicated CCD.
|
static void |
main(java.lang.String[] args)
Prints the HiRISE trim values to the standard output and exits.
|
public static final java.lang.String ID
public static final int[] TRIM_BY_CPMM
Utilities.getCcdNameIndex(String)
to map the CCD name to the CPMM number.public static int getTrim(java.lang.String ccd)
If ccd is not a valid CCD name, this method returns a -1.
ccd
- the name of the CCD in question.public static int getTrim(int cpmm)
If the CPMM number is not valid, a -1 is returned instead. There
are 14
CPMMs; the CPMM number must be between 0 and
13, inclusive.
cpmm
- the CPMM number in question.public static int getRED0Trim()
public static int getRED1Trim()
public static int getRED2Trim()
public static int getRED3Trim()
public static int getRED4Trim()
public static int getRED5Trim()
public static int getRED6Trim()
public static int getRED7Trim()
public static int getRED8Trim()
public static int getRED9Trim()
public static int getIR10Trim()
public static int getIR11Trim()
public static int getBG12Trim()
public static int getBG13Trim()
public static void main(java.lang.String[] args)
args
- unused.Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona