Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Vectorized tess-point in Python #12

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,5 @@ venv.bak/

# mypy
.mypy_cache/

sandbox/
29 changes: 27 additions & 2 deletions README.md → docs/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
# This branch contains a vectorized version of `tess-point`!

This is an attempt to 1) make this tool faster by using Python niceties 2) make the API for this tool easier for Python users. Making the tool faster also means we can do calculations on the fly for updating interactive plots.

This is a work in progress! Lots of documentation is missing.

You probably won't be able to install this branch as it is, because the package structure is broken.

![speed](speed.png)
![overlay](overlay.png)

## Missing Functions
* star_in_fov
* optics_fp
* make_az_asym
* mm_to_pix
* radec2pix

## Usage

```python
TESSPoint(1, 1, 1).pix2radec(coords)
```
Where coords is an N x 2 array of pixel coordinates. You can get pixel coordinates for the edge easily using the `footprint` function.

# TESS-Point
High Precision TESS pointing tool.

Expand Down Expand Up @@ -89,7 +114,7 @@ Burke, C. J., Levine, A., Fausnaugh, M., Vanderspek, R., Barclay, T., Libby-Robe
- numpy

### SPECIAL THANKS TO:
Includes code from the python MAST query examples
Includes code from the python MAST query examples
https://mast.stsci.edu/api/v0/pyex.html

### IMPLEMENTATION DETAILS:
Expand Down Expand Up @@ -118,4 +143,4 @@ eprint = {2003.001},
adsurl = {http://adsabs.harvard.edu/abs/2020ascl.soft03001B},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
```
```
Binary file added docs/overlay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/speed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 0 additions & 55 deletions example_use_tess_stars2py_byfunction.py

This file was deleted.

Loading