Skip to content

Commit ecbabb2

Browse files
authored
Merge pull request #19 from altuson/STO_angle
Update phase angle
2 parents 7404c21 + 79ed9ee commit ecbabb2

File tree

7 files changed

+75
-73
lines changed

7 files changed

+75
-73
lines changed

.github/workflows/flake8.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ jobs:
77
runs-on: ubuntu-latest
88
name: flake8
99
steps:
10-
- uses: actions/checkout@v1
10+
- uses: actions/checkout@v4
1111
- name: Set up Python 3.9
12-
uses: actions/setup-python@v1
12+
uses: actions/setup-python@v5
1313
with:
1414
python-version: 3.9
1515
- name: Install dependencies

.github/workflows/mypy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ jobs:
77
runs-on: ubuntu-latest
88
name: mypy
99
steps:
10-
- uses: actions/checkout@v1
10+
- uses: actions/checkout@v4
1111
- name: Set up Python 3.9
12-
uses: actions/setup-python@v1
12+
uses: actions/setup-python@v5
1313
with:
1414
python-version: 3.9
1515
- name: Install dependencies

README.rst

Lines changed: 63 additions & 61 deletions
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "tess-ephem"
3-
version = "0.6.3"
3+
version = "0.6.4"
44
description = "Where are Solar System objects located in TESS FFI data?"
55
license = "MIT"
66
authors = ["Geert Barentsen <hello@geert.io>",

src/tess_ephem/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66

77
from .ephem import TessEphem, ephem # noqa: E402
88

9-
__version__ = "0.6.3"
9+
__version__ = "0.6.4"
1010
__all__ = ["ephem", "TessEphem"]

src/tess_ephem/ephem.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ def __init__(
6969
self._deltaf = CubicSpline(eph["datetime_jd"], eph["delta"])
7070
# Delta-T (TDB - UT)
7171
self._deltat = CubicSpline(eph["datetime_jd"], eph["TDB-UT"])
72-
# Phase angle
73-
self._phif = CubicSpline(eph["datetime_jd"], eph["alpha_true"])
72+
# Sun-Target-Observer (~phase) angle
73+
self._alphaf = CubicSpline(eph["datetime_jd"], eph["alpha"])
7474
# Motion expressed in TESS pixels per hour
7575
motion = (
7676
np.hypot(eph["RA_rate"].quantity, eph["DEC_rate"].quantity)
@@ -105,7 +105,7 @@ def predict_sky(self, time: Time) -> DataFrame:
105105
H = np.full(len(time.jd), np.nan)
106106
r = self._rf(time.jd)
107107
delta = self._deltaf(time.jd)
108-
phi = self._phif(time.jd)
108+
sto_angle = self._alphaf(time.jd)
109109
motion = self._motionf(time.jd)
110110
deltat = self._deltat(time.jd)
111111
return DataFrame(
@@ -119,7 +119,7 @@ def predict_sky(self, time: Time) -> DataFrame:
119119
"hmag": H,
120120
"sun_distance": r,
121121
"obs_distance": delta,
122-
"phase_angle": phi,
122+
"sto_angle": sto_angle,
123123
}
124124
)
125125

@@ -288,7 +288,7 @@ def _get_horizons_ephem(
288288
step: str = "12H",
289289
id_type: str = "smallbody",
290290
location: str = "@TESS",
291-
quantities: str = "1,3,9,19,20,30,43",
291+
quantities: str = "1,3,9,19,20,24,30",
292292
):
293293
"""Returns JPL Horizons ephemeris.
294294

tests/test_ephem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_predict():
4949
# 2. using tessrip to get average WCS from sector/camera/ccd
5050
# 3. converting RA,Dec to col,row with wcs_world2pix()
5151
assert np.round(pixel_locations.iloc[0]["row"], 1) == 1107.6
52-
assert np.round(pixel_locations.iloc[0]["column"], 1) == 1087.8
52+
assert np.round(pixel_locations.iloc[0]["column"], 1) == 1087.9
5353

5454

5555
def test_orbital_elements():

0 commit comments

Comments
 (0)