Skip to content

Commit

Permalink
ssb_to_psb_xyz_ICRS
Browse files Browse the repository at this point in the history
  • Loading branch information
abhisrkckl committed Sep 24, 2023
1 parent d3c7be9 commit c22a006
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/pint/models/astrometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,9 +453,11 @@ def ssb_to_psb_xyz_ICRS(self, epoch=None):
ra = ra0 + pmra * dt / np.cos(dec0)
dec = dec0 + pmdec * dt

return u.Quantity(
[np.cos(dec) * np.cos(ra), np.cos(dec) * np.sin(ra), np.sin(dec)]
).T
ra = ra.to_value(u.rad)
dec = dec.to_value(u.rad)

cos_dec = np.cos(dec)
return u.Quantity([cos_dec * np.cos(ra), cos_dec * np.sin(ra), np.sin(dec)]).T

def get_params_as_ICRS(self):
return {
Expand Down

0 comments on commit c22a006

Please sign in to comment.