Skip to content

chelseah/FFIToolsPub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FFIToolsPub

This is the public version of FFITools. FFITools is a software tool package for reduce wide field images and transit search.

Dependence:

external softwares:

python modules:

  • astrometry.net

  • astropy>1.3

  • numpy==1.11.1

  • scipy==0.18.1

  • multiprocessing==0.70a1

  • matplotlib==1.5.3

  • astroquery==0.3.2

  • astropy>1.3

Usage:

Display a fits file:

patools-display tess2019129080826-4-4-0016-s_ffic.fits

Display a fits file and project a star list based on its x, y coordinates (tess2019129080826-4-4-0016-s_ffic.fistar is a file result from source extraction and has column 2/3 for x/y coordinates ):

patools-display tess2019129080826-4-4-0016-s_ffic.fits -x 2,3 -i tess2019129080826-4-4-0016-s_ffic.fistar

The following steps need to be operated in sequences:

source extraction (in PATools/etc directory):

patools-sampler fistar -c ETE6-cam4-ccd4.cfg --debug --logfile -

astrometry

patools-sampler astrometry -c ETE6-cam4-ccd4.cfg --debug --logfile - 

photometry

patools-sampler phot -c ETE6-cam4-ccd4.cfg --debug --logfile -

bls (in LCTools/etc directory):

lctools-sampler BLS -i data/Kepler-6b.lc -c example.cfg -x 1,2,3

use bls as a module

import lctools
from lctools.lightcurve import SimpleLightCurve as Lc
from lctools.bls import VtBls
from lctools.util.configurable import Configuration

cfg = Configuration(config_file)
blsengin = VtBls(cfg)
lcfile = Lc(name=infile)
lcfile.set_cols(coljd=coljd, colmag=colmag, colmagerr=colmagerr)
blsanal, blsfile, blsmodelfile = blsengin(lcfile, replace=True)

Input:

infile is a ascii light curve file with time column (coljd), magnitude column (colmag) and magnitude error column (colmagerr, can be filled with ones).

config_file is a configuration file for all the BLS parameters, see example.cfg under LCTools/etc as an example.

Output:

blsanal is an array of dictionaries, each dictionary contains relevent matrix for a BLS peak (out put $peaknum strongest peaks).

blsfile is the BLS spectrum from the calculation.

blsmodelfile is the light curve phase folded using the epheriemes and period of the first BLS peak in blsanal.

Authors

Chelsea Huang

Andras Pal

...

About

This is the public version of FFITools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages