|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.util.SimulateFits
public class SimulateFits
A class that generates artificial fits images using skymaker and some additional properties to simulate our expected guider field. The pinhole is modeled with
p(r)=1-k*exp(-r^4/2sig^4),as it is steeper than a Gaussian, but not a rectangular bin. For this formular, fwhm/σ=(8*ln2)^1/4.
| Nested Class Summary | |
|---|---|
static class |
SimulateFits.Generate
Generates simulated guider/acquire frames. |
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Field Summary | |
|---|---|
private static String |
DEFBIASMASTER
The fits file with the bias level. |
private static String |
DEFBIASSIGMA
The fits file with the bias sigma. |
private static String |
DEFDARKMASTER
The fits file with the bias level. |
private static String |
DEFDARKSIGMA
The fits file with the bias sigma. |
private static Point2D |
DEFMIRROR
The pinhole position, main dip in unbinned frame. |
private static double |
DEFMIRRORDIP
The pinhole dip in percent, main dip. |
private static Point2D |
DEFPINHOLE
The pinhole position, main dip in unbinned frame. |
private static double |
DEFPINHOLEDIP
The pinhole dip in percent, main dip. |
private static double |
DEFPINHOLEFWHM
The pinhole fwhm in unbinned pixel, main dip. |
private static double |
DEFPIXELSCALE
The default pixel scale, actual folded with binning. |
private static String |
DEFSKYCONFIG
The default configuration file for skymaker. |
private static String |
DEFSKYFITS
The fits file output for starmaker, temporal file. |
private static String |
DEFSKYLIST
The default input list for skymaker. |
private static String |
DEFSKYMAKER
The path to the skymaker executable. |
private static Point2D |
DEFSPLIT
The offset between main and sencondary image in unbinned pixel. |
private static double |
DEFSPLITDIP
The brightness difference between primary and secondary image. |
private static File |
DEFTMPCONFIG
The configuration file for skymaker writtn by this class. |
private static File |
DEFTMPLIST
The default input list for skymaker. |
private static String |
DEFURLRESOURCES
The default resource path. |
private static boolean |
DEFUSEBIAS
True, if bias should be added. |
private static boolean |
DEFUSEDARK
True, if dark should be added. |
private static boolean |
DEFUSEMIRROR
True, if pinhole position should be considered. |
private static boolean |
DEFUSEPINHOLE
True, if pinhole position should be considered. |
private static boolean |
DEFUSESPLIT
True, if beam-splitter double image should be used. |
static String |
KEY_BIASMASTER
The fits file with the bias level. |
static String |
KEY_BIASSIGMA
The fits file with the bias sigma. |
static String |
KEY_DARKMASTER
The fits file with the bias level. |
static String |
KEY_DARKSIGMA
The fits file with the bias sigma. |
static String |
KEY_MIRROR
The mirror position in unbinned frame. |
static String |
KEY_MIRRORDIP
The mirror dip in percent, main dip. |
static String |
KEY_PINHOLE
The pinhole position, main dip in unbinned frame. |
static String |
KEY_PINHOLEDIP
The pinhole dip in percent, main dip. |
static String |
KEY_PINHOLEFWHM
The pinhole fwhm in unbinned pixel, main dip. |
static String |
KEY_PIXELSCALE
The default pixel scale, actual folded with binning. |
static String |
KEY_SKYCONFIG
The default configuration file for skymaker. |
static String |
KEY_SKYFITS
The fits file output for starmaker, temposral file. |
static String |
KEY_SKYLIST
The default input list for skymaker. |
static String |
KEY_SKYMAKER
The path to the skymaker executable. |
static String |
KEY_SPLIT
The offset between main and sencondary image in unbinned pixel. |
static String |
KEY_SPLITDIP
The brightness difference between primary and secondary image. |
static String |
KEY_TMPCONFIG
The configuration file for skymaker writtn by this class. |
static String |
KEY_TMPLIST
The default input list for skymaker. |
static String |
KEY_USEBIAS
True, if bias should be added. |
static String |
KEY_USEDARK
True, if dark should be added. |
static String |
KEY_USEMIRROR
True, if mirror position should be considered. |
static String |
KEY_USEPINHOLE
True, if pinhole position should be considered. |
static String |
KEY_USESPLIT
True, if beam-splitter double image should be used. |
| 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 | |
|---|---|
SimulateFits(Map prop)
Constructs a fits simulator. |
|
| Method Summary | |
|---|---|
boolean |
postProcess(File fitsout,
Rectangle frame,
int bin,
double sec)
Post-processes the file sky-maker generated. |
boolean |
runSkyMaker()
Runs the skymaker as an external program. |
boolean |
writeConfig(Rectangle size,
int bin,
double sec,
double see)
Writes a new config file for skymaker using the config file specified in the properties and writes it to the temporarily config file. |
boolean |
writeList(Rectangle frame,
int bin,
double xjit,
double yjit,
double xosc,
double yosc)
Writes a new list file for skymaker using the original configuration file and applying x/y white noise and oscillation to it. |
private static boolean |
writeStar(BufferedWriter out,
double xcor,
double ycor,
double m,
String rest,
Rectangle frame,
int bin)
Writes a single star entry to the buffered stream. |
| 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, init, 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 |
| Methods inherited from interface util.Initializable |
|---|
init |
| Field Detail |
|---|
public static final String KEY_USEMIRROR
public static final String KEY_MIRROR
public static final String KEY_MIRRORDIP
public static final String KEY_USEPINHOLE
public static final String KEY_PINHOLE
public static final String KEY_PINHOLEDIP
public static final String KEY_PINHOLEFWHM
public static final String KEY_USESPLIT
public static final String KEY_SPLIT
public static final String KEY_SPLITDIP
public static final String KEY_USEBIAS
public static final String KEY_BIASMASTER
public static final String KEY_BIASSIGMA
public static final String KEY_USEDARK
public static final String KEY_DARKMASTER
public static final String KEY_DARKSIGMA
public static final String KEY_PIXELSCALE
public static final String KEY_SKYMAKER
public static final String KEY_SKYFITS
public static final String KEY_SKYCONFIG
public static final String KEY_TMPCONFIG
public static final String KEY_SKYLIST
public static final String KEY_TMPLIST
private static final String DEFURLRESOURCES
private static final boolean DEFUSEMIRROR
private static final Point2D DEFMIRROR
private static final double DEFMIRRORDIP
private static final boolean DEFUSEPINHOLE
private static final Point2D DEFPINHOLE
private static final double DEFPINHOLEDIP
private static final double DEFPINHOLEFWHM
private static final boolean DEFUSESPLIT
private static final Point2D DEFSPLIT
private static final double DEFSPLITDIP
private static final boolean DEFUSEBIAS
private static final String DEFBIASMASTER
private static final String DEFBIASSIGMA
private static final boolean DEFUSEDARK
private static final String DEFDARKMASTER
private static final String DEFDARKSIGMA
private static final double DEFPIXELSCALE
private static final String DEFSKYMAKER
private static final String DEFSKYFITS
private static final String DEFSKYCONFIG
private static final File DEFTMPCONFIG
private static final String DEFSKYLIST
private static final File DEFTMPLIST
| Constructor Detail |
|---|
public SimulateFits(Map prop)
| Method Detail |
|---|
public boolean writeConfig(Rectangle size,
int bin,
double sec,
double see)
throws IOException
fitsname - The fits file name set into the config file.size - Image frame unbinned.bin - Binning in x and y.sec - Integration time in seconds.see - Seeing fwhm (including motion) in arcsec.
IOException
public boolean writeList(Rectangle frame,
int bin,
double xjit,
double yjit,
double xosc,
double yosc)
throws IOException
xjit - Arcsec jitter in x of telescope.yjit - Arcsec jitter in y of telescope.xosc - Value describing arcsec oscilation in x or null.yosc - Value describing arcsec oscilation in y or null.
IOException
private static boolean writeStar(BufferedWriter out,
double xcor,
double ycor,
double m,
String rest,
Rectangle frame,
int bin)
throws IOException
IOException
public boolean runSkyMaker()
throws IOException
IOException
public boolean postProcess(File fitsout,
Rectangle frame,
int bin,
double sec)
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 | |||||||||