public abstract class AbstractPinholeModel extends AbstractPinholeShift
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractPinholeModel.AbstractPinholeFits
This is the data model that somehow describes the star plus pinhole.
|
AbstractPinholeShift.Background, AbstractPinholeShift.Evaluate, AbstractPinholeShift.Reconstruct| Modifier and Type | Field and Description |
|---|---|
private Dimension |
box
The geometry of the data model to derive the 2-dim back.
|
private static double |
DEFMU
Pixel size of detector, mu
|
private static double |
DEFPIXELSCALE
Pixel size of detector in arcseconds.
|
private static boolean |
DEFUSESIMPLEX
Default we are not using simplex.
|
protected AbstractPinholeModel.AbstractPinholeFits |
fit
The data model, where the times are the rectangular grid.
|
private MImageHDU |
hdu
We also need the original data.
|
static String |
KEY_MU
The pixel size in micron .
|
static String |
KEY_PIXELSCALE
The pixel size in micron .
|
static String |
KEY_USESIMPLEX
If false, we use Levenberg-Marquardt algorithm, otherwise Simplex.
|
private VectorG |
last
The last solution.
|
KEY_ADNOISE, KEY_APPLICABLE, KEY_GAIN, KEY_PINHOLE, KEY_SIGMACLIP, KEY_SKYTHICKKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPinholeModel(Map<String,String> prop)
Constructs a model-shift.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract AbstractPinholeModel.AbstractPinholeFits |
generatePinholeModel(MImageHDU hdu,
Rectangle frame,
double back,
double backerr,
Point2D pinhole)
This method intializes the pinhole model used in the fitting process
during
initFiberView(fits.hdu.MFits). |
(package private) Dimension |
getBox() |
static List<String> |
getGnuPlotLines(Dimension size,
double[] data)
Returns a list of lines for a three-dim GNU plot input.
|
double[] |
getMeasures()
Returns the flux of the star as it would have been seen without a
pinhole as a two-dim model.
|
double[] |
getModel()
Returns the flux of the star as it would have been seen without a
pinhole as a two-dim model.
|
double[] |
getModel(VectorG with)
Returns the flux of the star as it would have been seen without a
pinhole as a two-dim model.
|
double[] |
getRelativeStarModel()
We divide the residual by the star model flux at all pixels.
|
double |
getRemainingFlux()
Gets the measured ADU of the star.
|
double[] |
getResiduals()
Returns the residuals of the model as a two-dimensional array
representing the original geometry, x in the first index, y in second.
|
double |
getRms()
Returns the RMS of the model, zero if no convergence was obtained
|
VectorG |
getSolution()
Returns the final solution.
|
double[] |
getStarModel()
Returns the flux of the star as it would have been seen without a
pinhole as a two-dim model.
|
abstract Point2D |
getStarPosition()
Returns the star position.
|
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.
|
static double |
sumup(double[] data)
Sums a model flux.
|
backgroundFrameMean, backgroundFrameMedian, backgroundMean, backgroundMedian, getAduSignal, getApplicableWindow, getFlux, getFwhm, 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, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBackgroundpublic static final String KEY_MU
public static final String KEY_PIXELSCALE
public static final String KEY_USESIMPLEX
private static final double DEFMU
private static final double DEFPIXELSCALE
private static final boolean DEFUSESIMPLEX
private VectorG last
protected AbstractPinholeModel.AbstractPinholeFits fit
private Dimension box
private MImageHDU hdu
protected abstract AbstractPinholeModel.AbstractPinholeFits generatePinholeModel(MImageHDU hdu, Rectangle frame, double back, double backerr, Point2D pinhole) throws BasicFitsException
initFiberView(fits.hdu.MFits). We supply the image data, the applicable
image rectangle, the background estimate plus its error and the
zero-order pinhole position.BasicFitsExceptionDimension getBox()
public double getRms()
public VectorG getSolution()
public double[] getResiduals()
public double getRemainingFlux()
PinholeShift.getBackground(fits.hdu.MImageHDU) method, then we use sigma-clipping to get all
pixel that have a signal. The number of pixels with signal and the
ADU sum are returned.public abstract Point2D getStarPosition()
public double[] getStarModel()
public double[] getMeasures()
public double[] getModel()
public double[] getModel(VectorG with)
public static double sumup(double[] data)
public double[] getRelativeStarModel()
public static List<String> getGnuPlotLines(Dimension size, double[] data)
gnuplot> splot "data.file" matrix with linesTo plot multiple files, use
gnuplot> splot "data.file" matrix with lines, "data2.file" matrix with linesExamples can be found here
public Point2D initFiberView(MFits ccd)
ccd - The image of the pinhole entrancepublic Point2D solveFiberView()
PinholeShiftPinholeShift.initFiberView(MFits) before.