public class ExposureTimeCalculator extends PropertyContainer implements ExposureTimeProviding, GlobalDepending
| Modifier and Type | Field and Description |
|---|---|
private Value |
airmass
The airmass of the entire field.
|
private static String |
DEFAIRMASS
Name of the airmass parameter.
|
private static double |
DEFEPSILONMAG
The default epsilon for the white light is zero.
|
private static double |
DEFKPRIMEMAG
The default k prime parameter for white light.
|
static String |
KEY_AIRMASS
Name of the airmass parameter.
|
static String |
KEY_CCDGAIN
The gain of e-/ADU of the guider CCD.
|
static String |
KEY_EPSILONMAG
The derivative of instrumental magnitudes to star color.
|
static String |
KEY_FLUX10MAG
The flux in e- for an 10th mag star on the guider.
|
static String |
KEY_FLUXDARK
The dark plus sky rate on the guider CCD.
|
static String |
KEY_KPRIMEMAG
The derivative of instrumental magnitudes to airmass.
|
static String |
KEY_PIXELCOUNT
The number of pixel containing the star flux.
|
static String |
KEY_READNOISE
The read-noise of the guider ccd, e- per pixel
|
static String |
KEY_ZETAMAG
The constant from catalog magnitudes to instrumental mags.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
ExposureTimeCalculator(Map<String,String> prop) |
| Modifier and Type | Method and Description |
|---|---|
double |
estimateExposureTime(double sn,
Dimension binning,
Star aim)
Returns the exposure time required for the guider CCD to yield the
requested S/N.
|
double |
estimateMagnitude(Star aim,
double texp)
Returns the expected instrumental magnitude from the guider CCD for the
stated star.
|
double |
estimatePeak(Star aim,
double pixelfwhm,
Dimension bin,
double texp)
Returns the expected (ADU) peak signal on the guider CCD for the stated
star and seeing in pixel
|
double |
estimateSignal(Star aim,
double texp)
Returns the expected (ADU) signal on the guider CCD for the stated star.
|
double |
estimateSignalToNoise(Star aim,
Dimension binning,
double texp)
Returns the expected S/N for the star on the detector.
|
private double |
exposureTimeFor(double sn,
double amag,
Dimension bin)
Calculates the exposure time from a given S/N.
|
private double |
getAirmass()
Returns the airmass of the current pointing or 1 if not accessible.
|
private double |
getApparentMagnitude(float mag,
float color) |
private double |
getApparentMagnitude(Star star) |
protected int |
getNumberOfPixels() |
protected double |
getSkyPlusDarkFlux() |
protected double |
getStarFlux(double amag) |
void |
registerGlobals(GlobalGrouping set)
Grabs the target airmass
|
private double |
signalToNoise(double ms,
double amag,
Dimension bin) |
augment, 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_CCDGAIN
public static final String KEY_PIXELCOUNT
public static final String KEY_READNOISE
public static final String KEY_FLUXDARK
public static final String KEY_FLUX10MAG
public static final String KEY_ZETAMAG
public static final String KEY_KPRIMEMAG
public static final String KEY_EPSILONMAG
public static final String KEY_AIRMASS
private static final String DEFAIRMASS
private static final double DEFKPRIMEMAG
private static final double DEFEPSILONMAG
private Value airmass
public double estimateExposureTime(double sn,
Dimension binning,
Star aim)
ExposureTimeProvidingestimateExposureTime in interface ExposureTimeProvidingpublic double estimateSignalToNoise(Star aim, Dimension binning, double texp)
ExposureTimeProvidingestimateSignalToNoise in interface ExposureTimeProvidingpublic double estimateSignal(Star aim, double texp)
ExposureTimeProvidingestimateSignal in interface ExposureTimeProvidingpublic double estimateMagnitude(Star aim, double texp)
ExposureTimeProvidingestimateMagnitude in interface ExposureTimeProvidingpublic double estimatePeak(Star aim, double pixelfwhm, Dimension bin, double texp)
ExposureTimeProvidingestimatePeak in interface ExposureTimeProvidingpublic void registerGlobals(GlobalGrouping set)
registerGlobals in interface GlobalDependingprotected double getStarFlux(double amag)
protected double getSkyPlusDarkFlux()
protected int getNumberOfPixels()
private double getApparentMagnitude(Star star)
private double getApparentMagnitude(float mag,
float color)
private double getAirmass()
private double exposureTimeFor(double sn,
double amag,
Dimension bin)
(S/N)²=(Φstar·t)²/ gain·((Φstar+Φsky+dark·n)·t+n/bin²*RN²)We assume the sky and dark current to be constant (or negligible). The sky FWHM and thus the number of pixel is also kept constant. With known gain and read-noise, the exposure time depends only on apparent magnitude and desired S/N.
private double signalToNoise(double ms,
double amag,
Dimension bin)