Tool to perform fast PSF photometry of primary and background targets from Kepler/K2 Target Pixel Files
Project description
PSFMachine
PRF photometry with Kepler
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
Built Distribution
File details
Details for the file psfmachine-1.0.0.tar.gz
.
File metadata
- Download URL: psfmachine-1.0.0.tar.gz
- Upload date:
- Size: 21.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.8.7 Darwin/20.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3414c62e54359ecab859ab8bd1bed9a845798344f06b38ed10783473a0698654 |
|
MD5 | 38a010e66253735b0679e437bdc5706c |
|
BLAKE2b-256 | f62922e560da0bdb4d6e5ed5d943ee9ae01f686469b241635bb29209bf08f247 |
File details
Details for the file psfmachine-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: psfmachine-1.0.0-py3-none-any.whl
- Upload date:
- Size: 21.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.8.7 Darwin/20.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7e4f3c03f5d147d22a2069d117f7e129d66c810f4b6ab2a7d3c8599c81a7a4f |
|
MD5 | adcf7506e27cd3379f36abeb90dab820 |
|
BLAKE2b-256 | 1226d9a9230bc449834417d1972960f73dc0c136904686bf560e97110fbe4460 |