stella.util
Class PrepareDark

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by stella.util.PrepareDark
All Implemented Interfaces:
Cloneable, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying

public class PrepareDark
extends PropertyBundles
implements Initializable

Prepares a master dark from raw image frames. An input fits file is read using a StarFinder instance. The median of the offset-reduced image is calculated. Then, a list of known stellar positions is read in using a GuiderData object. The star pixels are replaced by a rectangular box of median value around the star position read in. The new data is saved to a file with extension _dark.fits. If applyed to images with the same exposure time, combining them using standard fits tools like HEAsoft gives you a master dark frame.
If you are using farith to add images, consider switching to 32 bits for the combined dark frames.

The characterisitcs of the guider ccd in use right now are bad, so the use of this master dark is limited.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
private static File DEFFITSDIR
          The default fits directory.
private static int DEFREPLACEBOX
          Replace box radius.
private  Map fits
          Store fits files versus positions.
static String KEY_FITSDIR
          The fits-files directory.
static String KEY_REPLACEBOX
          Replace box radius.
 
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
PrepareDark(Map prop)
          Construct a new dark preparation.
 
Method Summary
 void init()
          On init, read the guider data objects.
static void main(String[] arg)
          If we supplied an argument, this is treated as the properties of the image amoeba, otherwise we use all default values.
private  void makeSingleDark()
          Uses a StarFinder to prepare single, estimated dark frames by removing the stellar image from the raw image.
 
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

KEY_REPLACEBOX

public static final String KEY_REPLACEBOX
Replace box radius.

See Also:
Constant Field Values

KEY_FITSDIR

public static final String KEY_FITSDIR
The fits-files directory.

See Also:
Constant Field Values

DEFREPLACEBOX

private static final int DEFREPLACEBOX
Replace box radius.

See Also:
Constant Field Values

DEFFITSDIR

private static final File DEFFITSDIR
The default fits directory.


fits

private Map fits
Store fits files versus positions.

Constructor Detail

PrepareDark

public PrepareDark(Map prop)
Construct a new dark preparation.

Method Detail

init

public void init()
On init, read the guider data objects.

Specified by:
init in interface Initializable
Overrides:
init in class PropertyResources

makeSingleDark

private void makeSingleDark()
Uses a StarFinder to prepare single, estimated dark frames by removing the stellar image from the raw image.


main

public static void main(String[] arg)
If we supplied an argument, this is treated as the properties of the image amoeba, otherwise we use all default values.