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.0.tar.gz (45.8 kB view details)

Uploaded Source

Built Distribution

psfmachine-1.1.0-py3-none-any.whl (47.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: psfmachine-1.1.0.tar.gz
  • Upload date:
  • Size: 45.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.0 Darwin/20.6.0

File hashes

Hashes for psfmachine-1.1.0.tar.gz
Algorithm Hash digest
SHA256 accac0b305bf7cfcc4ca6c73d3ff1b98fc1161e0e4b0892b5b2760f6f4cdc5d9
MD5 15fd4c6dd1b7375473802c949563d5b7
BLAKE2b-256 db0c9c343fe284db9d5c1bb6250455fb9ddc1cd523fde5904c63691d6439e37e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psfmachine-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 47.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.0 Darwin/20.6.0

File hashes

Hashes for psfmachine-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5bd166e95202f85d4b3b14840d9887861948fc917001b6667a78583bd749a47b
MD5 ab53e5608f032bea808c2f4215dbf597
BLAKE2b-256 2aeb790ca0d5160a1bae2c13b9f2b0e7d6dfa39a56a3f996d83ee65f546053de

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