Giter Club home page Giter Club logo

tesswcs's Introduction

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

tesswcs's People

Contributors

christinahedges avatar altuson avatar

Stargazers

 avatar Nikoo Hosseininejad avatar Isabel Colman avatar Ujjwal Panda avatar Luke Bouma avatar  avatar Jorge Martínez-Palomera avatar Zach Claytor avatar Ben Cassese avatar Stephanie Douglas avatar Daniel avatar

Watchers

 avatar

Forkers

altuson mrtommyb

tesswcs's Issues

This package should ideally include a way to access all the WCS for the FFIs

The TESS Full Frame Images each have an individual WCS. This is because, as TESS orbits the earth which orbits the sun, stars in the focal plane are aberrated in time and position. The FFI for each frame has a slightly different WCS to account for this. It is sometimes useful to have this updated, aberrated WCS. An example would be solar system objects, which can change their position in the focal plane significantly over a sector.

An ideal feature might let us do something like this;

WCS.from_archive(sector=1, camera=1, ccd=1, cadence_number=100)

To get the WCS for a particular frame. A stretch goal would be

WCS.from_archive(sector=1, camera=1, ccd=1, time="2020-07-25T10:20:01")

Which would have to somehow interpolate the WCS to the correct time, and would need to check the time was within the requested sector.

`tesswcs` needs to contain the logic to build the necessary files containing the WCS.

tesswcs uses information from the FFI fits files from TESS, which have been munged into data cubes by MAST and hosted in the cloud. The files to run tesswcs are created based on information scraped out of those files using tessrip. tessrip is under-development and isn't stable enough to be a dependency.

We need a way to
a) document how the files are made
b) create new files as TESS continues to observe
c) potentially have a CI action to create new files every few months

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.