public abstract class AcquisitionUnit extends AncillaryCameraUnit implements PersitentAcquiring
| Modifier and Type | Class and Description |
|---|---|
static class |
AcquisitionUnit.Modes
The supported modes of acquisition, full is coarse followed by fine.
|
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private int |
count
If we have also a running number.
|
static String |
KEY_KEEPFITS
All acquire fits plus some reduction products are kept on disc.
|
static String |
KEY_KEEPWHAT
What to keep.
|
private int |
tries
If we have a running try.
|
KEY_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 |
AcquisitionUnit(Map<String,String> props) |
| Modifier and Type | Method and Description |
|---|---|
private void |
fillAndSend(String type,
Object unique,
int attempt,
List<? extends Glint> catalog,
StarFieldOfView expect) |
String |
getAcquisitionResource()
From the type of unit plus the unique identifier and a possible count
we return a unique ID describing the currently process image.
|
protected Star |
getBinaryAcquisition(Star onto,
List<Star> fov,
double minsep,
double maxsep,
float faint)
For binary acquisitions, an increase of the nominal exposure time may be
indicated to make sure that there is no source confusion.
|
abstract List<StarProspect> |
getExpectedStars(double texp,
Rectangle readout,
Dimension bin,
boolean single)
From a readout frame plus binning on a detector, return a list of star
one expects to see on the CCD.
|
protected List<StarProspect> |
getExpectedStars(List<Star> fov,
double ms0,
Rectangle readout,
Dimension bin,
int frame,
boolean single,
Vector2D rade,
Point2D hotpix,
RayPath geometry,
ExposureTimeProviding etc) |
protected MImageHDU |
getOneExtension(CcdDriver camera,
double texp)
Returns the raw image-hdu from the CCD that should be used for auto
guiding.
|
protected MImageHDU |
getRaw(MFits mf)
Returns the raw image-hdu from the CCD that should be used for auto
guiding.
|
boolean |
persitent(FitsReduction.Write type,
ArrayLayout header,
float[] data) |
private File |
primarySaveFits() |
protected MImageHDU |
reduce16(MImageHDU raw,
double texp,
ImageReducing ir)
Returns a 16-bit MImageHDU from a raw, 16-bit image.
|
protected void |
sendFieldOfView(String type,
List<StarProspect> catalog,
List<StarDetection> found,
List<StarDetection> spurious,
List<StarDetection> stripes,
List<StarDetection> mirrors,
List<StarDetection> ghosts)
Sends information regarding expected and detected star fields to
listeners.
|
protected void |
sendShifts(Vector2D shift,
Vector2D degoff) |
protected void |
sendTelescopeOffset(double daz,
double del,
boolean dowait)
The offsets provided are already prepared for a direct sending to TCS.
|
protected abstract void |
setAcquisitionAndGuiding(AcquisitionAndGuiding ag) |
void |
setCount(int count)
If we repeatedly reduce fits files that all belong to a logical single ID
(which has been set by
#setUnique(String)), a running count
may be the best way to distinguish the different processing loops. |
void |
setTry(int tries)
If we repeatedly reduce fits file, because unsuccessful tries lead to a
re-do, calling this method may help keeping all (even failed) tries.
|
binningAndWindow, configureUnit, getAcquisitionExtension, getFitsDirectory, getOneExposure, isManual, reducedFloat, save, save, setManualdefaultGuidingStar, 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_KEEPFITS
public static final String KEY_KEEPWHAT
private int count
private int tries
protected abstract void setAcquisitionAndGuiding(AcquisitionAndGuiding ag) throws ConfigurationException
ConfigurationExceptionpublic abstract List<StarProspect> getExpectedStars(double texp, Rectangle readout, Dimension bin, boolean single) throws ConfigurationException
texp - Exposure time in seconds.readout - bin - single - ConfigurationExceptionprotected List<StarProspect> getExpectedStars(List<Star> fov, double ms0, Rectangle readout, Dimension bin, int frame, boolean single, Vector2D rade, Point2D hotpix, RayPath geometry, ExposureTimeProviding etc)
protected void sendTelescopeOffset(double daz,
double del,
boolean dowait)
throws PositioningException
daz - del - dowait - ConfigurationExceptionPositioningExceptionprotected MImageHDU getOneExtension(CcdDriver camera, double texp) throws BasicFitsException, IOException
BasicFitsExceptionIOExceptionprotected MImageHDU getRaw(MFits mf) throws BasicFitsException
BasicFitsExceptionpublic void setCount(int count)
#setUnique(String)), a running count
may be the best way to distinguish the different processing loops. In
particular, auto-guiders will use this method.setCount in interface PersitentAcquiringcount - the count to setpublic void setTry(int tries)
setTry in interface PersitentAcquiringtries - the tries to setpublic String getAcquisitionResource()
PersitentAcquiringgetAcquisitionResource in interface PersitentAcquiringpublic boolean persitent(FitsReduction.Write type, ArrayLayout header, float[] data)
persitent in interface PersitentAcquiringprivate File primarySaveFits()
protected Star getBinaryAcquisition(Star onto, List<Star> fov, double minsep, double maxsep, float faint)
onto - Our main acquisition starfov - The field-of-view around the acquisition star, ordered for mag.minsep - Minimum degree separation to be visible as binarymaxsep - Maximum degree separation to trigger binary acquisitionfaint - If binary star is fainter than main, ignoreprotected void sendFieldOfView(String type, List<StarProspect> catalog, List<StarDetection> found, List<StarDetection> spurious, List<StarDetection> stripes, List<StarDetection> mirrors, List<StarDetection> ghosts)
catalog - found - spurious - stripes - mirrors - ghosts - private void fillAndSend(String type, Object unique, int attempt, List<? extends Glint> catalog, StarFieldOfView expect)
type - unique - attempt - catalog - expect - protected MImageHDU reduce16(MImageHDU raw, double texp, ImageReducing ir) throws BasicFitsException
raw - texp - ir - BasicFitsException