Skip to main content

No project description provided

Project description

Test status Generic badge PyPI version

tesswcs logo

tesswcs

This package will enable you to create an astropy World Coordinate System for any pointing of the TESS telescope. You can access both the true WCS from archival data, and predict the WCS for a given RA, Dec, and spacecraft roll.

Installation

You can install tesswcs using pip

pip install --upgrade tesswcs

Usage

Below is an example of how to obtain a WCS for archival data

import tesswcs

wcs = tesswcs.WCS.from_archive(sector=1, camera=1, ccd=1)

Using astropy's WCS interface you can now either work with this object, for example you can obtain the sky position of row and column positions

wcs.pixel_to_world(row, column)

or obtain row and column positions from sky positions (using the astropy.coordinates.SkyCoord object).

from astropy.coordinates import SkyCoord
wcs.world_to_pixel(SkyCoord.from_name("HD 209458"))

You can also save these objects to fits files

wcs.to_fits('wcs.fits')

If you have a RA, Dec and roll in degrees you can also predict a WCS

import tesswcs

wcs = tesswcs.WCS.predict(ra=0, dec=0, roll=0, camera=1, ccd=1)

You can use tesswcs to better understand what sources will be obervable on TESS pixels, or to make figures like the ones below!

Figure showing the predicted TESS WCS

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

tesswcs-1.1.4.tar.gz (890.8 kB view details)

Uploaded Source

Built Distribution

tesswcs-1.1.4-py3-none-any.whl (890.5 kB view details)

Uploaded Python 3

File details

Details for the file tesswcs-1.1.4.tar.gz.

File metadata

  • Download URL: tesswcs-1.1.4.tar.gz
  • Upload date:
  • Size: 890.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.13 Darwin/23.5.0

File hashes

Hashes for tesswcs-1.1.4.tar.gz
Algorithm Hash digest
SHA256 d8cf1352c0f03259be6856c879934a704beb12f44b8424a3a169b9e9045c3f89
MD5 e6cc39149648af42f5c07c64214e18f7
BLAKE2b-256 e4727257d05a46ef9014823f579c9318386f74a08d9b37f0177cfab4fae68db7

See more details on using hashes here.

Provenance

File details

Details for the file tesswcs-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: tesswcs-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 890.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.13 Darwin/23.5.0

File hashes

Hashes for tesswcs-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ce28fb9e7935fbce34ae23216eaf81520494011cd6b3f77906f7493a58a92654
MD5 2852d5f38a1904c41b73b3cc2521c867
BLAKE2b-256 8ff0dc06f3f9487b696d0f32202022855fd002a7a5e50a19024b44f89f23cf02

See more details on using hashes here.

Provenance

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