Skip to main content

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

Project description

PSFMachine

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.

Installation

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)
machine.fit_lightcurves()

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.

Source Distribution

psfmachine-1.1.4.tar.gz (67.1 kB view details)

Uploaded Source

Built Distribution

psfmachine-1.1.4-py3-none-any.whl (72.3 kB view details)

Uploaded Python 3

File details

Details for the file psfmachine-1.1.4.tar.gz.

File metadata

  • Download URL: psfmachine-1.1.4.tar.gz
  • Upload date:
  • Size: 67.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.8.6 Darwin/21.6.0

File hashes

Hashes for psfmachine-1.1.4.tar.gz
Algorithm Hash digest
SHA256 a3f2ae98d3505cec053abdcf5f51728fe7a1ca0889ce769d32b9d8183402ce89
MD5 f4e950939c579e2acb255207306c48ea
BLAKE2b-256 d9571ade1267a5971da40c80f14ccedbaf90ac9e08f01ecbd0218a1ae7b033fa

See more details on using hashes here.

File details

Details for the file psfmachine-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: psfmachine-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 72.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.8.6 Darwin/21.6.0

File hashes

Hashes for psfmachine-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f45f316929c9f2dbc4aae9b5f4e9554f5fdee7ceef5f6f329d1b8e551ba29f18
MD5 aab42e31918e4ddc1ca9b8d7c56bb62b
BLAKE2b-256 9e0d02917b15b699b3fcd11024501abaf91e398ecea75ca3d9927e1a30895daa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page