public class PyramidUnit extends FocussingUnit implements Guiding.RawFrame
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private static File |
DEFBIASPYRAMIDFITS
The default fits file holding guider bias image data.
|
private static long |
DEFBIASPYRAMIDTIME
The default exposure time in milli seconds of the bias frame.
|
private static File |
DEFDARKPYRAMIDFITS
The default fits file holding guider bias image data.
|
private static long |
DEFDARKPYRAMIDTIME
The default exposure time in milli seconds of the bias frame.
|
private static int |
DEFDATAMAXPYRAMID
The default data max for 'good' filtered pixels.
|
private static int |
DEFDATAMINPYRAMID
The default data min for 'good' filtered pixels.
|
private static double |
DEFEXPOSEPYRAMID
The desired S/N on the pyramid, high because of fussy images.
|
static String |
DEFFOCUS
The default name of the focus parameter.
|
private static float |
DEFGAUSSFWHM
FWHM of the gaussian filter applied.
|
private static float |
DEFGAUSSTRUNCATE
Truncation of the gaussian filter applied.
|
private static boolean |
DEFKEEPPYRAMIDFITS
If true, all acquire fits are kept on disc.
|
private static int |
DEFKEEPPYRAMIDWHAT
An integer specifying which acquire fits to keep.
|
private static Dimension |
DEFPYRAMIDBINNING
The default binning on guide.
|
private static double |
DEFPYRAMIDDESIRED
The optimal distance of the pyramid images.
|
private static double |
DEFPYRAMIDDISTFOCUS
Translates pyramid diagonal differences to focus mm.
|
private static double |
DEFPYRAMIDERROR
The maximum error on pyramid diagonal.
|
private static Rectangle |
DEFPYRAMIDFRAME
The default focus pyramid frame.
|
private static double |
DEFPYRAMIDMINFOCUS
If this focus mm difference is reached, we are satisfied.
|
private static double |
DEFPYRAMIDRADIUS
The search radius for pyramid images, should be smaller than frame.
|
private static double |
DEFPYRAMIDSHARP
The sharpness rejection on pyramid images.
|
private static int |
DEFRETRYPYRAMID
The default number of retries on focus.
|
private static int |
DEFSEARCHBOXPYRAMID
The default search box, unbinned.
|
private Value |
focus
For focusing with the pyramid, we need the actual telescope focus.
|
static String |
KEY_BIASPYRAMIDFITS
Name and path of the bias fits file, if we have any.
|
static String |
KEY_BIASPYRAMIDTIME
Integration time on the bias fits.
|
static String |
KEY_DARKPYRAMIDFITS
Name and path of the dark fits file, if we have any.
|
static String |
KEY_DARKPYRAMIDTIME
Time of the dark fits file, if we have any.
|
static String |
KEY_DATAMAXPYRAMID
A default data maximum value for star detection.
|
static String |
KEY_DATAMINPYRAMID
A default data minimum value for star detection.
|
static String |
KEY_EXPOSEPYRAMID
A multiplier to get from acquire times to pyramid times.
|
static String |
KEY_FOCUS
The focus of the telescope.
|
static String |
KEY_GAUSSFWHM
FWHM of the gaussian filter applied.
|
static String |
KEY_GAUSSTRUNCATE
Truncation of the gaussian filter applied.
|
static String |
KEY_KEEPPYRAMIDFITS
If true, all acquire fits are kept on disc.
|
static String |
KEY_KEEPPYRAMIDWHAT
An integer specifying which acquire fits to keep.
|
static String |
KEY_PYRAMIDBINNING
The binning used during pyramid.
|
static String |
KEY_PYRAMIDDESIRED
The optimal distance of the pyramid images.
|
static String |
KEY_PYRAMIDDISTFOCUS
Translates pyramid diagonal differences to focus mm.
|
static String |
KEY_PYRAMIDERROR
The maximum error on pyramid diagonal.
|
static String |
KEY_PYRAMIDFRAME
The window on the guider ccd used on pyramid, unbinned.
|
static String |
KEY_PYRAMIDMINFOCUS
If this focus mm difference is reached, we are satisfied.
|
static String |
KEY_PYRAMIDRADIUS
The search radius for pyramid images, should be smaller than frame.
|
static String |
KEY_PYRAMIDSHARP
The sharpness rejection on pyramid images.
|
static String |
KEY_RETRYPYRAMID
Maximum retries on pyramid.
|
static String |
KEY_SEARCHBOXPYRAMID
A search box for star detection, unbinned.
|
increaseACQUIRETYPE, 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 |
|---|
PyramidUnit(Map<String,String> prop)
Construct a new focus unit that uses a focus pyramid in the main beam.
|
| Modifier and Type | Method and Description |
|---|---|
protected ErrorEvent |
doUnitTask(String ignored)
Does focusing of the telescope, when the focus pyramid is already in the
beam.
|
File |
getBiasFrame()
Returns the the bias frame that fits to the requested readout frame.
|
long |
getBiasTime()
Returns the exposure time applicable for the bias fram which is important
for shutterless system.
|
Dimension |
getBinning()
Returns the applicable binning on the ccd.
|
File |
getDarkFrame()
Returns the the dark frame that fits to the requested readout frame.
|
long |
getDarkTime()
Returns the exposure time applicable for the dark frame.
|
protected List<Guiding.RawStar> |
getPyramid(List<Guiding.RawStar> stars,
double radius,
double sharpness)
We scan the list of
Guiding.RawStars for the four brightest
entries around the stated center, at a maximum distance as stated. |
protected VectorG |
getPyramidLocation(List<Guiding.RawStar> pyramid)
Fills in pyramid statistics from the four pyramid reflections.
|
Rectangle |
getReadoutFrame()
Returns the readout frame.
|
protected String |
getUnitType()
The type of this unit is equal to
AdapterUnit.PYRAMIDTYPE. |
protected boolean |
isValid()
This unit is valid if the parent is valid and the focus parameter is set.
|
protected boolean |
setFocus(double mm)
Sets the focus position on the telescope as an absolute mm value.
|
protected boolean |
setFocusOffset(double mm)
Sets the focus position on the telescope as an absolute mm value.
|
protected void |
setFocusParameter(Value telescopefocus)
Sets the focus value needed for the pyramid focusing sequence.
|
protected void |
setMaster(AdapterMaster chef)
Sets the adapter master.
|
setIncreasegetGuider, getMaster, getTelescope, init, isManual, resetUnit, 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 KEY_KEEPPYRAMIDFITS
public static final String KEY_KEEPPYRAMIDWHAT
public static final String KEY_PYRAMIDFRAME
public static final String KEY_PYRAMIDBINNING
public static final String KEY_BIASPYRAMIDFITS
public static final String KEY_BIASPYRAMIDTIME
public static final String KEY_DARKPYRAMIDFITS
public static final String KEY_DARKPYRAMIDTIME
public static final String KEY_DATAMINPYRAMID
public static final String KEY_DATAMAXPYRAMID
public static final String KEY_SEARCHBOXPYRAMID
public static final String KEY_RETRYPYRAMID
public static final String KEY_PYRAMIDRADIUS
public static final String KEY_PYRAMIDSHARP
public static final String KEY_PYRAMIDERROR
public static final String KEY_PYRAMIDDESIRED
public static final String KEY_PYRAMIDDISTFOCUS
public static final String KEY_PYRAMIDMINFOCUS
public static final String KEY_EXPOSEPYRAMID
public static final String KEY_GAUSSFWHM
public static final String KEY_GAUSSTRUNCATE
public static final String KEY_FOCUS
private static final boolean DEFKEEPPYRAMIDFITS
private static final int DEFKEEPPYRAMIDWHAT
private static final Rectangle DEFPYRAMIDFRAME
private static final Dimension DEFPYRAMIDBINNING
private static final File DEFBIASPYRAMIDFITS
private static final long DEFBIASPYRAMIDTIME
private static final File DEFDARKPYRAMIDFITS
private static final long DEFDARKPYRAMIDTIME
private static final int DEFDATAMINPYRAMID
private static final int DEFDATAMAXPYRAMID
private static final int DEFSEARCHBOXPYRAMID
private static final int DEFRETRYPYRAMID
private static final double DEFPYRAMIDRADIUS
private static final double DEFPYRAMIDSHARP
private static final double DEFPYRAMIDERROR
private static final double DEFPYRAMIDDESIRED
private static final double DEFPYRAMIDDISTFOCUS
private static final double DEFPYRAMIDMINFOCUS
private static final double DEFEXPOSEPYRAMID
private static final float DEFGAUSSFWHM
private static final float DEFGAUSSTRUNCATE
public static final String DEFFOCUS
private Value focus
public Rectangle getReadoutFrame()
getReadoutFrame in interface Guiding.RawFramepublic Dimension getBinning()
getBinning in interface Guiding.RawFramepublic File getBiasFrame()
getBiasFrame in interface Guiding.RawFramepublic long getBiasTime()
getBiasTime in interface Guiding.RawFramepublic File getDarkFrame()
getDarkFrame in interface Guiding.RawFramepublic long getDarkTime()
getDarkTime in interface Guiding.RawFrameprotected void setFocusParameter(Value telescopefocus)
telescopefocus - The Value holding the current focus of the telescope
in mm.protected String getUnitType()
AdapterUnit.PYRAMIDTYPE.getUnitType in class AdapterUnitprotected void setMaster(AdapterMaster chef)
setMaster in class AdapterUnitprotected boolean isValid()
isValid in class AdapterUnitprotected boolean setFocus(double mm)
setFocus in class FocussingUnitprotected boolean setFocusOffset(double mm)
setFocusOffset in class FocussingUnitprotected ErrorEvent doUnitTask(String ignored)
doUnitTask in class AdapterUnitignored - If the unit supports more than a single mode, otherwise nullprotected List<Guiding.RawStar> getPyramid(List<Guiding.RawStar> stars, double radius, double sharpness)
Guiding.RawStars for the four brightest
entries around the stated center, at a maximum distance as stated. If
four entries are found, they are returned. This method can only work if
we focus on a bright star. The list cannot be scanned for stars as the
images are distorted, but a basic cosmic-ray hit rejection is implemented
by a sharpness-toggle. If less then four stars are detected, null is
returned.stars - The list of raw-stars, no spurious removal, order for mag.radius - The pyramid search radius in unbinned pixel.sharpness - The maximum sharpness allowed for pyramid images.protected VectorG getPyramidLocation(List<Guiding.RawStar> pyramid)
VectorG.pyramid - The four pyramid reflections as a list of raw-stars.