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.0.tar.gz
.
File metadata
- Download URL: tesswcs-1.1.0.tar.gz
- Upload date:
- Size: 890.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.9.18 Linux/6.2.0-1016-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0eebf6ac4ca44ef9d042561a87dda023438abfddb8c61b6e0b15c7e9235dc72f |
|
MD5 | 09552b667e40c8055b37fd92030d63d8 |
|
BLAKE2b-256 | 06745ced3582f9f6db90ee41e5c3ade46eea6f96eb2676f0c3062b877f072b77 |
File details
Details for the file tesswcs-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: tesswcs-1.1.0-py3-none-any.whl
- Upload date:
- Size: 890.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.9.18 Linux/6.2.0-1016-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed271bd9345c3c45464e39f8c4bc314d018cb5f1d88ad87551b880ade88218e0 |
|
MD5 | c5d4983bd16cf492e38dffd4c5720fa0 |
|
BLAKE2b-256 | 4baca17d099f221b3c376b8e3703a51aa1031b619dc23bee83735d3288a06fc7 |