public class ModelShift extends AbstractPinholeShift
psf(r)=(β-1)/πα²[1+(r/α)²]-β,where FWHM = 2α√(21/β-1).
ph(r)=1+(atan(k*(x-FWHM/2))-atan(k*(x+FWHM/2)))/π,where bigger k's mean steeper slope. Additionally to the shift of the pinhole, we also get a hold on the seeing and total flux of the star, but no hold on pinhole drifts.
| Modifier and Type | Class and Description |
|---|---|
static class |
ModelShift.PinholeShift
A pinhole model is the model of a star with fitted intensity and FWHM
close to the fixed pinhole position at the given coordinates.
|
static class |
ModelShift.Test
Test class.
|
AbstractPinholeShift.Background, AbstractPinholeShift.Evaluate, AbstractPinholeShift.Reconstruct| Modifier and Type | Field and Description |
|---|---|
private static double |
DEFMOFFATBETA
The moffat-beta, 4.765 is literature value.
|
private static double |
DEFPINHOLEDEEP
Broad-band anti-reflective coating, typically.
|
private static double |
DEFPINHOLESIZE
Default size (FWHM) of pinhole, pixel.
|
private static double |
DEFPINHOLESTEEP
Pinhole model steepness.
|
private static boolean |
DEFUSESIMPLEX
Default we are not using simplex.
|
static String |
KEY_MOFFATBETA
The moffat-beta, 4.765 is literature value.
|
static String |
KEY_PINHOLEDEEP
The pinhole model minimum transmission .
|
static String |
KEY_PINHOLESIZE
The pinhole diameter.
|
static String |
KEY_PINHOLESTEEP
The pinhole model steepness .
|
static String |
KEY_USESIMPLEX
If false, we use Levenberg-Marquardt algorithm, otherwise Simplex.
|
private VectorG |
last
The last solution.
|
private ModelShift.PinholeShift |
pin |
KEY_ADNOISE, KEY_APPLICABLE, KEY_GAIN, KEY_PINHOLE, KEY_SIGMACLIP, KEY_SKYTHICKKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
ModelShift(Map<String,String> prop)
Constructs a model-shift.
|
| Modifier and Type | Method and Description |
|---|---|
Vector2D |
getBackground(MImageHDU hdu)
This method calculates the background as the median of a frame at the
outer edge of the applicable window.
|
double |
getFlux()
Returns the total flux from the last solution, if possible.
|
double |
getFwhm()
Returns the fwhm from the last solution, if possible.
|
Point2D |
initFiberView(MFits ccd)
Returns the center of gravity shift of the image from the pinhole
position.
|
Point2D |
solveFiberView()
Finally dolves for the pinhole shift.
|
backgroundFrameMean, backgroundFrameMedian, backgroundMean, backgroundMedian, getAduSignal, getApplicableWindow, getPinholePosition, getSignalToNoise, initaugment, augment, augment, augment, augment, clone, 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, initProperties, isNew, parseObject, parseObject, reload, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringpublic static final String KEY_MOFFATBETA
public static final String KEY_PINHOLESIZE
public static final String KEY_PINHOLESTEEP
public static final String KEY_PINHOLEDEEP
public static final String KEY_USESIMPLEX
private static final double DEFMOFFATBETA
private static final double DEFPINHOLESIZE
private static final double DEFPINHOLESTEEP
private static final double DEFPINHOLEDEEP
private static final boolean DEFUSESIMPLEX
private VectorG last
private ModelShift.PinholeShift pin
public Vector2D getBackground(MImageHDU hdu)
public Point2D initFiberView(MFits ccd)
ccd - The image of the pinhole entrancepublic Point2D solveFiberView()
PinholeShiftPinholeShift.initFiberView(MFits) before.public double getFlux()
getFlux in interface PinholeShiftgetFlux in class AbstractPinholeShiftpublic double getFwhm()
getFwhm in interface PinholeShiftgetFwhm in class AbstractPinholeShift