kai.reduce.analysis

Classes

Analysis

Object that will perform our standard post-data-reduction analysis.

Functions

idl_process_run(batch_file)

Function to help run parallel processes for IDL, used for StarFinder

plotPosError(starlist[, raw, suffix, radius, ...])

Make three standard figures that show the data quality

Module Contents

kai.reduce.analysis.idl_process_run(batch_file)[source]

Function to help run parallel processes for IDL, used for StarFinder

Parameters:
batch_filestr

Path of the bath file containing the IDL command to run

class kai.reduce.analysis.Analysis(epoch, rootDir='/g/lu/data/orion/', filt='kp', clean_dir=None, combo_dir=None, combo_stf_dir=None, epochDirSuffix=None, imgSuffix=None, stfDir=None, useDistorted=False, cleanList='c.lis', airopa_mode='single', stf_version=None, stf_debug=False, stf_parallelize=True, instrument=instruments.default_inst)[source]

Bases: object

Object that will perform our standard post-data-reduction analysis. This includes running starfinder, calibrating, and extracting positional and photometric errors via align_rms.

type = 'ao'[source]
corrMain = [0.8][source]
corrSub = [0.6][source]
corrClean = [0.7][source]
airopa_mode[source]
trimfake = 1[source]
stfFlags = ''[source]
stf_debug[source]
stf_parallelize[source]
starlist[source]
labellist[source]
labellist_accel = True[source]
orbitlist[source]
calFile[source]
instrument[source]
calStars = ['irs16NW', 'S3-22', 'S2-22', 'S4-3', 'S1-1', 'S1-21', 'S1-12', 'S2-2', 'S3-88', 'S2-75',...[source]
calFlags = '-f 1 -R '[source]
mapFilter2Cal[source]
calCooStar = 'irs16C'[source]
cooStar = 'irs16C'[source]
deblend = None[source]
alignFlags = '-R 3 -p -a 0'[source]
numSubMaps = 3[source]
minSubMaps = 3[source]
epoch[source]
rootDir[source]
filt[source]
dirEpoch[source]
dirClean[source]
dirCleanAln[source]
dirCombo[source]
starfinder_dir_name = 'starfinder/'[source]
dirComboAln[source]
cleanList[source]
cleanFiles = [][source]
dirStart[source]
plotPosMagCut = 15.0[source]
prepStarfinder(targetName, targetCoords, psfStars, filterName)[source]

Creates a _psf.list file and saves it in the source_list/ directory.

analyzeCombo()[source]
analyzeClean()[source]
analyzeComboClean()[source]
starfinderCombo(oldPsf=False)[source]
starfinderClean()[source]
starfinderCleanLoop()[source]
calibrateCombo()[source]
calibrateClean()[source]
alignCombo()[source]
alignClean()[source]
kai.reduce.analysis.plotPosError(starlist, raw=False, suffix='', radius=4, magCutOff=15.0, title=True)[source]

Make three standard figures that show the data quality from a *_rms.lis file.

  1. astrometric error as a function of magnitude.

  2. photometric error as a function of magnitude.

  3. histogram of number of stars vs. magnitude.

Use raw=True to plot the individual stars in plots 1 and 2.