No project description provided
Project description
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!
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
Built Distribution
File details
Details for the file tesswcs-1.1.3.tar.gz
.
File metadata
- Download URL: tesswcs-1.1.3.tar.gz
- Upload date:
- Size: 890.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.9.13 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a84ccdcc03c08aba6a33f6cdf921c1656919d064befd386d81f9254769cf95d |
|
MD5 | 1819c9aebb0d4153152d968e226e5e69 |
|
BLAKE2b-256 | 0f08b6d6eb5f707581ce4eb4c5e56a4ddb39509f3a1d11c166ad58e0c6411c51 |
Provenance
File details
Details for the file tesswcs-1.1.3-py3-none-any.whl
.
File metadata
- Download URL: tesswcs-1.1.3-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a183085b6dd5c6c660b765a315c35a92656129240d282dfbb60a1c0a24de469 |
|
MD5 | a38a68423a6d288ca1f18448b9a89502 |
|
BLAKE2b-256 | 604542f1d6b7f115bb10c946934257e1ae56820a7a2a029d6e3512d76b8f58fd |