Fast lookup of TESS mission SPOC and TESS-SPOC TCE Data Validation (DV) reports
Project description
TESS TCE Data Validation (DV) Reports Fast Lookup
A Python package / webapp that provides a fast lookup of TESS threshold crossing event (TCE) data validation reports from SPOC (2 minute cadence) pipeline and TESS-SPOC (FFI / HLSP) pipeline.
For SPOC, it also provides a summary of key TCE parameters, e.g. looking up all the TCEs for pi Men / TIC 261136679:
Installation
Install the package into your Python environment:
# include the web application
pip install ."[webapp,build_db]"
# Or just the core package:
# * build_db is needed to create the database.
pip install ."[build_db]"
For development: install the package in editable mode:
pip install -e ."[webapp,build_db,dev]"
Download the required data and build the local database:
python -m tess_dv_fast.tess_dv_fast_build --update --minimal_db
python -m tess_dv_fast.tess_spoc_dv_fast_build --update
Start the webapp:
flask --app tess_dv_fast.tess_dv_fast_webapp run
You are done! The app will be available at http://localhost:5000/tces .
Notes:
-
To change the port of the webapp, add
-p <port_number>to theflaskcommand. -
The package downloads the data from MAST and creates local SQLite databases under
./data/tess_dv_fast/by default. To use a different base directory, setTESS_DB_BASE_PATHbefore running the build commands, for example:export TESS_DB_BASE_PATH=/path/to/base
The resulting database files will then be located at
$TESS_DB_BASE_PATH/data/tess_dv_fast/tess_tcestats.db(SPOC) and$TESS_DB_BASE_PATH/data/tess_dv_fast/tess_spoc_tcestats.db(TESS-SPOC). -
For SPOC, the SQLite database contains a minimal set of data needed to support the webapp. Optionally, you could create a database with all the TCE parameters provided by MAST by omitting
--minimal_db. -
It is tested on Python 3.10, but should be compatible with any recent Python 3 versions.
Adding new data
The package relies on TCE bulk download data provided by MAST. When new data is available, the local database needs to be updated.
-
In
tess_dv_fast_spec.py(SPOC),- update
sources_tcestats_single_sectorandsources_tcestats_multi_sectorto include the URLs of the new TCEcsvfiles at: https://archive.stsci.edu/tess/bulk_downloads/bulk_downloads_tce.html . - update
sources_dv_sh_single_sectorandsources_dv_sh_multi_sectorto include the URLs of the new DV downloadshfiles at: https://archive.stsci.edu/tess/bulk_downloads/bulk_downloads_ffi-tp-lc-dv.html .
- update
-
In
tess_spoc_fast_spec.py(TESS-SPOC),- update
sources_dv_sh_single_sectorandsources_dv_sh_multi_sectorto include the URLs of the new DV downloadshfiles at: https://archive.stsci.edu/hlsp/tess-spoc .
- update
-
Update the database:
python -m tess_dv_fast.tess_dv_fast_build --update --minimal_db
python -m tess_dv_fast.tess_spoc_dv_fast_build --update
Deploying the app to cloud environments
- Instructions for Google Cloud Run deployment.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tess_dv_fast-0.10.0.post20260710.tar.gz.
File metadata
- Download URL: tess_dv_fast-0.10.0.post20260710.tar.gz
- Upload date:
- Size: 27.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ce159d8e18eacde0e72e3ead581b96e9f8113e237413cdb19d4a16e68300ea2
|
|
| MD5 |
177942dc60189568cb5731c828836d57
|
|
| BLAKE2b-256 |
cb465c60b4c94effaa7871bfe4ea09c3fda56bd9417f3c52f98ac9ad65389717
|
File details
Details for the file tess_dv_fast-0.10.0.post20260710-py3-none-any.whl.
File metadata
- Download URL: tess_dv_fast-0.10.0.post20260710-py3-none-any.whl
- Upload date:
- Size: 29.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32d725e29e940f266a48ccf4836148cfd5685e27796e421696a5187401187e27
|
|
| MD5 |
a1076913e914459ed77628c98886e91a
|
|
| BLAKE2b-256 |
75d8a626b8892a69ce3b6da58fb335a231798070c0e7c24cb7e7b1ce3ca55526
|