|
17 | 17 | from ..utils import deprecated |
18 | 18 |
|
19 | 19 |
|
20 | | -__all__ = ['Angle', 'AngularSeparation', 'Latitude', 'Longitude', |
21 | | - 'hour_angle_to_lst', 'lst_to_hour_angle'] |
| 20 | +__all__ = ['Angle', 'AngularSeparation', 'Latitude', 'Longitude'] |
22 | 21 |
|
23 | 22 |
|
24 | 23 | TWOPI = math.pi * 2.0 # no need to calculate this all the time |
@@ -795,52 +794,3 @@ def angle_axis(matrix, unit=None): |
795 | 794 | if unit is None: |
796 | 795 | unit = u.degree |
797 | 796 | return angle.to(unit), axis |
798 | | - |
799 | | - |
800 | | -def lst_to_hour_angle(ra, lst): |
801 | | - """ |
802 | | - Computes the hour angle for this RA given a local sidereal |
803 | | - time (LST). |
804 | | -
|
805 | | - Parameters |
806 | | - ---------- |
807 | | - lst : `~astropy.coordinates.angle.Angle` or equivalent, `~astropy.time.Time` |
808 | | - A local sidereal time (LST). |
809 | | -
|
810 | | - Returns |
811 | | - ------- |
812 | | - hour_angle : `~astropy.coordinates.angle.Angle` |
813 | | - The hour angle for this RA at the LST. |
814 | | - """ |
815 | | - if not isinstance(ra, Angle): |
816 | | - ra = Angle(ra) |
817 | | - if hasattr(lst, 'mjd'): |
818 | | - lst = Angle(np.remainder(lst.mjd, 1), unit=u.hour) |
819 | | - else: |
820 | | - lst = Angle(lst) |
821 | | - |
822 | | - return np.mod(lst - ra, 24. * u.hourangle) |
823 | | - |
824 | | - |
825 | | -def hour_angle_to_lst(ra, hour_angle): |
826 | | - """ |
827 | | - Calculates the local sidereal time (LST) if this RA is at a |
828 | | - particular hour angle. |
829 | | -
|
830 | | - Parameters |
831 | | - ---------- |
832 | | - ra : `astropy.coordinates.angle.Angle` or equivalent |
833 | | - hour_angle : `~astropy.coordinates.angle.Angle` or equivalent |
834 | | - An hour angle. |
835 | | -
|
836 | | - Returns |
837 | | - ------- |
838 | | - lst : `~astropy.coordinates.angle.Angle` |
839 | | - The local siderial time for this RA and hour_angle as an angle. |
840 | | - """ |
841 | | - if not isinstance(ra, Angle): |
842 | | - ra = Angle(ra) |
843 | | - if not isinstance(hour_angle, Angle): |
844 | | - hour_angle = Angle(hour_angle) |
845 | | - |
846 | | - return np.mod(hour_angle + ra, 24 * u.hourangle) |
0 commit comments