|
||||||||||
| 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.Annulus
public class Annulus
A class to produce sequences of fits file that simulate the fiber
entrance seen with a secondary guider unit on STELLA. This class
can be used to dry-test the AuxiliaryPinholeUnit algortihms. The
stellar flux is expressed as a I times the normalized Moffat function,
psf(r)=(β-1)/πα²[1+(r/α)²]-β,where FWHM = 2α√(21/β-1).
ph(r)=1+(atan(k*(x-FWHM/2))-atan(k*(x+FWHM/2)))/π,where bigger k's mean steeper slope, see
for
k between 5 and 50.
| Nested Class Summary | |
|---|---|
static class |
Annulus.Series
Use some command-line switches to generate simulated pinhole data. |
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Field Summary | |
|---|---|
private double |
alpha
Alpha of moffat function, calculated from FWHM on init. |
private double |
beta
beta of moffat function |
private static double |
DEFBIAS
Default bias level on the ccd with no noise. |
private static double |
DEFBRIGHTNESS
Default stellar brightness in counts. |
private static double |
DEFDARK
Additional dark with a Poisson-statistic photon count. |
private static double |
DEFDIAMETER
The telescope diameter for image motion. |
private static File |
DEFDIR
Default directory where images are created. |
private static double |
DEFEXPOSURETIME
Default read-out time to apply . |
private static int |
DEFFITSBITS
The number of bits usable per pixel. |
private static Dimension |
DEFFITSSIZE
Default size of the fits files generated. |
private static double |
DEFGAIN
Default gain of the CCD. |
private static int |
DEFIMAGECOUNT
Default number of images to generate. |
private static double |
DEFLIGHTLOSS
Default light-loss in the system. |
private static double |
DEFMINADU
Default minimum possible ADU recorded value. |
private static double |
DEFMOFFATBETA
The moffat-beta, 4.765 is literature value. |
private static double |
DEFPINHOLEDEEP
Broad-band anti-reflective coating, typically. |
private static double |
DEFPINHOLESIZE
Default size (FWHM) of pinhole, arcsec. |
private static double |
DEFPINHOLESTEEP
Pinhole model steepness. |
private static double |
DEFPINXDRIFT
Default pinhole drift in pixel per second. |
private static double |
DEFPINXNOISE
Default pinhole jitter in pixel. |
private static double |
DEFPINYDRIFT
Default pinhole drift in pixel per second. |
private static double |
DEFPINYNOISE
Default pinhole jitter in pixel. |
private static double |
DEFPLATESCALE
Default plate scale in arcsec per pixel. |
private static double |
DEFREADOUT
Additional read-out with a Poisson-statistic photon count. |
private static double |
DEFREADOUTTIME
Default read-out time per pixel. |
private static double |
DEFSEEING
Default seeing fwhm in arcsec. |
private static double |
DEFWINDSPEED
Default wind speed. |
private static double |
DEFXCENTER
Default pinhole center is center of frame. |
private static double |
DEFXMOTIONNOISE
The white-noise of the telescope motion. |
private static String |
DEFXOSCILLATION
The default oscillation, 0.5 arcsec frequency 0.15915Hz. |
private static double |
DEFYCENTER
Default pinhole center is center of frame. |
private static double |
DEFYMOTIONNOISE
The white-noise of the telescope motion. |
private static String |
DEFYOSCILLATION
The default oscillation, 0.5 arcsec frequency 0.15915Hz. |
private static String[] |
FITSKEYS
Keys and comments in the header. |
private double |
intensity
Intensity from magnitude brightness, calculated on init. |
static String |
KEY_BIAS
The nominal bias level. |
static String |
KEY_BRIGHTNESS
The intensity factor of the primary star. |
static String |
KEY_DARK
The applicable dark noise level, electron/sec. |
static String |
KEY_DIAMETER
The telescope diameter for image motion. |
static String |
KEY_DIR
The directory where simulated images should be created. |
static String |
KEY_EXPOSURETIME
The rate of exposures, equal the exposure time. |
static String |
KEY_FITSBITS
The number of bits usable per pixel. |
static String |
KEY_FITSSIZE
The size on the guider ccd used on guiding, unbinned. |
static String |
KEY_GAIN
The gain factor on the ccd, i.e. |
static String |
KEY_IMAGECOUNT
The number of images to generate. |
static String |
KEY_INTENSITY
The intensity factor of the primary star. |
static String |
KEY_LIGHTLOSS
The light-loss factor, ioncluding telescope and CCD. |
static String |
KEY_MINADU
ADUs cannot drop below this value |
static String |
KEY_MOFFATBETA
The moffat-beta, 4.765 is literature value. |
static String |
KEY_PINHOLEDEEP
The pinhole model minimum transmission . |
static String |
KEY_PINHOLESIZE
The pinhole diameter. |
static String |
KEY_PINHOLESTEEP
The pinhole model steepness . |
static String |
KEY_PINXDRIFT
Pinhole center drift vector. |
static String |
KEY_PINXNOISE
Pinhole center jitter vector. |
static String |
KEY_PINYDRIFT
Pinhole center drift vector. |
static String |
KEY_PINYNOISE
Pinhole center jitter vector. |
static String |
KEY_PLATESCALE
Defautl plate scale in arcsec. |
static String |
KEY_READOUT
The applicable bias noise level. |
static String |
KEY_READOUTTIME
The time to read out a 1x1 pixel array. |
static String |
KEY_SEEING
The seeing fwhm . |
static String |
KEY_WINDSPEED
The wind-speed for image motion. |
static String |
KEY_XCENTER
Pinhole center. |
static String |
KEY_XHOLEACTUAL
The actual shift applied to the star is recorded here. |
static String |
KEY_XMOTIONNOISE
The level of random (white noise) telescope motion. |
static String |
KEY_XOFFACTUAL
The actual difference from star to pinhole is recorded here. |
static String |
KEY_XOSCILLATION
An expression describing the telescope oscillation. |
static String |
KEY_XSHIFTACTUAL
The actual shift applied to the star is recorded here. |
static String |
KEY_YCENTER
Pinhole center. |
static String |
KEY_YHOLEACTUAL
The actual shift applied to the star is recorded here. |
static String |
KEY_YMOTIONNOISE
The level of random (white noise) telescope motion. |
static String |
KEY_YOFFACTUAL
The actual difference from star to pinhole is recorded here. |
static String |
KEY_YOSCILLATION
An expression describing the telescope oscillation. |
static String |
KEY_YSHIFTACTUAL
The actual shift applied to the star is recorded here. |
private static PoissonRandom |
RANDOM
The random generator. |
private double[] |
xmotion
The array of image motions in x-direction. |
private Function |
xosc
Oscillatory function in x. |
private double[] |
ymotion
The array of image motions in x-direction. |
private Function |
yosc
Oscillatory function in y. |
| 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 | |
|---|---|
Annulus(Map<String,String> prop)
Constructs a new annulus, defaulting all non-set properties. |
|
| Method Summary | |
|---|---|
private nom.tam.fits.Fits |
generateFits(int index,
nom.tam.fits.Fits buffer)
Uses the simulated data to create a fits object out of it. |
void |
init()
Allocates the image motion array. |
static void |
main(String[] arg)
A test class. |
private short[][] |
simulate(int index)
The method returns an unsigned-short array of the size of the fits data, giving simulated image data. |
private boolean |
writeFits(String head,
int index,
nom.tam.fits.Fits data)
Writes a fits file containing simulated data. |
| 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 |
|---|
public static final String KEY_FITSSIZE
public static final String KEY_FITSBITS
public static final String KEY_MOFFATBETA
public static final String KEY_SEEING
public static final String KEY_BRIGHTNESS
public static final String KEY_INTENSITY
public static final String KEY_MINADU
public static final String KEY_BIAS
public static final String KEY_READOUT
public static final String KEY_DARK
public static final String KEY_PINHOLESIZE
public static final String KEY_PINHOLESTEEP
public static final String KEY_PINHOLEDEEP
public static final String KEY_WINDSPEED
public static final String KEY_DIAMETER
public static final String KEY_XMOTIONNOISE
public static final String KEY_YMOTIONNOISE
public static final String KEY_XOSCILLATION
public static final String KEY_YOSCILLATION
public static final String KEY_XCENTER
public static final String KEY_YCENTER
public static final String KEY_PLATESCALE
public static final String KEY_PINXDRIFT
public static final String KEY_PINYDRIFT
public static final String KEY_PINXNOISE
public static final String KEY_PINYNOISE
public static final String KEY_EXPOSURETIME
public static final String KEY_READOUTTIME
public static final String KEY_LIGHTLOSS
public static final String KEY_GAIN
public static final String KEY_IMAGECOUNT
public static final String KEY_DIR
public static final String KEY_XSHIFTACTUAL
public static final String KEY_YSHIFTACTUAL
public static final String KEY_XHOLEACTUAL
public static final String KEY_YHOLEACTUAL
public static final String KEY_XOFFACTUAL
public static final String KEY_YOFFACTUAL
private static final Dimension DEFFITSSIZE
private static final double DEFMOFFATBETA
private static final int DEFFITSBITS
private static final double DEFSEEING
private static final double DEFBRIGHTNESS
private static final double DEFMINADU
private static final double DEFBIAS
private static final double DEFREADOUT
private static final double DEFDARK
private static final double DEFPINHOLESIZE
private static final double DEFPINHOLESTEEP
private static final double DEFPINHOLEDEEP
private static final double DEFWINDSPEED
private static final double DEFDIAMETER
private static final double DEFXMOTIONNOISE
private static final double DEFYMOTIONNOISE
private static final String DEFXOSCILLATION
private static final String DEFYOSCILLATION
private static final double DEFXCENTER
private static final double DEFYCENTER
private static final double DEFPLATESCALE
private static final double DEFPINXDRIFT
private static final double DEFPINYDRIFT
private static final double DEFPINXNOISE
private static final double DEFPINYNOISE
private static final double DEFLIGHTLOSS
private static final double DEFGAIN
private static final double DEFEXPOSURETIME
private static final double DEFREADOUTTIME
private static final int DEFIMAGECOUNT
private static final File DEFDIR
private static final PoissonRandom RANDOM
private static final String[] FITSKEYS
private double[] xmotion
private double[] ymotion
private Function xosc
private Function yosc
private double alpha
private double beta
private double intensity
| Constructor Detail |
|---|
public Annulus(Map<String,String> prop)
| Method Detail |
|---|
public void init()
init in interface Initializableinit in class PropertyResourcesprivate short[][] simulate(int index)
private nom.tam.fits.Fits generateFits(int index,
nom.tam.fits.Fits buffer)
throws nom.tam.fits.FitsException
index - Index number of annulus frame.buffer - If non-null, simulated data is stored in the buffer.
nom.tam.fits.FitsException
private boolean writeFits(String head,
int index,
nom.tam.fits.Fits data)
throws IOException
Unique
IOException
public static void main(String[] arg)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||