Skip to main content

Fast offline queries of TESS FFI positions and filenames.

Project description

Fast offline queries of TESS FFI positions and url’s.

pypi pytest black flake8 mypy

tess-locator is a user-friendly package which provides fast offline access to an embedded database of TESS Full-Frame Image (FFI) meta data. It allows TESS pixel coordinates and FFI filenames to be queried in a fast way without requiring internet access.

Installation

python -m pip install tess-locator

Example use

Converting celestial to pixel coordinates:

>>> from tess_locator import locate
>>> locate("Alpha Cen")
List of 2 coordinates
[TessCoord(sector=11, camera=2, ccd=2, column=1700.2, row=1860.3, time=None)
  TessCoord(sector=12, camera=2, ccd=1, column=360.7, row=1838.8, time=None)]

Obtaining pixel coordinates for a specific time:

>>> locate("Alpha Cen", time="2019-04-28")
List of 1 coordinates
[TessCoord(sector=11, camera=2, ccd=2, column=1700.2, row=1860.3, time=2019-04-28 00:00:00)]

Obtaining FFI image meta data:

>>> locate("Alpha Cen")[0].get_images()
List of 1248 images
[TessImage(filename='tess2019113062933-s0011-2-2-0143-s_ffic.fits', begin='2019-04-23 06:34:41', end='2019-04-23 07:04:41')
  TessImage(filename='tess2019113065933-s0011-2-2-0143-s_ffic.fits', begin='2019-04-23 07:04:41', end='2019-04-23 07:34:41')
  TessImage(filename='tess2019113072933-s0011-2-2-0143-s_ffic.fits', begin='2019-04-23 07:34:41', end='2019-04-23 08:04:41')
  TessImage(filename='tess2019113075933-s0011-2-2-0143-s_ffic.fits', begin='2019-04-23 08:04:41', end='2019-04-23 08:34:41')
  ...
  TessImage(filename='tess2019140065932-s0011-2-2-0143-s_ffic.fits', begin='2019-05-20 07:05:08', end='2019-05-20 07:35:08')
  TessImage(filename='tess2019140072932-s0011-2-2-0143-s_ffic.fits', begin='2019-05-20 07:35:08', end='2019-05-20 08:05:08')
  TessImage(filename='tess2019140075932-s0011-2-2-0143-s_ffic.fits', begin='2019-05-20 08:05:08', end='2019-05-20 08:35:08')
  TessImage(filename='tess2019140082932-s0011-2-2-0143-s_ffic.fits', begin='2019-05-20 08:35:08', end='2019-05-20 09:05:08')]

Documentation

Please visit the tutorial.

Similar packages

  • tess-point uses a theoretical pointing model rather than the WCS data. It should agree with the WCS results to within 1-2 pixels. Compared to tess-point, we add a user-friendly API and the ability to specify the time, which is important for moving objects.

  • astroquery.mast includes the excellent TesscutClass.get_sectors() method which queries a web API. This package provides an offline version of that service, and adds the ability to query by time.

  • tess-waldo lets you visualize how a target moves over the detector across sectors. It queries the TessCut service to obtain this information. This package adds the ability to create such plots offline.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tess-locator-0.2.1.tar.gz (8.4 MB view details)

Uploaded Source

Built Distribution

tess_locator-0.2.1-py3-none-any.whl (8.4 MB view details)

Uploaded Python 3

File details

Details for the file tess-locator-0.2.1.tar.gz.

File metadata

  • Download URL: tess-locator-0.2.1.tar.gz
  • Upload date:
  • Size: 8.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.6 Darwin/20.3.0

File hashes

Hashes for tess-locator-0.2.1.tar.gz
Algorithm Hash digest
SHA256 67f8d2b68d1234afacefea2efa4dd857cf78271839bda5f9f70945dde6fff7db
MD5 53d088fb2455045db53a66aa249bd9a2
BLAKE2b-256 d70dbea3cbfc96558257b35249bd751dc7797a700de42f74dcbba4f763bda2c8

See more details on using hashes here.

File details

Details for the file tess_locator-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: tess_locator-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.6 Darwin/20.3.0

File hashes

Hashes for tess_locator-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 179020637ed7f3158b2c146ff6b722f32311b0c4a568b1221ed61eb04bd63dd3
MD5 d76ad862d8e63e3e44edc015e86159ce
BLAKE2b-256 c684cbd272da89b5542fd131bfc4b2475a6d13394c644e1dc9ac0d642fa5ed0a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page