public class PrimeFocusCamera extends AcquiringUnit
| Modifier and Type | Class and Description |
|---|---|
static class |
PrimeFocusCamera.Vanish
Checks pinhole vanish.
|
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private Value |
azimuth
If we want to make our own pointing model.
|
private int |
curcoarse
Counts current coarse acquire try.
|
private int |
curfine
Counts current fine acquire try.
|
private static Dimension |
DEFACQUIREBINNING
The default binning on acquire.
|
static String |
DEFAZIMUTHNAME
Default name of the azimuth parameter.
|
private static File |
DEFBIASCOARSEFITS
The default fits file holding guider bias image data.
|
private static long |
DEFBIASCOARSETIME
The default exposure time in milli seconds of the bias frame.
|
private static File |
DEFBIASFINEFITS
The default fits file holding guider bias image data.
|
private static double |
DEFBIASFINETIME
The default exposure time in milli seconds of the bias frame.
|
private static double |
DEFBINARYMAG
A companion may be fainter by this mag to still trigger proximity.
|
private static double |
DEFBINARYSEPARATE
A companion must be closer (degs) to trigger proximity.
|
private static double |
DEFBINARYTIME
Time factorial increase in proximity.
|
private static Rectangle |
DEFCOARSEFRAME
The default acquire frame.
|
private static double |
DEFCOARSEOFFSET
An estimate of the allowed matching failures.
|
private static File |
DEFDARKCOARSEFITS
The default fits file holding guider bias image data.
|
private static long |
DEFDARKCOARSETIME
The default exposure time in milli seconds of the bias frame.
|
private static File |
DEFDARKFINEFITS
The default fits file holding guider bias image data.
|
private static double |
DEFDARKFINETIME
The default exposure time in milli seconds of the bias frame.
|
private static int |
DEFDATAMAXACQUIRE
The default data max for 'good' filtered pixels.
|
private static int |
DEFDATAMINACQUIRE
The default data min for 'good' filtered pixels.
|
private static Dimension |
DEFENLARGECOARSE
The default pixel enlargement during coarse acquire.
|
private static Dimension |
DEFENLARGEFINE
The default pixel enlargement during acquire.
|
private static double |
DEFEXPOSEACQUIRE
The default S/N on acquire.
|
private static Rectangle |
DEFFINEFRAME
The default acquire frame.
|
private static double |
DEFGUIDERNOISE |
private static boolean |
DEFKEEPACQUIREFITS
If true, all acquire fits are kept on disc.
|
private static boolean |
DEFKEEPACQUIREINFO
If true, all acquire fits are kept on disc.
|
private static int |
DEFKEEPACQUIREWHAT
An integer specifying which acquire fits to keep.
|
private static double |
DEFMAGERROR
An estimate of the mgnitude error.
|
private static double |
DEFMAXSHIFTACQUIRE
The default maximum shift for a successful acquire, pixel.
|
private static long |
DEFMINTIMEACQUIRE
Minimum exposure time on acquire in ms.
|
private static double |
DEFPINHOLEFINE
Default no pinhole acquire, so no exposure increase.
|
private static int |
DEFPINHOLEFRAME
Default no pinhole acquire, so no exposure increase.
|
private static int |
DEFPINHOLESIZE
Default no pinhole acquire, so no exposure increase.
|
private static double |
DEFPOSITIONERROR
An estimate of the catalog errors in pixels on ccd.
|
private static int |
DEFRETRYCOARSE
The default number of retries on acquire.
|
private static int |
DEFRETRYFINE
The default number of retries on acquire.
|
private static long |
DEFROWTIMING
Read out time for a single row, acquire frame.
|
private static int |
DEFSEARCHBOXACQUIRE
The default search box, unbiased.
|
private static long |
DEFSUGGESTWAIT |
private static double |
DEFTIMEINCREASE
The default time increase if no stars have been found.
|
private static boolean |
DEFUSEAUXILIARYSUGGEST |
private static double |
DEFVANISHSIGMA |
private static double |
DEFVANISHSIGNAL |
private double |
increase
If the acquire exposure time was increased, this is the final factor.
|
static String |
KEY_ACQUIREBINNING
The binning used during acquire.
|
static String |
KEY_AZIMUTHNAME
The height of the target for calculating CCD rotation.
|
static String |
KEY_BIASCOARSEFITS
Headerless name of the bias fits file, if we have any.
|
static String |
KEY_BIASCOARSETIME
Integration time on the bias fits.
|
static String |
KEY_BIASFINEFITS
Headerless name of the bias fits file, if we have any.
|
static String |
KEY_BIASFINETIME
Integration time on the bias fits.
|
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_BINARYTIME
Time factorial increase in proximity.
|
static String |
KEY_COARSEFRAME
The window on the guider ccd used on acquire, unbinned.
|
static String |
KEY_COARSEOFFSET
The expected maximum distance of target to pinhole after coarse.
|
static String |
KEY_DARKCOARSEFITS
Headerless name of the dark fits file, if we have any.
|
static String |
KEY_DARKCOARSETIME
Time of the dark fits file, if we have any.
|
static String |
KEY_DARKFINEFITS
Headerless name of the dark fits file, if we have any.
|
static String |
KEY_DARKFINETIME
Time of the dark fits file, if we have any.
|
static String |
KEY_DATAMAXACQUIRE
A default data maximum value for star detection.
|
static String |
KEY_DATAMINACQUIRE
A default data minimum value for star detection.
|
static String |
KEY_ENLARGECOARSE
A gray-zone around the acquire field for catalog star inclusion.
|
static String |
KEY_ENLARGEFINE
A gray-zone around the acquire field for catalog star inclusion.
|
static String |
KEY_EXPOSEACQUIRE
Signal to noise wanted on acquire.
|
static String |
KEY_FINEFRAME
The window on the guider ccd used on acquire, unbinned.
|
static String |
KEY_GUIDERNOISE
Maximum expexted background noise, otherwise star.
|
static String |
KEY_KEEPACQUIREFITS
If true, all acquire fits are kept on disc.
|
static String |
KEY_KEEPACQUIREINFO
If true, all acquire fits are kept on disc.
|
static String |
KEY_KEEPACQUIREWHAT
An integer specifying which acquire fits to keep.
|
static String |
KEY_MAGERROR
An estimate of the magnitude errors.
|
static String |
KEY_MAXSHIFTACQUIRE
Maximum allowed shift during acquire.
|
static String |
KEY_MINTIMEACQUIRE
Minimum exposure time on acquire in ms.
|
static String |
KEY_PINHOLEFINE
If we acquire on a pinhole, the fine acquire should increase exp.
|
static String |
KEY_PINHOLEFRAME
For checks if star is already in pinhole.
|
static String |
KEY_PINHOLESIZE
For checks if star is already in pinhole.
|
static String |
KEY_POSITIONERROR
An estimate of the catalog errors in pixels on ccd.
|
static String |
KEY_RETRYCOARSE
Maximum retries on coarse acquire.
|
static String |
KEY_RETRYFINE
Maximum retries on fine acquire.
|
static String |
KEY_ROWTIMING
Row read-out time for bright strip detection.
|
static String |
KEY_SEARCHBOXACQUIRE
A search box for star detection, unbinned.
|
static String |
KEY_SUGGESTWAIT |
static String |
KEY_TIMEINCREASE
Increase the exposure time on coarse acquire fails.
|
static String |
KEY_USEAUXILIARYSUGGEST |
static String |
KEY_VANISHSIGMA
Sigma around pinhole for vanishing.
|
static String |
KEY_VANISHSIGNAL
Signal/N around pinhole for vanishing.
|
static String |
PFCOARSETYPE
Id for prime focus coarse.
|
static String |
PFFINETYPE
Id for prime focus coarse.
|
private Guiding.RawFrame |
raw
Helper application.
|
private Point2D |
shift
The pixel shift recorded.
|
COARSE, COARSEFINE, FINE, KEY_ALTCHECK, KEY_AZCHECK, KEY_OFFSETDB, KEY_OFFSETKEEP, NONEACQUIRETYPE, GUIDERTYPE, PYRAMIDTYPEKEY_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| Constructor and Description |
|---|
PrimeFocusCamera(Map<String,String> prop)
Constructs a new acquire unit.
|
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
checkForStarInPinhole(MImageHDU hdu,
Rectangle readout,
Dimension bin,
Point2D pinhole,
int box,
int frame,
double readnoise,
double sigfac,
double sn)
We check if a star is already vanishing in the pinhole.
|
private ErrorEvent |
coarseAcquire(long acquireraw,
Dimension bin,
int datamin,
int datamax,
int search,
double poserr,
double magerr)
Do a coarse acquire with the specified calculated exposure time.
|
protected ErrorEvent |
doUnitTask(String mode)
Brings the acquire star at the cross-hair of the guider.
|
private ErrorEvent |
fineAcquire(long acquireraw,
Dimension bin,
int datamin,
int datamax,
int search,
double poserr,
double magerr)
Do a fine acquire with the specified calculated exposure time.
|
protected double |
getIncrease()
If acquire failed because of no-star detected, retrrieve this last
increase factor.
|
protected String |
getUnitType()
The type of this unit is
AdapterUnit.ACQUIRETYPE. |
protected void |
resetUnit()
This method is called by the AdapterMaster after find adapter.
|
protected void |
setMaster(AdapterMaster chef)
Sets the adapter master.
|
checkAcquire, databaseOffset, firstOffset, getOffsetParameter, setOffsetParametergetGuider, getMaster, getTelescope, init, isManual, isValid, setGuider, setManual, setTelescopeclone, 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 PFCOARSETYPE
public static final String PFFINETYPE
public static final String KEY_KEEPACQUIREFITS
public static final String KEY_KEEPACQUIREINFO
public static final String KEY_KEEPACQUIREWHAT
public static final String KEY_ACQUIREBINNING
public static final String KEY_EXPOSEACQUIRE
public static final String KEY_ROWTIMING
public static final String KEY_MINTIMEACQUIRE
public static final String KEY_DATAMINACQUIRE
public static final String KEY_DATAMAXACQUIRE
public static final String KEY_SEARCHBOXACQUIRE
public static final String KEY_POSITIONERROR
public static final String KEY_MAGERROR
public static final String KEY_TIMEINCREASE
public static final String KEY_COARSEOFFSET
public static final String KEY_RETRYCOARSE
public static final String KEY_COARSEFRAME
public static final String KEY_ENLARGECOARSE
public static final String KEY_BIASCOARSEFITS
public static final String KEY_BIASCOARSETIME
public static final String KEY_DARKCOARSEFITS
public static final String KEY_DARKCOARSETIME
public static final String KEY_RETRYFINE
public static final String KEY_FINEFRAME
public static final String KEY_ENLARGEFINE
public static final String KEY_BIASFINEFITS
public static final String KEY_BIASFINETIME
public static final String KEY_DARKFINEFITS
public static final String KEY_DARKFINETIME
public static final String KEY_MAXSHIFTACQUIRE
public static final String KEY_BINARYMAG
public static final String KEY_BINARYSEPARATE
public static final String KEY_BINARYTIME
public static final String KEY_AZIMUTHNAME
public static final String KEY_PINHOLEFINE
public static final String KEY_PINHOLESIZE
public static final String KEY_PINHOLEFRAME
public static final String KEY_GUIDERNOISE
public static final String KEY_VANISHSIGMA
public static final String KEY_VANISHSIGNAL
public static final String KEY_USEAUXILIARYSUGGEST
public static final String KEY_SUGGESTWAIT
private static final boolean DEFKEEPACQUIREINFO
private static final boolean DEFKEEPACQUIREFITS
private static final int DEFKEEPACQUIREWHAT
private static final Dimension DEFACQUIREBINNING
private static final long DEFROWTIMING
private static final double DEFEXPOSEACQUIRE
private static final long DEFMINTIMEACQUIRE
private static final int DEFDATAMINACQUIRE
private static final int DEFDATAMAXACQUIRE
private static final int DEFSEARCHBOXACQUIRE
private static final double DEFPOSITIONERROR
private static final double DEFMAGERROR
private static final double DEFTIMEINCREASE
private static final int DEFRETRYCOARSE
private static final Rectangle DEFCOARSEFRAME
private static final Dimension DEFENLARGECOARSE
private static final File DEFBIASCOARSEFITS
private static final long DEFBIASCOARSETIME
private static final File DEFDARKCOARSEFITS
private static final long DEFDARKCOARSETIME
private static final double DEFCOARSEOFFSET
private static final int DEFRETRYFINE
private static final Rectangle DEFFINEFRAME
private static final Dimension DEFENLARGEFINE
private static final File DEFBIASFINEFITS
private static final double DEFBIASFINETIME
private static final File DEFDARKFINEFITS
private static final double DEFDARKFINETIME
private static final double DEFMAXSHIFTACQUIRE
private static final double DEFBINARYMAG
private static final double DEFBINARYSEPARATE
private static final double DEFBINARYTIME
public static final String DEFAZIMUTHNAME
private static final double DEFPINHOLEFINE
private static final int DEFPINHOLESIZE
private static final int DEFPINHOLEFRAME
private static final double DEFGUIDERNOISE
private static final double DEFVANISHSIGMA
private static final double DEFVANISHSIGNAL
private static final boolean DEFUSEAUXILIARYSUGGEST
private static final long DEFSUGGESTWAIT
private double increase
private int curcoarse
private int curfine
private Guiding.RawFrame raw
private Value azimuth
private Point2D shift
protected void resetUnit()
resetUnit in class AdapterUnitprotected void setMaster(AdapterMaster chef)
setMaster in class AdapterUnitprotected String getUnitType()
AdapterUnit.ACQUIRETYPE.getUnitType in class AdapterUnitprotected ErrorEvent doUnitTask(String mode)
doUnitTask in class AdapterUnitmode - If the unit supports more than a single mode, otherwise nullprivate ErrorEvent coarseAcquire(long acquireraw, Dimension bin, int datamin, int datamax, int search, double poserr, double magerr)
private ErrorEvent fineAcquire(long acquireraw, Dimension bin, int datamin, int datamax, int search, double poserr, double magerr)
private static boolean checkForStarInPinhole(MImageHDU hdu, Rectangle readout, Dimension bin, Point2D pinhole, int box, int frame, double readnoise, double sigfac, double sn)
last - pinhole - box - frame - protected double getIncrease()
getIncrease in class AcquiringUnit