LSST Applications g063fba187b+eddd1b24d7,g0f08755f38+4a855ab515,g1653933729+a8ce1bb630,g168dd56ebc+a8ce1bb630,g1a2382251a+062a45aee3,g1dcb35cd9c+45d3fa5522,g20f6ffc8e0+4a855ab515,g217e2c1bcf+f55e51b560,g28da252d5a+7d8e536cc7,g2bbee38e9b+2d92fc7d83,g2bc492864f+2d92fc7d83,g3156d2b45e+6e55a43351,g32e5bea42b+625186cc6b,g347aa1857d+2d92fc7d83,g35bb328faa+a8ce1bb630,g3a166c0a6a+2d92fc7d83,g3e281a1b8c+c5dd892a6c,g3e8969e208+a8ce1bb630,g414038480c+5927e1bc1e,g41af890bb2+1af189bab1,g7af13505b9+7b6a50a2f8,g80478fca09+6174b7f182,g82479be7b0+5b71efbaf0,g858d7b2824+4a855ab515,g9125e01d80+a8ce1bb630,ga5288a1d22+61618a97c4,gb58c049af0+d64f4d3760,gc28159a63d+2d92fc7d83,gc5452a3dca+f4add4ffd5,gcab2d0539d+d9f5af7f69,gcf0d15dbbd+6c7e0a19ec,gda6a2b7d83+6c7e0a19ec,gdaeeff99f8+1711a396fd,ge79ae78c31+2d92fc7d83,gef2f8181fd+55fff6f525,gf0baf85859+c1f95f4921,gfa517265be+4a855ab515,gfa999e8aa5+17cd334064,w.2024.51
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
lsst::jointcal::ProperMotion Class Reference

Proper motion data for a reference star or fitted star. More...

#include <ProperMotion.h>

Public Member Functions

 ProperMotion (double ra, double dec, double raErr, double decErr, double raDecCov=0)
 
 ProperMotion (ProperMotion const &)=default
 
 ProperMotion (ProperMotion &&)=default
 
ProperMotionoperator= (ProperMotion const &)=default
 
ProperMotionoperator= (ProperMotion &&)=default
 
 ~ProperMotion ()=default
 
Point apply (const Point &star, double timeDeltaYears) const
 Apply proper motion correction to the input star, returning a star with PM-corrected coordinates.
 

Friends

std::ostreamoperator<< (std::ostream &stream, ProperMotion const &pm)
 

Detailed Description

Proper motion data for a reference star or fitted star.

Whether to just use these values or fit them is determined by the RefStar and FittedStar they belong to.

Units are radians/year Note: RA proper motion is pm_ra*cos(dec)

Definition at line 45 of file ProperMotion.h.

Constructor & Destructor Documentation

◆ ProperMotion() [1/3]

lsst::jointcal::ProperMotion::ProperMotion ( double ra,
double dec,
double raErr,
double decErr,
double raDecCov = 0 )
inline

Definition at line 47 of file ProperMotion.h.

48 : _ra(ra), _dec(dec), _raErr(raErr), _decErr(decErr), _raDecCov(raDecCov) {
49 _offsetBearing = atan2(dec, ra);
50 };
double dec
Definition Match.cc:41
T atan2(T... args)

◆ ProperMotion() [2/3]

lsst::jointcal::ProperMotion::ProperMotion ( ProperMotion const & )
default

◆ ProperMotion() [3/3]

lsst::jointcal::ProperMotion::ProperMotion ( ProperMotion && )
default

◆ ~ProperMotion()

lsst::jointcal::ProperMotion::~ProperMotion ( )
default

Member Function Documentation

◆ apply()

Point lsst::jointcal::ProperMotion::apply ( const Point & star,
double timeDeltaYears ) const

Apply proper motion correction to the input star, returning a star with PM-corrected coordinates.

NOTE: This method does not apply to the coordinate errors (Point does not include uncertainty).

Parameters
starThe star to correct for this proper motion.
timeDeltaYearsThe difference in time from the correction epoch to correct for, in years.
Returns
The star with corrected coordinates.

Definition at line 34 of file ProperMotion.cc.

34 {
35 geom::SpherePoint spherePoint(star.x, star.y, geom::degrees);
36 double amount = std::hypot(_ra * timeDeltaYears, _dec * timeDeltaYears);
37 // If delta-time is negative, the correction is in the opposite direction.
38 amount = timeDeltaYears < 0 ? -amount : amount;
39 auto result = spherePoint.offset(_offsetBearing * geom::radians, amount * geom::radians);
40 Point newStar(star);
41 newStar.x = result.getRa().asDegrees();
42 newStar.y = result.getDec().asDegrees();
43 return newStar;
44}
py::object result
Definition _schema.cc:429
Point in an unspecified spherical coordinate system.
Definition SpherePoint.h:57
T hypot(T... args)
AngleUnit constexpr degrees
constant with units of degrees
Definition Angle.h:110
AngleUnit constexpr radians
constant with units of radians
Definition Angle.h:109

◆ operator=() [1/2]

ProperMotion & lsst::jointcal::ProperMotion::operator= ( ProperMotion && )
default

◆ operator=() [2/2]

ProperMotion & lsst::jointcal::ProperMotion::operator= ( ProperMotion const & )
default

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & stream,
ProperMotion const & pm )
friend

Definition at line 46 of file ProperMotion.cc.

46 {
47 stream << "pm_ra*cos(dec)=" << pm._ra << "rad/yr, pm_dec=" << pm._dec << "rad/yr, pm_raErr=" << pm._raErr
48 << "rad/yr, pm_decErr=" << pm._decErr << "rad/yr, pm_raDecCov=" << pm._raDecCov;
49 return stream;
50}

The documentation for this class was generated from the following files: