Skip to main content

TESS_PRF

Tools to display the TESS pixel response function (PRF) at any location on the detector.

By default, will access the relevant PRF files on MAST (internet required), but you can also download these files and reference their local directory. There is also an option to generate a 2D Gaussian PRF, however appropriate that may be.

This package is primarily for estimating how the light from a point source is distributed given its position in a TESS Target Pixel File (TPF) or TESScut postage stamp. Referencing the real TESS PRF models, you'll need to provide the Camera, CCD, and Sector numbers, along with the column and row numbers at approximately the center of your TPF to interpolate a PRF appropriate for that postage stamp. This package assumes the PRF doesn't change considerably within a small TPF. You can then position the PRF model by passing the relative row and column location within the TPF to the "resample" method. The pixel locations follow WCS convention, that an integer value corresponds to the center of a pixel.

import PRF
import matplotlib.pyplot as plt

# Suppose the following for a TPF of interest
cam = 3
ccd = 4
sector = 13
colnum = 113 #middle of TPF
rownum = 298 #middle of TPF

prf = PRF.TESS_PRF(cam,ccd,sector,colnum,rownum)

# See what this looks like in the center of an 11x11 TPF
resampled = prf.locate(5.0, 5.0, (11,11))

plt.imshow(resampled)
plt.show()

With this result: PRF example

To generate a Gaussian PRF to relocate within a TPF, call PRF.Gaussian_PRF(sigma) where sigma is in units of TESS pixels.

Installation

TESS_PRF is pip installable with the command pip install TESS_PRF

Or clone this repository and run

cd TESS_PRF
python -m build
pip install -e .

Metadata

Release files for TESS-PRF 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for TESS-PRF 0.1.3
File Size Uploaded
TESS_PRF-0.1.3.tar.gz 20.7 kB Details

Release files / TESS_PRF-0.1.3.tar.gz

Download URL TESS_PRF-0.1.3.tar.gz
Size 20.7 kB
Tags Source
SHA-256 checksum
How to use checksums
faff47c903f62d7d6c61076654fcc8454673a0e4a698f59377e23fa33b98b3f8
BLAKE2b-256 checksum
How to use checksums
f2eb094cd4118fe01fcebc302c988e5b8eb425a457f6f27a67578c7918bcd476
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.5

Release history Release notifications | RSS feed

This release

0.1.3 This release

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

3 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

3 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page