public class LightCurveSimulator extends PropertyContainer implements Initializable
| Modifier and Type | Class and Description |
|---|---|
static class |
LightCurveSimulator.Series
Parses the command line and prints out a simluated light curve.
|
| Modifier and Type | Field and Description |
|---|---|
private double |
alpha
Photon constant.
|
private double |
beta
Scintillation constant.
|
private static double |
DEFALTITUDE
Default value.
|
private static double |
DEFDIAMETER
Default diameter.
|
private static double |
DEFEXPOSURETIME
Default value.
|
private static double |
DEFKPRIME
Default kprime.
|
private static double |
DEFLATITUDE
Default value.
|
private static double |
DEFLIGHTLOSS
Default value.
|
private static double |
DEFLONGITUDE
Default value.
|
private static double |
DEFMINHEIGHT
Default value.
|
private static double |
DEFREADOUT
Default value.
|
private static boolean |
DEFRECTANGLE
Default use plain sine wave.
|
private static double |
DEFSCINTILLATION
Default value.
|
private static double |
DEFSKYAPERTURE
Default aperture diameter in arcsec.
|
private static double |
DEFSKYBRIGHT
Default sky brightness.
|
private static double |
DEFSOLHEIGHT
Default allowed maximum solar height.
|
private AltTarget |
h
The height of the target at the stated time.
|
private static double |
H0
Validity elevation above sea level for scintillation formular.
|
static String |
KEY_ALTITUDE
The observatory height.
|
static String |
KEY_AMPLITUDE
The peak-to-valley amplitude of the light curve in mag.
|
static String |
KEY_BRIGHTNESS
The magnitude of the primary star, V.
|
static String |
KEY_DETARGET
The declination of the object.
|
static String |
KEY_DIAMETER
The telescope diameter for photon gathering.
|
static String |
KEY_EXPOSURETIME
The exposure time in seconds.
|
static String |
KEY_KPRIME
The airmass konstant.
|
static String |
KEY_LATITUDE
The latitude of the observatory.
|
static String |
KEY_LIGHTLOSS
The light-loss factor, ioncluding telescope and CCD.
|
static String |
KEY_LONGITUDE
The longitude of the observatory.
|
static String |
KEY_MINHEIGHT
The minimum height.
|
static String |
KEY_PERIOD
The period of the light-curve in days.
|
static String |
KEY_RATARGET
The right ascension of the object.
|
static String |
KEY_READOUT
The read-out/acquire delay.
|
static String |
KEY_RECTANGLE
If true, use a rectangluar wave instead of sine.
|
static String |
KEY_SCINTILLATION
The scintillation constant.
|
static String |
KEY_SKYAPERTURE
The aperture of measure.
|
static String |
KEY_SKYBRIGHT
The mag/arcsec^2 of photon sky noise.
|
static String |
KEY_SOLHEIGHT
Observing only, when sun is lower than that.
|
static String |
KEY_SPAN
The observing time span in days.
|
static String |
KEY_START
The starting time of the simulation.
|
private Distance |
moondist
Distance from object to moon on sky.
|
private MoonHeight |
moonh
The moon height.
|
private MoonAngle |
moonphi
Moon phase.
|
private static PoissonRandom |
RANDOM
The random generator.
|
private SolHeight |
solh
The solar height.
|
private SettableTime |
t
Our time variable.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
LightCurveSimulator(Map<String,String> prop)
Constructs a new light curve simulator, defaulting some values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
init()
We create all necessary parameters out of our properties here.
|
int |
printCurve(PrintWriter out)
Simulates values of the light curve at regular intervals composed of
exposure time plus readout time.
|
double |
simulate(double m0)
Simulates a light-curve value at a given point in time stored in the
global time variable for a given outside-of-atmosphere V magnitude.
|
augment, augment, augment, augment, augment, clone, 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, initProperties, isNew, parseObject, parseObject, reload, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringpublic static final String KEY_DIAMETER
public static final String KEY_EXPOSURETIME
public static final String KEY_LIGHTLOSS
public static final String KEY_LONGITUDE
public static final String KEY_LATITUDE
public static final String KEY_ALTITUDE
public static final String KEY_RATARGET
public static final String KEY_DETARGET
public static final String KEY_BRIGHTNESS
public static final String KEY_READOUT
public static final String KEY_MINHEIGHT
public static final String KEY_KPRIME
public static final String KEY_SKYBRIGHT
public static final String KEY_SKYAPERTURE
public static final String KEY_SCINTILLATION
public static final String KEY_RECTANGLE
public static final String KEY_AMPLITUDE
public static final String KEY_PERIOD
public static final String KEY_START
public static final String KEY_SPAN
public static final String KEY_SOLHEIGHT
private static final double DEFDIAMETER
private static final double DEFEXPOSURETIME
private static final double DEFLIGHTLOSS
private static final double DEFLONGITUDE
private static final double DEFLATITUDE
private static final double DEFALTITUDE
private static final double DEFREADOUT
private static final double DEFMINHEIGHT
private static final double DEFKPRIME
private static final double DEFSKYBRIGHT
private static final double DEFSKYAPERTURE
private static final double DEFSCINTILLATION
private static final double DEFSOLHEIGHT
private static final boolean DEFRECTANGLE
private static final double H0
private static final PoissonRandom RANDOM
private SettableTime t
private AltTarget h
private SolHeight solh
private MoonHeight moonh
private MoonAngle moonphi
private Distance moondist
private double alpha
private double beta
public void init()
init in interface Initializablepublic int printCurve(PrintWriter out)
public double simulate(double m0)