public class Flux extends Quantity
Units of Counts, obmag, vegamag are coming, but will require conversion to be done on a whole wavelength vector at a time.
This code was developed by NASA, Goddard Space Flight Center, Code 588 for the Scientist's Expert Assistant (SEA) project for Next Generation Space Telescope (NGST).
AbstractScienceObject.EventMonitor
Modifier and Type | Field and Description |
---|---|
static String |
ABMAG |
static String |
ABMAGABBREV |
static String |
COUNTS |
static String |
COUNTSABBREV |
static String |
DEFAULTUNITS_PROPERTY |
static String |
FLAM |
static String |
FLAMABBREV |
static String |
FNU |
static String |
FNUABBREV |
static String |
JY |
static String |
JYABBREV |
static String |
MJY |
static String |
MJYABBREV |
static String |
OBMAG |
static String |
OBMAGABBREV |
static String |
PHOTLAM |
static String |
PHOTLAMABBREV |
static String |
PHOTNU |
static String |
PHOTNUABBREV |
static String |
STMAG |
static String |
STMAGABBREV |
static String |
VEGAMAG |
static String |
VEGAMAGABBREV |
NAME_PROPERTY, PENDING_PROPERTY, VALID_PROPERTY
Constructor and Description |
---|
Flux()
creates a default Redshift of length 0 with no name
|
Flux(double inValue)
creates a new Flux of specified value in the default units
|
Flux(double inValue,
String inUnits)
primary constructor
|
Modifier and Type | Method and Description |
---|---|
static void |
addDefaultUnitsChangeListener(PropertyChangeListener listener) |
static Wavelength1DArray |
convertWavelength1DModel(Wavelength1DModel inArray,
String fromUnits,
String toUnits)
This is the workhorse of the Flux class - returns a new wavelength1Darray
that converts an input Wavelength1DModel to the target units.
|
static Wavelength1DArray |
convertWavelength1DModel(Wavelength1DModel inArray,
String fromUnits,
String toUnits,
double mirrorArea)
This is the workhorse of the Flux class - returns a new wavelength1Darray
that converts an input Wavelength1DModel to the target units.
|
static String |
getDefaultUnitsAbbrev() |
double |
getValue(String unitsName)
Returns a
double containing current value in the specified units. |
Quantity |
newInstance(double inValue)
returns a new Flux (as a Quantity) with value as specified in
default units.
|
static void |
removeDefaultUnitsChangeListener(PropertyChangeListener listener) |
protected void |
setValue(double inValue,
String unitsName)
Sets the double value of a Flux with the specified units
|
add, addDefaultUnitsChangeListener, equals, fireDefaultUnitsChange, fireDefaultUnitsChange, getAllUnits, getAllUnits, getAllUnitsAbbrev, getAllUnitsAbbrev, getDefaultUnits, getDefaultUnits, getDefaultUnitsAbbrev, getDefaultUnitsProperty, getUnitsAbbrev, getUnitsIgnoreCase, getValue, hashCode, initializeSubClass, isInitialized, removeDefaultUnitsChangeListener, setDefaultUnits, toString, toString
addEventMonitor, addPropertyChangeListener, areNamesEqual, clearAllListeners, clone, compareTo, createDefaultName, firePropertyChange, firePropertyChange, fireReplaceObject, fireReplaceObject, fireReplaceObject, fireVetoableChange, fireVetoableChange, getException, getLabel, getName, getObjectIdString, getObjectIdString, getParent, isHolding, isPending, isTracing, isValid, notifyEventMonitors, propertyChange, removeEventMonitor, removePropertyChangeListener, replaceObject, replaceObjectNYI, setException, setHolding, setName, setParent, setTraceAll, setTracing, writeDebug, writeError
public static final String DEFAULTUNITS_PROPERTY
public static final String FNU
public static final String FNUABBREV
public static final String FLAM
public static final String FLAMABBREV
public static final String PHOTNU
public static final String PHOTNUABBREV
public static final String PHOTLAM
public static final String PHOTLAMABBREV
public static final String ABMAG
public static final String ABMAGABBREV
public static final String STMAG
public static final String STMAGABBREV
public static final String JY
public static final String JYABBREV
public static final String MJY
public static final String MJYABBREV
public static final String COUNTS
public static final String COUNTSABBREV
public static final String OBMAG
public static final String OBMAGABBREV
public static final String VEGAMAG
public static final String VEGAMAGABBREV
public Flux()
public Flux(double inValue)
public Flux(double inValue, String inUnits)
inValue
- double of the actual FluxinUnits
- string containing the units in which the value is givenpublic Quantity newInstance(double inValue)
newInstance
in class Quantity
public double getValue(String unitsName)
double
containing current value in the specified units.protected void setValue(double inValue, String unitsName)
public static Wavelength1DArray convertWavelength1DModel(Wavelength1DModel inArray, String fromUnits, String toUnits) throws UnitsNotSupportedException
Code for this routine was taken directly from the STSDAS Synphot source code, which is commented inline the source for reference
UnitsNotSupportedException
public static Wavelength1DArray convertWavelength1DModel(Wavelength1DModel inArray, String fromUnits, String toUnits, double mirrorArea) throws UnitsNotSupportedException
Code for this routine was taken directly from the STSDAS Synphot source code, which is commented inline the source for reference
UnitsNotSupportedException
public static void addDefaultUnitsChangeListener(PropertyChangeListener listener)
public static void removeDefaultUnitsChangeListener(PropertyChangeListener listener)
public static String getDefaultUnitsAbbrev()
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.