Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
765a3fe
Photometry returns dicts
altuson Dec 10, 2025
816a070
Make _make_tpf_hdulist general
altuson Dec 10, 2025
2e0cb0c
Make _make_lc_hdulist general
altuson Dec 10, 2025
1e13480
Add aperture params to header
altuson Dec 12, 2025
0552a3a
Mag calculation in phot functions
altuson Dec 12, 2025
4bc90c9
Attribute checks
altuson Dec 15, 2025
2875ca6
Update tests
altuson Dec 15, 2025
889a9f1
Update docstrings
altuson Dec 15, 2025
975e2e5
Bump version
altuson Dec 16, 2025
c56222e
Add test for multiple apertures
altuson Dec 16, 2025
5dd39da
Update readme
altuson Dec 16, 2025
ca334a9
Update tutorial notebooks
altuson Dec 16, 2025
3a7cac0
Update tutorial notebooks
altuson Dec 16, 2025
e3ba7e3
PSF photometry bug fix
altuson Dec 18, 2025
af4ff67
Add checksum
altuson Jan 5, 2026
7e0ffa5
Add ephem_date
altuson Jan 5, 2026
2f5d011
Remove stellar keywords
altuson Jan 6, 2026
004c9e7
Update missing values to none
altuson Jan 6, 2026
8d11a73
Update header of PIXELS ext
altuson Jan 6, 2026
1b7f13b
Remove RAW_CNTS
altuson Jan 6, 2026
7864af1
Remove RAW_CNTS
altuson Jan 6, 2026
445ad66
Re-order PIXELS header
altuson Jan 6, 2026
dc95aa3
Re-order PIXELS header
altuson Jan 6, 2026
a3de46a
Update APERTURE header
altuson Jan 6, 2026
61a9e90
Simplify header keywords from primary
altuson Jan 6, 2026
72e39d7
Ruff changes
altuson Jan 7, 2026
8bd8fc3
Make progress bar optional for PSF phot
altuson Jan 7, 2026
0262fc7
Update logger info
altuson Jan 7, 2026
88c0fff
Save diagnostic plots
altuson Jan 8, 2026
193c96f
Update logger info for create_aperture
altuson Jan 8, 2026
357191b
Add primary extname
altuson Jan 21, 2026
335af67
Update APERTURE HDU
altuson Jan 21, 2026
977a39e
Aperture variable name
altuson Jan 21, 2026
f1ce222
ruff changes
altuson Jan 21, 2026
b910e05
Merge main
altuson Jan 30, 2026
067c6ad
Update tutorial 2
altuson Jan 30, 2026
3a6e033
Update tutorial 1
altuson Jan 30, 2026
bcbbc08
Update figures
altuson Jan 30, 2026
21a280f
Update LC plot title
altuson Jan 30, 2026
1553c91
Fix test
altuson Jan 30, 2026
1133e00
Add flag for discontinuous aperture
altuson Feb 3, 2026
80c062b
docstring tidy
altuson Feb 3, 2026
158bff1
Create NPIX_STAR
altuson Feb 3, 2026
5c415c8
Fx missing header comments
altuson Feb 6, 2026
6843edf
Update backapp in TPF header
altuson Feb 6, 2026
9cf08ef
Add time keywords to LCF primary
altuson Feb 6, 2026
ead913e
Add RADESYS to LCF header
altuson Feb 9, 2026
cd3d9c3
Update missing mag_header
altuson Feb 10, 2026
5bbb53b
Add asymmetric magnitude errors
altuson Feb 11, 2026
1bf5cd5
Fix TESSmag test:
altuson Feb 11, 2026
b1eb075
Add columns to TPF EXTRAS
altuson Feb 11, 2026
b161e2f
Add r,delta,phi to LCF
altuson Feb 20, 2026
ac7ac5f
Replace phase angle with STO
altuson Feb 24, 2026
97f1d3d
ruff changes
altuson Feb 24, 2026
d78e50c
Update tess-ephem version
altuson Feb 25, 2026
7aecaeb
New test file for utils
altuson Feb 25, 2026
d485a32
Update README
altuson Feb 25, 2026
63a3435
Update tutorials
altuson Feb 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,15 @@ The TPF has four HDUs:

- "PRIMARY" - a primary HDU containing only a header.
- "PIXELS" - a table with the same columns as a SPOC TPF. Note that "POS_CORR1" and "POS_CORR2" are defined as the offset between the center of the TPF and the expected position of the moving object given the input ephemeris.
- "APERTURE" - an image HDU containing the average aperture across all times.
- "APERTURE" - an image HDU containing the flattened aperture i.e. all pixels that are included in the time-dependent aperture at least once.
- "EXTRAS" - a table HDU containing columns not found in a SPOC TPF. This includes "RA_PRED"/"DEC_PRED" (expected position of target in world coordinates), "CORNER1"/"CORNER2" (original FFI column/row of the lower-left pixel in the TPF), "PIXEL_QUALITY" (3D pixel quality flags identifying e.g. strap columns, non-science pixels and saturation), "APERTURE" (aperture as a function of time) and "ORIGINAL_TIME"/"ORIGINAL_TIMECORR" (time and barycentric correction derived by SPOC).

The LCF has two or three HDUs (depending upon which lightcurves you created):
The LCF has three or four HDUs (depending upon which lightcurves you created):

- "PRIMARY" - a primary HDU containing only a header.
- "LIGHTCURVE_AP" - a table HDU containing the aperture photomety light curve, with columns including "TIME" (timestamps in BTJD), "FLUX"/"FLUX_ERR" (flux and error from aperture photometry) and "TESSMAG"/"TESSMAG_ERR" (measured TESS magnitude and error).
- "LIGHTCURVE_PSF" - a table HDU containing the PSF photomety light curve, with columns including "TIME" (timestamps in BTJD), "FLUX"/"FLUX_ERR" (flux and error from PSF photometry) and "TESSMAG"/"TESSMAG_ERR" (measured TESS magnitude and error).
- "LIGHTCURVE_AP" - a table HDU containing the aperture photomety light curve, with columns including "TIME" (timestamps in BTJD), "FLUX"/"FLUX_ERR" (flux and error from aperture photometry) and "AP_QUALITY" (light curve quality flags).
- "LIGHTCURVE_PSF" - a table HDU containing the PSF photomety light curve, with columns including "TIME" (timestamps in BTJD), "FLUX"/"FLUX_ERR" (flux and error from PSF photometry) and "PSF_QUALITY" (light curve quality flags).
- "EXTRAS" - a table HDU containing extra information, with columns including "RA_PRED"/"DEC_PRED" (expected position of target in world coordinates), "CORNER1"/"CORNER2" (original FFI column/row of the lower-left pixel in the TPF), "ORIGINAL_TIME"/"ORIGINAL_TIMECORR" (time and barycentric correction derived by SPOC) and "SUN_DISTANCE"/"OBS_DISTANCE"/"STO_ANGLE" (distance from Sun [AU] / distance from observer (TESS) [AU] / Sun-Target-Observer angle [deg]).

## Citation

Expand Down
Binary file modified docs/tess-1980VR1-s0001-1-1-shape11x11-moving_tp.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/tess-1980VR1-s0001-1-1-shape11x11_lc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/tess-1998YT6-s0006-1-1-shape11x11-moving_tp.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/tess-1998YT6-s0006-1-1-shape11x11_lc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
175,095 changes: 81,638 additions & 93,457 deletions docs/tutorials/tutorial1_basics.ipynb

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions docs/tutorials/tutorial2_rotation_periods.ipynb

Large diffs are not rendered by default.

353 changes: 353 additions & 0 deletions docs/tutorials/tutorial3_multiple_apertures.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ nav:
- Tutorials:
- Tutorial 1 - Basics: tutorials/tutorial1_basics.ipynb
- Tutorial 2 - Measuring rotation period: tutorials/tutorial2_rotation_periods.ipynb
- Tutorial 3 - Multiple apertures: tutorials/tutorial3_multiple_apertures.ipynb

repo_url: https://github.com/altuson/tess-asteroids

Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "tess-asteroids"
version = "1.4.3"
version = "1.5.0"
description = "Create TPFs and LCs for solar system asteroids observed by NASA's TESS mission."
license = "MIT"
authors = ["Amy Tuson <amy.l.tuson@nasa.gov>",
Expand All @@ -11,7 +11,7 @@ packages = [{include = "tess_asteroids", from = "src"}]

[tool.poetry.dependencies]
python = ">=3.9, <3.13"
tess-ephem = "^0.6.3"
tess-ephem = "^0.6.4"
tesscube = "^1.2"
numpy = "^1.26.4"
pandas = "^2.0"
Expand Down
5 changes: 3 additions & 2 deletions src/tess_asteroids/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@
# Default bad bits for SPOC quality masking, as recommended in TESS archive manual
# (https://outerspace.stsci.edu/display/TESS/2.0+-+Data+Product+Overview)
default_bad_spoc_bits = [1, 2, 3, 4, 5, 6, 8, 10, 13, 15]
# Default bad bits for LC quality masking
# Default bad bits for LC quality masking: at least one pixel inside mask is non-science, saturated
# or negative raw flux.
default_bad_lc_bits = [2, 4, 10]

__version__ = "1.4.3"
__version__ = "1.5.0"
__all__ = ["MovingTPF"]

from .movingtpf import MovingTPF # noqa: E402
Loading