|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.adapter.AdapterUnit
stella.adapter.FocussingUnit
stella.adapter.PyramidUnit
public class PyramidUnit
The focus unit is responsible for focusing the telescope once the pyramid has been brought into the beam. It does not change the filter wheel position, this must have been done by the mastermind.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Field Summary | |
|---|---|
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. |
| Fields inherited from class stella.adapter.FocussingUnit |
|---|
increase |
| Fields inherited from class stella.adapter.AdapterUnit |
|---|
ACQUIRETYPE, GUIDERTYPE, PYRAMIDTYPE |
| Fields inherited from class util.PropertyBundles |
|---|
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES |
| Fields inherited from class util.PropertyResources |
|---|
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR |
| Fields inherited from interface util.ResourceSupplying |
|---|
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Fields inherited from interface util.PropertySupplying |
|---|
CONFIG, KEY_CLASS |
| Constructor Summary | |
|---|---|
PyramidUnit(Map<String,String> prop)
Construct a new focus unit that uses a focus pyramid in the main beam. |
|
| Method Summary | |
|---|---|
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 |
getPyramid(List 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 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. |
| Methods inherited from class stella.adapter.FocussingUnit |
|---|
setIncrease |
| Methods inherited from class stella.adapter.AdapterUnit |
|---|
getGuider, getMaster, getTelescope, isManual, resetUnit, setGuider, setManual, setTelescope |
| Methods inherited from class util.PropertyBundles |
|---|
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource |
| Methods inherited from class util.PropertyResources |
|---|
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, init, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
|---|
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, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface util.ResourceSupplying |
|---|
getResource, getResourceAsStream, getResources |
| Methods inherited from interface util.PropertySupplying |
|---|
defaultBoolean, 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, stringProperties |
| Methods inherited from interface util.Initializable |
|---|
init |
| Field Detail |
|---|
public 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
| Constructor Detail |
|---|
public PyramidUnit(Map<String,String> prop)
| Method Detail |
|---|
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 null
protected List getPyramid(List 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.center - The expected center of the pyramid.radius - The pyramid search radius in unbinned pixel.sharpness - The maximum sharpness allowed for pyramid images.
protected VectorG getPyramidLocation(List pyramid)
VectorG.
pyramid - The four pyramid reflections as a list of raw-stars.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||