public abstract class AbstractFitsValue extends AbstractFitsParameter implements Value
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private List<Double> |
adus
The pixel extracted from the fits file as a list of Doubles.
|
private double |
aduscale
To correct the extracted pixel, we need scale and zero.
|
private double |
aduzero
To correct the extracted pixel, we need scale and zero.
|
private static int |
DEFEXTENSION
Default no extension skip.
|
private static Rectangle |
DEFWINDOW
Default window, order 88, to the blue of Hα.
|
static String |
KEY_EXTENSION
The extension where window should be read.
|
static String |
KEY_WINDOW
Window used on SES spectrum for efficiency estimate.
|
DEFBIND, KEY_BINDKEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWNKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASSKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFitsValue(Map<String,String> prop)
Constructs a new fits measuring tool.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get()
Links the
Parameter.get() to the Value.getValue()
method. |
protected List<Double> |
getAdus()
Returns the list of adus, as retrieved from fits tools.
|
protected static double |
getMode(List<Double> adus,
double aduwidth)
Does a mode estimation using the provided adu bin width.
|
protected static double |
getSigmaFromLow(List<Double> adus,
double mode)
Does a standard-deviation estimate on the ADUs using only the values
below the mode
|
protected static double |
getSignal(List<Double> adus,
double exceed,
double threshold)
Sums all ADUS that are at least the stated number above the specified
threshold.
|
protected Rectangle |
getWindow()
Returns the read-out window on the FITS file.
|
protected boolean |
processMFits(MFits fits,
Rectangle readout,
Dimension bin,
Date when,
long registered,
double t)
The fits file and the exposure time should be registered just when the
fits file resides in memory.
|
protected double |
rescanned(String key,
String old,
String newval)
Reparses the readout window after calling super.
|
Number |
setValue(Number number)
Links the
Parameter.set(java.lang.Object) to the Value.setValue(java.lang.Number)
method. |
addRmiListener, getDateObs, getExposureTime, getRegistered, registerMFits, registerMonitor, removeRmiListener, rmiDateObs, rmiExposureTime, rmiRegistered, set, setDateObs, setExposureTime, setRegisteredbindToRegistry, exit, init, isValid, remoteGet, unbindFromRegistrycreateParameter, delivers, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, overrideDefaultName, register, setName, toStringclone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, 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, parseObject, reload, removeProperty, requires, setObject, setProperties, setProperty, stringPropertiesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFormatted, getName, getString, setdefaultBoolean, 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, stringPropertiesinitremoteGetbindToRegistry, isValid, unbindFromRegistrypublic static final String KEY_WINDOW
public static final String KEY_EXTENSION
private static final Rectangle DEFWINDOW
private static final int DEFEXTENSION
private double aduzero
private double aduscale
protected double rescanned(String key, String old, String newval)
rescanned in class AbstractRemoteParameterprotected boolean processMFits(MFits fits, Rectangle readout, Dimension bin, Date when, long registered, double t)
Value.getValue() will retrieve the
daughter class value. The fits values extracted are zero and scale
corrected and promoted to doubles.processMFits in class AbstractFitsParameterfits - The fits object holding the datareadout - The readout framebin - The applied binningwhen - The time of the exposure or the register time, if dateobs
unknown.registered - The time this fits was registered.t - Exposure time in seconds.public Object get()
Parameter.get() to the Value.getValue()
method.public Number setValue(Number number)
Parameter.set(java.lang.Object) to the Value.setValue(java.lang.Number)
method. If the argument cannot be cast into a number or is null
an IllegalArgumentException is thrown.protected static double getMode(List<Double> adus, double aduwidth)
protected static double getSigmaFromLow(List<Double> adus, double mode)
protected static double getSignal(List<Double> adus, double exceed, double threshold)
protected List<Double> getAdus()
protected Rectangle getWindow()