-
craftutils.observation.epoch.SkyCoord.apply_space_motion(new_obstime=
None, dt=None) Compute the position of the source represented by this coordinate object to a new time using the velocities stored in this object and assuming linear space motion (including relativistic corrections). This is sometimes referred to as an “epoch transformation.”
The initial time before the evolution is taken from the
obstimeattribute of this coordinate. Note that this method currently does not support evolving coordinates where the frame has anobstimeframe attribute, so theobstimeis only used for storing the before and after times, not actually as an attribute of the frame. Alternatively, ifdtis given, anobstimeneed not be provided at all.Parameters¶
- new_obstime~astropy.time.Time, optional
The time at which to evolve the position to. Requires that the
obstimeattribute be present on this frame.- dt~astropy.units.Quantity, ~astropy.time.TimeDelta, optional
An amount of time to evolve the position of the source. Cannot be given at the same time as
new_obstime.
Returns¶
- new_coord|SkyCoord|
A new coordinate object with the evolved location of this coordinate at the new time.
obstimewill be set on this object to the new time only ifselfalso hasobstime.