|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsky.science.AbstractScienceObject
jsky.science.Quantity
jsky.science.Flux
public class Flux
Various flux units. Supported currently fully supported are: fnu, flam, abmag, stmag, jy, mjy.
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).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class jsky.science.AbstractScienceObject |
---|
AbstractScienceObject.EventMonitor |
Field Summary | |
---|---|
static java.lang.String |
ABMAG
|
static java.lang.String |
ABMAGABBREV
|
static java.lang.String |
COUNTS
|
static java.lang.String |
COUNTSABBREV
|
static java.lang.String |
DEFAULTUNITS_PROPERTY
|
static java.lang.String |
FLAM
|
static java.lang.String |
FLAMABBREV
|
static java.lang.String |
FNU
|
static java.lang.String |
FNUABBREV
|
static java.lang.String |
JY
|
static java.lang.String |
JYABBREV
|
static java.lang.String |
MJY
|
static java.lang.String |
MJYABBREV
|
static java.lang.String |
OBMAG
|
static java.lang.String |
OBMAGABBREV
|
static java.lang.String |
PHOTLAM
|
static java.lang.String |
PHOTLAMABBREV
|
static java.lang.String |
PHOTNU
|
static java.lang.String |
PHOTNUABBREV
|
static java.lang.String |
STMAG
|
static java.lang.String |
STMAGABBREV
|
static java.lang.String |
VEGAMAG
|
static java.lang.String |
VEGAMAGABBREV
|
Fields inherited from class jsky.science.Quantity |
---|
fValue |
Fields inherited from interface jsky.science.ScienceObjectModel |
---|
NAME_PROPERTY, PENDING_PROPERTY, VALID_PROPERTY |
Constructor Summary | |
---|---|
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,
java.lang.String inUnits)
primary constructor |
Method Summary | |
---|---|
static void |
addDefaultUnitsChangeListener(java.beans.PropertyChangeListener listener)
|
static Wavelength1DArray |
convertWavelength1DModel(Wavelength1DModel inArray,
java.lang.String fromUnits,
java.lang.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,
java.lang.String fromUnits,
java.lang.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 java.lang.String |
getDefaultUnitsAbbrev()
|
double |
getValue(java.lang.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(java.beans.PropertyChangeListener listener)
|
protected void |
setValue(double inValue,
java.lang.String unitsName)
Sets the double value of a Flux with the specified units |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULTUNITS_PROPERTY
public static final java.lang.String FNU
public static final java.lang.String FNUABBREV
public static final java.lang.String FLAM
public static final java.lang.String FLAMABBREV
public static final java.lang.String PHOTNU
public static final java.lang.String PHOTNUABBREV
public static final java.lang.String PHOTLAM
public static final java.lang.String PHOTLAMABBREV
public static final java.lang.String ABMAG
public static final java.lang.String ABMAGABBREV
public static final java.lang.String STMAG
public static final java.lang.String STMAGABBREV
public static final java.lang.String JY
public static final java.lang.String JYABBREV
public static final java.lang.String MJY
public static final java.lang.String MJYABBREV
public static final java.lang.String COUNTS
public static final java.lang.String COUNTSABBREV
public static final java.lang.String OBMAG
public static final java.lang.String OBMAGABBREV
public static final java.lang.String VEGAMAG
public static final java.lang.String VEGAMAGABBREV
Constructor Detail |
---|
public Flux()
public Flux(double inValue)
public Flux(double inValue, java.lang.String inUnits)
inValue
- double of the actual FluxinUnits
- string containing the units in which the value is givenMethod Detail |
---|
public Quantity newInstance(double inValue)
newInstance
in class Quantity
public double getValue(java.lang.String unitsName)
double
containing current value in the specified units.
getValue
in class Quantity
protected void setValue(double inValue, java.lang.String unitsName)
setValue
in class Quantity
public static Wavelength1DArray convertWavelength1DModel(Wavelength1DModel inArray, java.lang.String fromUnits, java.lang.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, java.lang.String fromUnits, java.lang.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(java.beans.PropertyChangeListener listener)
public static void removeDefaultUnitsChangeListener(java.beans.PropertyChangeListener listener)
public static java.lang.String getDefaultUnitsAbbrev()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |