The UCB Filippenko Group's Photometry Pipeline
This repository houses the code used by UC Berkeley's Filippenko Group to autonomously produce a database of rough (not publication-quality) photometry of all sources detected in all images we've ever obtained with the Nickel and KAIT telescopes at Lick Observatory.
-2017, I.Shivvers & T.Tu
- We start with the flat-fielded and bias-subtracted images.
- This code was built with the Nickel and KAIT telescopes in mind, but we have endeavored to make it easy to update for other instruments.
- Update WCS information using
astrometry.net. - Identify objects and perform photometry using
source extractor. - Cross-match to calibrated
APASScatalog to place that photometry on an absolute scale. - Insert result into a MySQL database for easy querying.
- This database has been interfaced with the Berkeley SNDB
-
Once installed, this code provides the
flippruncommand, which works well to run one file at a time. For example:flipprun -o /path/to/output/folder -t kait /path/to/input/file.fits -
This repo also includes two example bash scripts, which provide the best way to run on large sets of files. (The ''recursive'' option in
flipprunfails on large folders.) For example:./FPKaitFolder.sh /path/to/input/folder/ /path/to/output/folder/
- Clone this repository.
- Verify that you have both
sextractor(Source Extractor) andsolve-field(astrometry.net) installed. - Create a file called
local.pyinFlipperPhot/flipp/conf/. - Within this file you should re-define anything you need to from
global_settings.py. (The contents oflocal.pyover-ride those ofglobal_settings.py.) - For example, you will likely want to re-define the
DB_URLvariable, which points to the database where you want to store the output (see here). The database must already exist, butFlipperPhotwill automatically create the tables it needs. - Other likely changes:
1.
SEXTRACTORPATH:the path to thesextractorexecutable. 1.SOLVEFIELDPATH:the path to thesolve-fieldexecutable. 1.ASTROMETRYCONF:the path to thesolve-fieldconfiguration file, which usually contains system-specific info. - Within the root folder of FlipperPhot, run
pip install .to install. - Now you should have the command
flipprunin your path. - Type
flipprun -hfor information on how to run it.