Skip to main content

Tool to perform fast PSF photometry of primary and background targets from Kepler/K2 Target Pixel Files

Project description


PRF photometry with Kepler

Test status pypi status

Check out the documentation. Check out the paper

PSFMachine is an open source Python tool for creating models of instrument effective Point Spread Functions (ePSFs), a.k.a Pixel Response Functions (PRFs). These models are then used to fit a scene in a stack of astronomical images. PSFMachine is able to quickly derive photometry from stacks of Kepler images and separate crowded sources.


pip install psfmachine

Example use

Below is an example script that shows how to use PSFMachine. Depending on the speed or your computer fitting this sort of model will probably take ~10 minutes to build 200 light curves. You can speed this up by changing some of the input parameters.

import psfmachine as psf
import lightkurve as lk
tpfs = lk.search_targetpixelfile('Kepler-16', mission='Kepler', quarter=12, radius=1000, limit=200, cadence='long').download_all(quality_bitmask=None)
machine = psf.TPFMachine.from_TPFs(tpfs, n_r_knots=10, n_phi_knots=12)

Funding for this project is provided by NASA ROSES grant number 80NSSC20K0874.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for psfmachine, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size psfmachine-1.1.0-py3-none-any.whl (47.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size psfmachine-1.1.0.tar.gz (45.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page