stella.util
Class PrepareDark
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
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.
|
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.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 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 |
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.
PrepareDark
public PrepareDark(Map prop)
- Construct a new dark preparation.
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.