public abstract class FixedFrameAcquisition extends AcquisitionUnit implements ImageReducing
AcquisitionUnit.ModesPropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private static double |
DEFDARKTIME
Default dark time is dark is current frame, so 1000ms.
|
private static boolean |
DEFKEEPFITS
If true, all acquire fits are kept on disc.
|
private static int |
DEFKEEPWHAT
An integer specifying which acquire fits to keep.
|
private ArrayLayout |
frame
Layout of bias/dark/flat frame.
|
static String |
KEY_ACQUIRESIZE
The readout-size during acquisition.
|
static String |
KEY_BIASFITS
Path to the bias fits file.
|
static String |
KEY_BINARYMAG
A companion may be fainter by this mag to still trigger proximity.
|
static String |
KEY_BINARYSEPARATE
A companion must be closer (degs) to trigger proximity.
|
static String |
KEY_DARKFITS
Path to the bias fits file.
|
static String |
KEY_DARKTIME
Integration time of the dark frame.
|
static String |
KEY_FLATFITS
Path to the bias fits file.
|
static String |
KEY_RESOLUTIONLIMIT
A companion closer (degs) cannot be resolved.
|
private float[] |
mbias
If a bias frame was assigned to this object, we read it on init.
|
private float[] |
mdark
If a dark frame was assigned to this object, we read it on init.
|
private float[] |
mflat
If a flat frame was assigned to this object, we read it on init.
|
KEY_KEEPFITS, KEY_KEEPWHATKEY_FITSDIR, KEY_XTENSIONKEY_UNITTYPEKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOMECONFIG, KEY_CLASS| Modifier | Constructor and Description |
|---|---|
protected |
FixedFrameAcquisition(Map<String,String> props) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkShift(Vector2D shift,
double maxpixel) |
float[] |
getBias(MImageHDU raw)
Returns a bias frame as a one-dimensional float.
|
float[] |
getDark(MImageHDU raw,
double exptime)
Returns a dark frame as a one-dimensional float.
|
float[] |
getFlat(MImageHDU raw,
String filter)
Returns a flat frame for the specified filter name as a one-dimensional
float.
|
protected Rectangle |
getReadoutWindow(RayPath geometry,
Point2D pinhole,
Vector2D rade,
Star onto)
If we have an acquire size, we return a read-out window centered around
the expected pixel position of the acquisition star.
|
void |
init() |
private MImageHDU |
readCalibrationFits(String resource) |
getAcquisitionResource, getBinaryAcquisition, getExpectedStars, getExpectedStars, getOneExtension, getRaw, persitent, reduce16, sendFieldOfView, sendShifts, sendTelescopeOffset, setAcquisitionAndGuiding, setCount, setTrybinningAndWindow, configureUnit, getAcquisitionExtension, getFitsDirectory, getOneExposure, isManual, reducedFloat, save, save, setManualdefaultGuidingStar, getMaster, getUnitType, isValid, isValid, registerGlobals, setMasterclone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, 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, parseObject, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdefaultBoolean, 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, stringPropertiespublic static final String KEY_BINARYMAG
public static final String KEY_RESOLUTIONLIMIT
public static final String KEY_BINARYSEPARATE
public static final String KEY_ACQUIRESIZE
public static final String KEY_BIASFITS
public static final String KEY_DARKFITS
public static final String KEY_DARKTIME
public static final String KEY_FLATFITS
private static final boolean DEFKEEPFITS
private static final int DEFKEEPWHAT
private static final double DEFDARKTIME
private float[] mbias
private float[] mdark
private float[] mflat
private ArrayLayout frame
public void init()
init in interface Initializableinit in class GenericUnitprotected Rectangle getReadoutWindow(RayPath geometry, Point2D pinhole, Vector2D rade, Star onto)
geometry - pinhole - rade - onto - protected boolean checkShift(Vector2D shift, double maxpixel)
public float[] getBias(MImageHDU raw) throws BasicFitsException
ImageReducinggetBias in interface ImageReducingraw - The raw image to check geometry.BasicFitsExceptionpublic float[] getDark(MImageHDU raw, double exptime) throws BasicFitsException
ImageReducinggetDark in interface ImageReducingraw - The raw image to check geometry.exptime - The exposure time of the raw image in secondsBasicFitsExceptionpublic float[] getFlat(MImageHDU raw, String filter) throws BasicFitsException
ImageReducinggetFlat in interface ImageReducingraw - The raw image to check geometry.filter - Name of filter or null if only white light or singled-filter
system.BasicFitsException