|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
util.PropertyResources
util.PropertyBundles
astro.fits.ReductionMaster
astro.fits.DarkMaster
public class DarkMaster
We generate master darks out of a dark block, normally done straight after the bias blocks (before on dawn). After overscan correction, the closest master bias is subtracted from all darks. The darks are normalized by their exposure time and a min/max average is constructed, throwing away the highest ADU, but keeping all others (crude cosmic correction). This dark current is then called the master.
| Nested Class Summary | |
|---|---|
static class |
DarkMaster.All
Does all until the very first day of observation. |
static class |
DarkMaster.First
We create a single dark bias from the first dark block found. |
static class |
DarkMaster.MasterDark
Additionally, we record the dark current maximum plus the acheived S/N for proper decision wether dark current subtraction is feasible. |
| Nested classes/interfaces inherited from class astro.fits.ReductionMaster |
|---|
ReductionMaster.ImageBlock, ReductionMaster.ImageInfo, ReductionMaster.Interpolate, ReductionMaster.Listing, ReductionMaster.MasterFits |
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Field Summary | |
|---|---|
private NavigableMap<Date,DarkMaster.MasterDark> |
darklookup
A mapping of center-time-of-block to compressed master bias file. |
private static boolean |
DEBUG
|
private static double |
DEFALLOWSPANAMBTEMP
The maximum spread in det temps. |
private static double |
DEFALLOWSPANCCDTEMP
The maximum spread in det temps. |
private static long |
DEFALLOWSPANTIME
The maximum spread in dark observations. |
private static String |
DEFBESTRULES
How we interpolate. |
private static String |
DEFBESTSPANS
For each rule, we must exceed this value in the master difference. |
private static String |
DEFDARKBIASPURGE
The cards to remove from the subtracted bias. |
private static int |
DEFDARKCOUNTMIN
The default minimum number of useable bias . |
private static boolean |
DEFDARKDUMPHI
We dump the highest ADU, may be a cosmic. |
private static boolean |
DEFDARKDUMPLO
We donot dump the lowest ADU. |
private static double |
DEFDARKMINEXPOSE
The minimum exposure time for a dark to be considerable. |
private static double |
DEFDARKTREND
A trend may only be called a trend, if ADU difference exceeds this. |
private static String |
DEFDARKWEIGHT
The cards used for weighed averages. |
private static String |
DEFMAXDARK
The default ADU-values for the statistic test. |
private static String |
DEFMINDARK
The default ADU-values for the statistic test. |
private static String |
DEFOVERSCANCARDS
The cards used from the overscan. |
private static String |
DEFSERIALIZE
The default serialization file. |
private List<ReductionMaster.ImageBlock> |
done
The list of image blocks already reduced. |
static String |
KEY_DARKBIASPURGE
The cards to be purged from the subtracted bias. |
static String |
KEY_DARKCOUNTMIN
The minimum number of useable darks to remain in a block. |
static String |
KEY_DARKDUMPHI
Trash the highest ADU (cosmic)? |
static String |
KEY_DARKDUMPLO
Trash the lowest ADU? |
static String |
KEY_DARKMINEXPOSE
The minimum exposure time of useable darks, higher than read-out time |
static String |
KEY_DARKPURGEAMP
The cards to be purged from the constructed extensions. |
static String |
KEY_DARKTREND
A drift in the bias is present, if this ADU difference is exceeded. |
static String |
KEY_DARKWEIGHT
In constructing a intermediate master, keep this keys as weighed av. |
static String |
KEY_OVERSCANCARDS
The cards used from the overscan. |
static String |
KEY_SERIALIZE
On restarts, these are the image blocks we have already checked. |
private BiasMaster |
masterbias
We need a master bias to allow the extraction of the bias. |
| 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 | |
|---|---|
DarkMaster(Map<String,String> prop)
|
|
| Method Summary | |
|---|---|
private DarkMaster.MasterDark |
createMasterDark(ReductionMaster.ImageBlock dark,
nom.tam.fits.Fits masterbias,
SettableBoolean recover)
We create a master dark from a dark observing block. |
void |
exit()
On exit, we save all treated bias blocks. |
nom.tam.fits.Fits |
getBestDark(ReductionMaster.ImageInfo ii)
We return the best dark that should be used for the image in this image info. |
File |
getClosestDarkFile(Date d)
We return the master dark file that is closest to the given date in question. |
private ReductionMaster.MasterFits |
getClosestDarkMaster(Date d)
Returns the master fits that is pointing closest to the given date in question. |
File[] |
getEnclosingDarkFile(Date d)
We return the to master dark that are closest before and after this date. |
private ReductionMaster.MasterFits[] |
getEnclosingDarkMaster(Date d)
We return the to master fits that are closest before and after this date. |
void |
init()
On init, we restore the list of all treated bias blocks. |
boolean |
preserve()
On preserving, we try to store the already treated image blocks. |
private int |
reduceNight(Date now)
We scan the given night, first get all observing blocks, secondly check if they are present in our done list. |
boolean |
restore()
On restoring, we try to read the already treated image blocks. |
protected void |
setBiasMaster(BiasMaster bm)
We set the helper application that deals with bias fits. |
static ObserveSql.Types |
typeOf()
|
| 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, 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 |
| Field Detail |
|---|
private static final boolean DEBUG
public static final String KEY_SERIALIZE
public static final String KEY_DARKTREND
public static final String KEY_DARKWEIGHT
public static final String KEY_DARKCOUNTMIN
public static final String KEY_DARKMINEXPOSE
public static final String KEY_DARKDUMPHI
public static final String KEY_DARKDUMPLO
public static final String KEY_OVERSCANCARDS
public static final String KEY_DARKPURGEAMP
public static final String KEY_DARKBIASPURGE
private static final String DEFSERIALIZE
private static final int DEFDARKCOUNTMIN
private static final long DEFALLOWSPANTIME
private static final double DEFALLOWSPANCCDTEMP
private static final double DEFALLOWSPANAMBTEMP
private static final String DEFMINDARK
private static final String DEFMAXDARK
private static final String DEFBESTRULES
private static final String DEFBESTSPANS
private static final double DEFDARKTREND
private static final boolean DEFDARKDUMPHI
private static final boolean DEFDARKDUMPLO
private static final double DEFDARKMINEXPOSE
private static final String DEFOVERSCANCARDS
private static final String DEFDARKWEIGHT
private static final String DEFDARKBIASPURGE
private BiasMaster masterbias
private List<ReductionMaster.ImageBlock> done
private NavigableMap<Date,DarkMaster.MasterDark> darklookup
| Constructor Detail |
|---|
public DarkMaster(Map<String,String> prop)
| Method Detail |
|---|
public static final ObserveSql.Types typeOf()
public void init()
init in interface Initializableinit in class ReductionMasterpublic void exit()
exit in interface ExitCleaningpublic boolean preserve()
preserve in interface Preservingpublic boolean restore()
restore in interface Preservingprotected void setBiasMaster(BiasMaster bm)
private ReductionMaster.MasterFits getClosestDarkMaster(Date d)
private ReductionMaster.MasterFits[] getEnclosingDarkMaster(Date d)
public File getClosestDarkFile(Date d)
public File[] getEnclosingDarkFile(Date d)
public nom.tam.fits.Fits getBestDark(ReductionMaster.ImageInfo ii)
throws IOException,
nom.tam.fits.FitsException
ReductionMaster.KEY_BESTRULES.
IOException
nom.tam.fits.FitsException
private int reduceNight(Date now)
throws IOException,
nom.tam.fits.FitsException,
SQLException
IOException
nom.tam.fits.FitsException
SQLException
private DarkMaster.MasterDark createMasterDark(ReductionMaster.ImageBlock dark,
nom.tam.fits.Fits masterbias,
SettableBoolean recover)
throws IOException,
nom.tam.fits.FitsException
IOException
nom.tam.fits.FitsException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||