public abstract class AncillaryCameraUnit extends GenericUnit
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_FITSDIR
Where acquisition-related data should be logged.
|
static String |
KEY_XTENSION
If not the first image HDU should be used for guiding.
|
private boolean |
manual
If true, we are in manual mode and do not generate status events.
|
KEY_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 |
AncillaryCameraUnit(Map<String,String> props) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
binningAndWindow(CcdDriver camera,
Rectangle readout,
Dimension bin)
Convenience method to set a read-out window and binning on a CCD.
|
private boolean |
binningAndWindowResetable(CcdDriver camera,
Rectangle readout,
Dimension bin,
boolean retry) |
abstract void |
configureUnit() |
protected MImageHDU |
getAcquisitionExtension(MFits mf)
For ancillary cameras that return ambiguous (i.e.
|
protected File |
getFitsDirectory()
For storing ancillary images, this method returns a valid directory.
|
protected MFits |
getOneExposure(CcdDriver camera,
double texp)
This method returns a single exposure of the ancillary camera as an MFits
object.
|
private MFits |
getOneExposureResetable(CcdDriver camera,
double texp,
boolean retry)
This method returns a single exposure of the ancillary camera as an MFits
object.
|
boolean |
isManual()
Returns the manual status, normally inherited from the adapter master.
|
protected float[] |
reducedFloat(MImageHDU raw,
float[] bias,
float[] scaledark,
float[] flat)
Convenience method to convert a (16-bit) image from the ancillary camera
into a bias/dark/flat-field reduced float image.
|
protected boolean |
save(File write,
ArrayLayout geom,
float[] reduced)
Convenience for saving 16-bit image hdu in fits files.
|
protected boolean |
save(File write,
MImageHDU reduced)
Convenience for saving image hdu in fits files.
|
void |
setManual(boolean nostatus)
Sets manual mode, in which case we should not send status event, but
rather use syslog.
|
defaultGuidingStar, getMaster, getUnitType, init, 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_XTENSION
public static final String KEY_FITSDIR
private boolean manual
public abstract void configureUnit()
throws ConfigurationException
ConfigurationExceptionpublic void setManual(boolean nostatus)
public boolean isManual()
protected File getFitsDirectory()
protected boolean save(File write, MImageHDU reduced)
protected boolean save(File write, ArrayLayout geom, float[] reduced)
BasicFitsExceptionprotected boolean binningAndWindow(CcdDriver camera, Rectangle readout, Dimension bin)
CcdDriver implements
Resettable.camera - readout - bin - private boolean binningAndWindowResetable(CcdDriver camera, Rectangle readout, Dimension bin, boolean retry) throws IOException
IOExceptionprotected MImageHDU getAcquisitionExtension(MFits mf) throws BasicFitsException
MImageHDU in the exposure. This method is a convenience method
that discards all extension except the one pointed to by
KEY_XTENSION, or, if this property is undefined, returns the
first image HDU.mf - BasicFitsExceptionprotected MFits getOneExposure(CcdDriver camera, double texp) throws IOException
camera - texp - retry - IOExceptionprivate MFits getOneExposureResetable(CcdDriver camera, double texp, boolean retry) throws IOException
camera - texp - retry - IOExceptionprotected float[] reducedFloat(MImageHDU raw, float[] bias, float[] scaledark, float[] flat) throws BasicFitsException
raw - The raw image data, not necessarily 16 bitbias - May be nullscaledark - A dark frame scaled to the exposure time or nullflat - May be nullBasicFitsException