|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.astronomy.DopplerTracker
public class DopplerTracker
A calculator of frequency shifts due to the motion of a point on earth relative to a celestial source.
Version Info:
$Revision: 1994 $ |
$Date: 2009-02-23 09:03:44 -0700 (Mon, 23 Feb 2009) $ |
$Author: dharland $ (last person to modify) |
Constructor Summary | |
---|---|
DopplerTracker()
Creates a new Doppler tracker where the observer, sky position, and velocity are all non-null default values. |
|
DopplerTracker(EarthPosition observer)
Creates a new Doppler tracker for the given earth-bound observer. |
|
DopplerTracker(EarthPosition observer,
SkyPosition skyPosition)
Creates a new Doppler tracker for the given observer and celestial sky position. |
|
DopplerTracker(EarthPosition observer,
SkyPosition skyPosition,
LinearVelocity sourceVelocity,
VelocityFrame sourceFrame,
VelocityConvention velocityConvention)
Creates a new Doppler tracker with the given parameters. |
Method Summary | |
---|---|
LinearVelocity |
calculateRelativeVelocity(Date dateTime)
Calculates and returns the relative velocity between the earth-bound observer and celestial source held by this tracker. |
Frequency |
calculateShiftedFrequency(Frequency restFreq,
Date dateTime)
Returns a shifted frequency based on restFreq and the relative
velocity of the observer to the emitter at dateTime . |
EarthPosition |
getObserver()
Returns the position on earth whose velocity will be measured relative to a celestial source. |
SkyPosition |
getSkyPosition()
Returns the point on the celestial sphere against which the observer's velocity will be measured. |
LinearVelocity |
getSourceVelocity()
Returns the velocity of the celestial source, relative to the rest frame held by this object. |
VelocityConvention |
getVelocityConvention()
Returns the velocity convention used when shifting frequencies. |
VelocityFrame |
getVelocityFrame()
Returns the rest frame against which velocity values will be calculated. |
void |
setObserver(EarthPosition newObserver)
Sets the position on earth whose velocity will be measured relative to a celestial source. |
void |
setSkyPosition(SkyPosition newPosition)
Sets the point on the celestial sphere against which the observer's velocity will be measured. |
void |
setSource(SkyPosition newPosition,
LinearVelocity newVelocity,
VelocityFrame newFrame,
VelocityConvention newConvention)
A convenience method for setting the position and velocity of a celestial source. |
void |
setSourceVelocity(LinearVelocity newVelocity)
Sets the velocity of the celestial source, relative to the rest frame held by this object. |
void |
setSourceVelocity(LinearVelocity newVelocity,
VelocityFrame newFrame,
VelocityConvention newConvention)
A convenience method for setting the source velocity and frame. |
void |
setVelocityConvention(VelocityConvention newConvention)
Sets the velocity convention to use when shifting frequencies. |
void |
setVelocityFrame(VelocityFrame newFrame)
Sets the rest frame against which velocity values will be calculated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DopplerTracker(EarthPosition observer, SkyPosition skyPosition, LinearVelocity sourceVelocity, VelocityFrame sourceFrame, VelocityConvention velocityConvention)
observer
- a point on earth whose velocity relative to a celestial source
will be used for calculating Doppler frequency shifts.
See setObserver(EarthPosition)
for handling of
a null parameter value.skyPosition
- a point on the celestial sphere where a signal emitting source sits.
See setSkyPosition(SkyPosition)
for handling of
a null parameter value.sourceVelocity
- the velocity of the source at skyPosition
as measured
against the rest frame given by sourceFrame
.
See setSourceVelocity(LinearVelocity)
for handling of
a null parameter value.sourceFrame
- the rest frame against which the sourceVelocity
is measured.
See setVelocityFrame(VelocityFrame)
for handling of
a null parameter value.velocityConvention
- the velocity convention used for calculating shifted frequencies.
See setVelocityConvention(VelocityConvention)
for handling of
a null parameter value.public DopplerTracker()
public DopplerTracker(EarthPosition observer)
observer
- a point on earth whose velocity relative to a celestial source
will be used for calculating Doppler frequency shifts.
See setObserver(EarthPosition)
for handling of
a null parameter value.public DopplerTracker(EarthPosition observer, SkyPosition skyPosition)
observer
- a point on earth whose velocity relative to a celestial source
will be used for calculating Doppler frequency shifts.
See setObserver(EarthPosition)
for handling of
a null parameter value.skyPosition
- a point on the celestial sphere where a signal emitting source sits.
See setSkyPosition(SkyPosition)
for handling of
a null parameter value.Method Detail |
---|
public final void setObserver(EarthPosition newObserver)
newObserver
- a new point on earth.
If this value is null it will be replaced by
a newly created EarthPosition object.public final void setSkyPosition(SkyPosition newPosition)
newPosition
- a new point on the celestial sphere.
If this value is null it will be replaced by
a newly created SimpleSkyPosition object.public final void setVelocityFrame(VelocityFrame newFrame)
newFrame
- a new rest frame.
If this value is null it will be replaced by
VelocityFrame.TOPOCENTRIC.public final void setVelocityConvention(VelocityConvention newConvention)
newConvention
- a new velocity convention.
This value is permitted to be null. To see how this
affects calculations see
SpectralLine.getShiftedFrequency(LinearVelocity, VelocityConvention)
.public final void setSourceVelocity(LinearVelocity newVelocity)
newVelocity
- a new velocity for a celestial source.
If this value is null it will be replaced by
a newly created LinearVelocity object.public void setSourceVelocity(LinearVelocity newVelocity, VelocityFrame newFrame, VelocityConvention newConvention)
newVelocity
- see setSourceVelocity(LinearVelocity)
.newFrame
- see setVelocityFrame(VelocityFrame)
.newConvention
- see setVelocityConvention(VelocityConvention)
.public void setSource(SkyPosition newPosition, LinearVelocity newVelocity, VelocityFrame newFrame, VelocityConvention newConvention)
newPosition
- see setSkyPosition(SkyPosition)
.newVelocity
- see setSourceVelocity(LinearVelocity)
.newFrame
- see setVelocityFrame(VelocityFrame)
.newConvention
- see setVelocityConvention(VelocityConvention)
.public EarthPosition getObserver()
public SkyPosition getSkyPosition()
public VelocityFrame getVelocityFrame()
public VelocityConvention getVelocityConvention()
public LinearVelocity getSourceVelocity()
calculateRelativeVelocity(Date)
public LinearVelocity calculateRelativeVelocity(Date dateTime) throws CoordinateConversionException
dateTime
- the point in time for which the calculation is performed.
CoordinateConversionException
public Frequency calculateShiftedFrequency(Frequency restFreq, Date dateTime) throws CoordinateConversionException
restFreq
and the relative
velocity of the observer to the emitter at dateTime
.
restFreq
- a frequency as emitted by a source for which a shifted received
frequency is desired.dateTime
- the point in time for which the relative velocity calculation is
performed.
CoordinateConversionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |