public abstract class AbstractStarGuider extends StellaGuider
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractStarGuider.Exposure
Test class to print out estimated magnitudes.
|
static class |
AbstractStarGuider.Magnitudes
Test class to print out estimated magnitudes.
|
StellaGuider.Continuous, StellaGuider.SinglePropertyResources.Load, PropertyResources.URLResourceGuiding.RawFrame, Guiding.RawStar| Modifier and Type | Field and Description |
|---|---|
private Value |
alt
We cache the altitude parameter.
|
private Value |
az
We cache the azimuth parameter.
|
private static double |
DEFCATALOGMAGLIMIT
Default not fainter than 2.5 below main threshold.
|
private static double |
DEFCCDCHIRALITY
Default left-handed coordinate system also on CCD.
|
private Value |
derotoff
We cache the derotator offset parameter.
|
private Value |
focus
We cache the focus parameter.
|
private List<Star> |
fov
The field of view as a list of
SimpleStars. |
private Value |
imrot
We cache the image rotation parameter.
|
static String |
KEY_ALIGNMENTANGLE
Alignment angle of the ccd with respect to a fixed mechanical direction.
|
static String |
KEY_ALTITUDEFLIP
If the altitude is flipped, it cannot be compensated by a rotation.
|
static String |
KEY_CATALOGMAGLIMIT
Stars fainter than brightest are not included in catalog.
|
static String |
KEY_CCDCHIRALITY
If the CCD x/y has a different chirality than ra/dec.
|
static String |
KEY_DARKGUIDER
The dark plus sky rate on the guider CCD.
|
static String |
KEY_DETECTIONLIMIT
Stars have a probability higher than this value.
|
static String |
KEY_DIRECTPINHOLE
The pinhole position on the direct image.
|
static String |
KEY_ELONGATIONMAX
The maximum elongation for a valid star detection, 0=round.
|
static String |
KEY_ELONGATIONWIDTH
The steepness of the elongation drop.
|
static String |
KEY_EPSILONMAG
The derivative of instrumental magnitudes to star color.
|
static String |
KEY_GUIDERSCALE
The guider scale on the direct image.
|
static String |
KEY_KMAG
The derivative of instrumental magnitudes to airmass.
|
static String |
KEY_MAXTIMEGUIDER
Maximum exposure time on guider ccd in ms.
|
static String |
KEY_READOUTGUIDER
The bias level on the guider ccd.
|
static String |
KEY_SHARPPEAK
The sharpness peak for a valid star detection.
|
static String |
KEY_SHARPWIDTH
The sharpness peak width for a valid star detection.
|
static String |
KEY_SOURCEGUIDER
The magnitude gain for an 8th Rmag star on the guider.
|
static String |
KEY_STRIPDISTANCE
Read-out stripes have this maximum column offset.
|
static String |
KEY_STRIPESMAX
Read-out stripes have this maximum stroke.
|
static String |
KEY_SURESTRIPES
Strokes below this are immediately identified as stripes.
|
static String |
KEY_ZETAMAG
The constant from catalog magnitudes to instrumental mags.
|
private String |
lastdate
If we have no access to unique, this is the last date.
|
private OffsetParameter |
pinoff
If we have a pinhole offset parameter, delivering pixel.
|
static long |
REFERENCEEXPOSE
The exposure time for a reference magnitude star.
|
static double |
REFERENCEMAG
The magnitude we reference to, i.e.
|
private int |
targetcount
If we have no access to unique, this is the last date.
|
private Parameter |
unique
We cache the
Unique parameter. |
biasfits, biastime, CLEAN, CLEANNAME, darkfits, darktime, GAUSS, GAUSSNAME, KEY_DEPTHMEDIAN, KEY_FITSDIR, KEY_GAUSSFWHM, KEY_GAUSSTRUNCATE, KEY_GUIDINGIMG, KEY_LOWPASS, KEY_MAGTRUNCATE, KEY_MATCHERVERSION, KEY_REDUCEDIR, KEY_REDUCETIME, KEY_SIZELOWPASS, KEY_SIZEMEDIAN, KEY_SKYFRAME, KEY_SKYTHRESHOLD, KEY_TMPDIR, LOWPASS, LOWPASSNAME, maxsize, MEDIAN, MEDIANNAME, RECTANGULARMATCHER, REDUCED, REDUCEDNAME, SKYFRAME, STARREGISTERKEY_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 |
AbstractStarGuider(Map<String,String> prop) |
| Modifier and Type | Method and Description |
|---|---|
protected Guiding.RawStar |
closestToPinhole(List<Guiding.RawStar> raw,
double maxdistance)
During guiding we assume that the target star is close to the direct
mirror position.
|
protected static Guiding.RawStar |
closestToPixel(Point2D pinhole,
List<Guiding.RawStar> raw,
double maxdistance)
During guiding we assume that the target star is close to the direct
mirror position.
|
private int |
dataMin(double rmag,
double exptime) |
protected List<Guiding.RawStar> |
detect(boolean keep,
int what,
String type,
String append,
Guiding.RawFrame frame,
long exposuretime,
float gaussfwhm,
float gausstrunc,
int datamin,
int datamax,
int searchbox)
Does a find-stars on the guider ccd.
|
protected List<Guiding.RawStar> |
detect(boolean keep,
int what,
String type,
String append,
Guiding.RawFrame frame,
long exposuretime,
int datamin,
int datamax,
int searchbox)
Does a find-stars on the guider ccd.
|
protected int |
estimateDataMin(Star main,
double exptime)
Estimates the datamin of a read-out stripe we will get on a star.
|
protected long |
estimateExposureTime(double sn,
Dimension bin,
Star main)
Estimates an exposure time for the guider from a desired signal-to-noise.
|
protected double |
estimateGuiderMag(long expose,
float mag,
float col,
double z)
Estimates the guider magnitude from an exposure time, a known magnitude
plus color index and the current airmass.
|
private double |
estimateReferenceMag(float mag,
float color,
double airmass)
From the magnitude handed over we estimate the current R-magnitude of the
star for calculation of exposure time or instrumental magnitudes.
|
protected double |
estimateReferenceMag(Star star)
From the magnitude handed over we estimate the current R-magnitude of the
star for calculation of exposure time or instrumental magnitudes.
|
private long |
exposureTimeFor(double aim,
double rmag)
Calculates the exposure time from a given, binning corrected S/N.
|
protected Vector2D |
fieldOfViewOffset(Rectangle2D box,
Dimension boxerr,
double poserror,
double magerror,
List<Guiding.RawStar> found,
long exposuretime,
Point2D needpixel,
boolean oncenter)
Does a matching of a detected star list (which might be further cleaned
by removing mirrors etc) to the field-of-view.
|
protected Point2D |
fieldOfViewShift(Rectangle2D box,
Dimension boxerr,
double poserror,
double magerror,
List<Guiding.RawStar> found,
long exposuretime,
boolean oncenter)
Does a matching of a detected star list (which might be further cleaned
by removing mirrors etc) to the field-of-view.
|
protected String |
formatWithUnique(String head,
String append)
Formats a file with the unique parameter in a sense that once can supply
a header and a tail to it.
|
private double |
getAirmass()
Converts the altitude parameter to the airmass.
|
protected Number |
getAltitude()
Returns the target altitude.
|
private Vector2D |
getAzAltOffset(Point2D pxshft,
double theta)
Converts a distance in CCD-pixel to a distance in current alt/az in
degrees.
|
protected Number |
getAzimuth()
Returns the target altitude.
|
private List<Guiding.RawStar> |
getCatalogList(List<Star> stars,
Rectangle2D box,
Dimension boxerr,
boolean single,
long expose,
boolean oncenter)
Converts a list of catalog stars to a list of
Guiding#RawStars. |
protected Point2D |
getCatalogPosition(Star catalog)
Returns the calculated position of the star on the guider CCD.
|
protected abstract Number |
getCurrentAzAltRotation()
Returns the current rotation of the CCD axis to the az/alt direction.
|
protected abstract Number |
getCurrentFieldRotation()
Returns the current field rotation angle, used for converting ra/dec to
pixel.
|
protected Number |
getDerotator()
Returns an optional derotator offset.
|
protected List<Guiding.RawStar> |
getExpectedList(Rectangle2D catalog,
long exposuretime,
boolean oncenter)
Returns the previously set field-of-view as it is expected to be seen on
the CCD frame.
|
protected Number |
getFocus()
Returns the current focus or null if unknown.
|
protected List<Star> |
getFov()
Returns the field of view.
|
double |
getGuiderScale()
Returns the guider scale.
|
long |
getMaximumExposureTime()
Returns the maximum time in ms allowed for the guider ccd.
|
protected static List<Guiding.RawStar> |
getNeighbours(List<Guiding.RawStar> principal,
Point2D center,
double d)
We scan a list of
Guiding.RawStars and return all entries that
are within a certain distance to the given center point. |
protected Point2D |
getPinhole()
Returns the direct pinhole.
|
protected List<Guiding.RawStar> |
getPinholeNeighbours(List<Guiding.RawStar> found,
double d)
Returns a list of all
Guiding.RawStars found in the vicinity of
the pinhole. |
protected OffsetParameter |
getPinholeOffset()
Outside parameter recording pinhole shifts like in ADC usage.
|
private Point2D |
getPixelOffset(Vector2D dazalt,
double theta)
Converts a distance in az/alt in degrees into a pixel distance.
|
protected abstract Vector2D |
getRaDeCenter()
Returns the nominal center of the pointing direction in ra,dec.
|
protected Number |
getRotation()
Returns the current field rotation, i.e.
|
protected static List<Guiding.RawStar> |
getStrip(List<Guiding.RawStar> principal,
Point2D center,
double dist)
We scan a list of
Guiding.RawStars and return all entries that
are within a certain column, defined in center. |
protected Parameter |
getUnique()
Gets the unique parameter.
|
void |
init()
On init, we print all non-standard values to system.log.
|
protected boolean |
isStar(Guiding.RawStar star)
Returns true, if the star detected is truely belived to be a star.
|
protected Point2D |
offsetAzAltToPixel(Vector2D dazalt)
Converts a az/alt shift into a pixel shift.
|
protected Vector2D |
pixelToAzAltOffset(Point2D pixshift)
Converts a pixel shift into an az/alt shift.
|
protected List<Guiding.RawStar> |
removeSpurious(List<Guiding.RawStar> raw)
Iteratates through a list of
Giding.RawStars and calculates a
probability for each to be a star. |
protected List<Guiding.RawStar> |
removeStripes(List<Guiding.RawStar> stars)
For bright stars, stars brighter than 9th mag, read-out stripes can be
seen in the image because of the shutterless operation.
|
protected boolean |
saveMatches(Rectangle catalog,
long exposuretime,
boolean oncenter,
List<Guiding.RawStar> found,
File to)
Saves the matching files for further tests as serialized objects.
|
protected void |
setFocus(Value f)
Sets the focus value needed sometimes for proper calculation of the
central point.
|
protected boolean |
setFov(List<?> starlist)
Sets the fov.
|
protected void |
setOrientationValues(Value altitude,
Value imageangle,
Value offset)
This method sets the parameters needed for each unit to correctly
interpret pixel coordinates.
|
protected void |
setOrientationValues(Value azimuth,
Value altitude,
Value imageangle,
Value offset)
This method sets the parameters needed for each unit to correctly
interpret pixel coordinates.
|
private void |
setPinhole(Point2D pinhole)
Sets the direct pinhole.
|
protected void |
setPinholeOffset(OffsetParameter pinoff) |
protected void |
setUnique(Parameter id)
Sets the unique parameter.
|
protected Vector2D |
starOffset(Guiding.RawStar proximity,
Point2D needshift)
Returns the offset of the
Guiding.RawStar to the pinholde
position in azimuth/altitude. |
protected Vector2D |
starOffset(Guiding.RawStar proximity,
Point2D center,
Point2D needshift)
Returns the offset of the
Guiding.RawStar to the pinholde
position in azimuth/altitude. |
protected Point2D |
starShift(Guiding.RawStar proximity)
Returns the offset of the
Guiding.RawStar to the pinholde
position in pixel. |
protected static Point2D |
starShift(Guiding.RawStar proximity,
Point2D central)
Returns the offset of the
Guiding.RawStar to the pinholde
position in pixel. |
background, cancelContinuous, countSum, createFitsFile, createFitsObject, fluxInside, getCcd, getCcdSize, getContinuousList, getContinuousMinimumExpose, getCurrentExpsoureNumber, getFitsDir, getGuidingStars, getGuidingStars, getGuidingStars, getLastGuidingImage, getTmpDir, getTmpFitsname, interpretFitsFile, interpretFitsFile, isReady, match, photometry, prepareContinuous, reduceFitsFile, registerCcd, setBiasReduction, setDarkReduction, setGuiding, startContinuous, startContinuous, stopContinuousclone, 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 double REFERENCEMAG
public static final long REFERENCEEXPOSE
public static final String KEY_CATALOGMAGLIMIT
public static final String KEY_READOUTGUIDER
public static final String KEY_DARKGUIDER
public static final String KEY_SOURCEGUIDER
public static final String KEY_MAXTIMEGUIDER
public static final String KEY_DETECTIONLIMIT
public static final String KEY_SHARPPEAK
public static final String KEY_SHARPWIDTH
public static final String KEY_ELONGATIONMAX
public static final String KEY_ELONGATIONWIDTH
public static final String KEY_SURESTRIPES
public static final String KEY_STRIPESMAX
public static final String KEY_STRIPDISTANCE
public static final String KEY_GUIDERSCALE
public static final String KEY_DIRECTPINHOLE
public static final String KEY_ALIGNMENTANGLE
public static final String KEY_ZETAMAG
public static final String KEY_KMAG
public static final String KEY_EPSILONMAG
public static final String KEY_ALTITUDEFLIP
public static final String KEY_CCDCHIRALITY
private static final double DEFCCDCHIRALITY
private static final double DEFCATALOGMAGLIMIT
private List<Star> fov
SimpleStars.private OffsetParameter pinoff
private Value az
private Value alt
private Value imrot
private Value derotoff
private Value focus
private String lastdate
private int targetcount
public void init()
init in interface Initializableinit in class StellaGuiderprotected abstract Number getCurrentFieldRotation()
protected abstract Number getCurrentAzAltRotation()
protected abstract Vector2D getRaDeCenter()
protected boolean setFov(List<?> starlist)
SimpleStars, in which case the fov is not set.protected List<Star> getFov()
#isValid returns true, this will
never return null.protected Point2D getPinhole()
private void setPinhole(Point2D pinhole)
protected void setOrientationValues(Value altitude, Value imageangle, Value offset)
altitude - The altitude of the object.imageangle - The current field rotation angle, i.e. the angle between the
y-axis of the CCD and the celestial North.offset - If the derotator has an additional offset. Might be null.protected void setOrientationValues(Value azimuth, Value altitude, Value imageangle, Value offset)
altitude - The altitude of the object.imageangle - The current field rotation angle, i.e. the angle between the
y-axis of the CCD and the celestial North.offset - If the derotator has an additional offset. Might be null.protected void setFocus(Value f)
protected OffsetParameter getPinholeOffset()
protected void setPinholeOffset(OffsetParameter pinoff)
pinoff - the pinoff to setprotected void setUnique(Parameter id)
protected Parameter getUnique()
protected String formatWithUnique(String head, String append)
protected Number getFocus()
protected Number getAzimuth()
protected Number getAltitude()
protected Number getRotation()
#isValid returns true, this will
never return null.protected Number getDerotator()
protected List<Guiding.RawStar> detect(boolean keep, int what, String type, String append, Guiding.RawFrame frame, long exposuretime, int datamin, int datamax, int searchbox) throws IOException, IllegalWindowException, IllegalSearchBoxException
StellaGuider.getGuidingStars(stella.adapter.Guiding.RawFrame, long, int, int, int, java.lang.String) method, we can specify optional keeping of the
fits frames and supply individual name parts.keep - If true, the raw frame plus reductional frames are kept.what - Or'd value of StellaGuider.MEDIAN etc.type - Defines the bias/dark frames and is the header of the
permanent fits file.append - Things to append after the unique ID.IOExceptionIllegalWindowExceptionIllegalSearchBoxExceptionStellaGuider.getGuidingStars(stella.adapter.Guiding.RawFrame, long, int, int, int, java.lang.String)protected List<Guiding.RawStar> detect(boolean keep, int what, String type, String append, Guiding.RawFrame frame, long exposuretime, float gaussfwhm, float gausstrunc, int datamin, int datamax, int searchbox) throws IOException, IllegalWindowException, IllegalSearchBoxException
StellaGuider.getGuidingStars(stella.adapter.Guiding.RawFrame, long, int, int, int, java.lang.String) method, we can specify optional keeping of the
fits frames and supply individual name parts.keep - If true, the raw frame plus reductional frames are kept.what - Or'd value of StellaGuider.MEDIAN etc.type - Defines the bias/dark frames and is the header of the
permanent fits file.append - Things to append after the unique ID.IOExceptionIllegalWindowExceptionIllegalSearchBoxExceptionStellaGuider.getGuidingStars(stella.adapter.Guiding.RawFrame, long, int, int, int, java.lang.String)protected Point2D fieldOfViewShift(Rectangle2D box, Dimension boxerr, double poserror, double magerror, List<Guiding.RawStar> found, long exposuretime, boolean oncenter) throws AmbiguousPatternException, CannotMatchException, InsufficientDataException, NoStarException
catalog - The pixel serach box in the catalog, at least the frame size
taken on ccd.The - position error allowed for this catalog.magerror - The magnitude error allowed for this catalog.found - The list of #Guiding.RawStars to match.exposuretime - The exposure time used on generating the found list.InsufficientDataException - If the field-of-view is empty.AmbiguousPatternExceptionCannotMatchExceptionNoStarExceptionprotected boolean saveMatches(Rectangle catalog, long exposuretime, boolean oncenter, List<Guiding.RawStar> found, File to)
protected List<Guiding.RawStar> getExpectedList(Rectangle2D catalog, long exposuretime, boolean oncenter)
protected Vector2D fieldOfViewOffset(Rectangle2D box, Dimension boxerr, double poserror, double magerror, List<Guiding.RawStar> found, long exposuretime, Point2D needpixel, boolean oncenter) throws AmbiguousPatternException, NoStarException, InsufficientDataException, CannotMatchException
catalog - The pixel serach box in the catalog, at least the frame size
taken on ccd.The - position error allowed for this catalog.magerror - The magnitude error allowed for this catalog.found - The list of #Guiding.RawStars to match.exposuretime - The exposure time used on generating the found list.needpixel - If non-null,the pixel shift is entered into this point.InsufficientDataException - If the field-of-view is empty.AmbiguousPatternExceptionNoStarExceptionCannotMatchExceptionprotected Vector2D pixelToAzAltOffset(Point2D pixshift)
protected Point2D offsetAzAltToPixel(Vector2D dazalt)
protected Point2D starShift(Guiding.RawStar proximity)
Guiding.RawStar to the pinholde
position in pixel. This method can be used if you already know what your
guiding/acquire star is. If the star handed over is null or has no
position, null is returned, otherwise the pixel shift is returned.protected static Point2D starShift(Guiding.RawStar proximity, Point2D central)
Guiding.RawStar to the pinholde
position in pixel. This method can be used if you already know what your
guiding/acquire star is. If the star handed over is null or has no
position, null is returned, otherwise the pixel shift is returned.protected List<Guiding.RawStar> removeSpurious(List<Guiding.RawStar> raw)
Giding.RawStars and calculates a
probability for each to be a star. Those considered non-stars are removed
from the input list and returned in a separate List.raw - The list where spurious detections should be removed.protected boolean isStar(Guiding.RawStar star)
protected Vector2D starOffset(Guiding.RawStar proximity, Point2D needshift)
Guiding.RawStar to the pinholde
position in azimuth/altitude. This method can be used if you already know
what your guiding/acquire star is. If the star handed over is null or has
no position, or you have no access to the field rotation, null is
returned, otherwise the offset in degrees is returned.proximity - The star we want to calculate the shift on.needshift - If non-null, we enter the pixel shift into this.protected Vector2D starOffset(Guiding.RawStar proximity, Point2D center, Point2D needshift)
Guiding.RawStar to the pinholde
position in azimuth/altitude. This method can be used if you already know
what your guiding/acquire star is. If the star handed over is null or has
no position, or you have no access to the field rotation, null is
returned, otherwise the offset in degrees is returned.proximity - The star we want to calculate the shift on.needshift - If non-null, we enter the pixel shift into this.public long getMaximumExposureTime()
public double getGuiderScale()
protected double estimateReferenceMag(Star star)
mag - The color in the catalog color.color - The color index according to catalogairmass - The current airmass.info - Must contain KEY_EPSILONMAG and KEY_KMAG.private double estimateReferenceMag(float mag,
float color,
double airmass)
mag - The color in the catalog color.color - The color index according to catalogairmass - The current airmass.info - Must contain KEY_EPSILONMAG and KEY_KMAG.protected double estimateGuiderMag(long expose,
float mag,
float col,
double z)
expose - Exposure time in millisec.mag - The color in the catalog color.col - The color index according to catalogz - The current airmass.info - Must contain KEY_SOURCEGUIDER, KEY_DARKGUIDER,
KEY_ZETAMAG, KEY_EPSILONMAG and
KEY_KMAG.protected long estimateExposureTime(double sn,
Dimension bin,
Star main)
protected int estimateDataMin(Star main, double exptime)
I_0=Φ∗/2πσ²,If we read out at a speed v pixel/sec, a pixel directly in the path of the read-out strip will get
I_s=2∫I_0exp(-v²t²/2σ²)dtcounts, or, if integrating to t=∞
I_s=Φ∗/(vσ√(2π)).Thus the exposure time you specify here should be 1/2.5*v*sigma.
private int dataMin(double rmag,
double exptime)
private long exposureTimeFor(double aim,
double rmag)
I_*=K_S*10^(-.4*R_mag)where the last formular can be written as
I_t=I_*+I_d
I_r=I_*sqrt(4*K_R/(S/N)^2+(I_t/I_*)^2)
t_exp=0.5*REFERENCEEXPOSE*(S/N)^2*(I_t+I_r)/I_*^2
t_exp=0.5*REFERENCEEXPOSE*(S/N)^2/I_*O(1),meaning that the exposure time is indirectly proportional to
KEY_SOURCEGUIDER.private double getAirmass()
protected List<Guiding.RawStar> removeStripes(List<Guiding.RawStar> stars)
KEY_STRIPESMAX, the image is
considered a read-out stripe and removed from the list.
This method is only there for convenience, see ReadoutStripes.
private Vector2D getAzAltOffset(Point2D pxshft, double theta)
pxshft - Shift in unbinned pixels on the CCD.alt - The height of the target for normalizing azimuth shift.theta - Current angle between CCD-x and az/alt.info - Properties containing the guider scale.private Point2D getPixelOffset(Vector2D dazalt, double theta)
dazalt - The shift in azimuth and altitude, degrees.theta - Current angle between CCD-x and az/alt.protected Guiding.RawStar closestToPinhole(List<Guiding.RawStar> raw, double maxdistance)
Guiding#RawStar to this position and return it. If no entry is
found within the provided maximum distance, null is returned.raw - The list with all detections.maxdistance - The maximum allowed distance in pixels.protected static Guiding.RawStar closestToPixel(Point2D pinhole, List<Guiding.RawStar> raw, double maxdistance)
Guiding#RawStar to this position and return it. If no entry is
found within the provided maximum distance, null is returned.raw - The list with all detections.maxdistance - The maximum allowed distance in pixels.protected List<Guiding.RawStar> getPinholeNeighbours(List<Guiding.RawStar> found, double d)
Guiding.RawStars found in the vicinity of
the pinhole.private List<Guiding.RawStar> getCatalogList(List<Star> stars, Rectangle2D box, Dimension boxerr, boolean single, long expose, boolean oncenter)
Guiding#RawStars.
The current field rotation is taken into account on calculating the
desired positions.stars - A list of SimpleStars.box - The box on the CCDboxerr - pointing offset growth.single - If true, only one star was found.expose - The exposure time for estimating guider mags.oncenter - True, if we query for this list during final acquire on center
star.protected Point2D getCatalogPosition(Star catalog)
catalog - A star from the fov star catalog.protected static List<Guiding.RawStar> getNeighbours(List<Guiding.RawStar> principal, Point2D center, double d)
Guiding.RawStars and return all entries that
are within a certain distance to the given center point.protected static List<Guiding.RawStar> getStrip(List<Guiding.RawStar> principal, Point2D center, double dist)
Guiding.RawStars and return all entries that
are within a certain column, defined in center.