stella.adapter
Class QuadrantShift
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.adapter.AbstractPinholeShift
stella.adapter.QuadrantShift
- All Implemented Interfaces:
- Cloneable, PinholeShift, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying
public class QuadrantShift
- extends AbstractPinholeShift
Class that determines the pixel shift between pinhole and star by splitting
the active frame without the outer border into four quadrants, then
calculating the shift for each quadrant.
|
Method Summary |
Vector2D |
getBackground(nom.tam.fits.ImageHDU hdu)
This method calculates the background as the median of a frame at the
outer edge of the apllicable window. |
Point2D |
initFiberView(nom.tam.fits.Fits ccd)
Returns the center of gravity shift of the image from the pinhole
position. |
| Methods inherited from class stella.adapter.AbstractPinholeShift |
backgroundFrameMean, backgroundFrameMedian, backgroundMean, backgroundMedian, getAduSignal, getApplicableWindow, getFlux, getFwhm, getPinholePosition, getSignalToNoise, init |
| Methods inherited from class util.PropertyResources |
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString |
| Methods inherited from interface util.PropertySupplying |
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
KEY_CENTERWEIGHT
public static final String KEY_CENTERWEIGHT
- If 1, use center of grav. on quadrant, if zero quadrant unit vectors.
- See Also:
- Constant Field Values
DEFCENTERWEIGHT
private static final double DEFCENTERWEIGHT
- Use the unit vectors, not individual quadrant shifts.
- See Also:
- Constant Field Values
QuadrantShift
public QuadrantShift(Map<String,String> prop)
- Constructs a new CenterOfGravityShift object.
getBackground
public Vector2D getBackground(nom.tam.fits.ImageHDU hdu)
- This method calculates the background as the median of a frame at the
outer edge of the apllicable window.
- Returns:
- The background ADU in x and its ADU-sigma in y.
initFiberView
public Point2D initFiberView(nom.tam.fits.Fits ccd)
- Returns the center of gravity shift of the image from the pinhole
position. The true center of gravity is scaled with two functions
to return true shifts.
- Parameters:
ccd - The image of the pinhole entrance
- Returns:
- The pixel shift from the pinhole center to the star.