marshallEngine.feeders.atlas.lightcurve module ∞
Generate the force-photometry lightcurves for ATLAS sources found in the marshall database
- Author
David Young
-
generate_atlas_lightcurves
(dbConn, log, settings)[source] ∞ generate all atlas FP lightcurves (clipped and stacked)
Key Arguments
dbConn
– mysql database connectionlog
– loggersettings
– settings for the marshall.
from marshallEngine.feeders.atlas.lightcurve import generate_atlas_lightcurves generate_atlas_lightcurves( log=log, dbConn=dbConn, settings=settings )
-
plot_single_result
(transientBucketId, log, fig, converter, ax, settings)[source] ∞ plot single result
Key Arguments:
- `transientBucketId` -- thr transient ID for the source in the database - `log` -- logger - `fig` -- the matplotlib figure to use for the plot - `converter` -- converter to switch mjd to ut-date - `ax` -- plot axis - `settings` -- dictionary of settings (from yaml settings file)
Return:
- `filePath` -- path to the output PNG plot
-
sigma_clip_data
(log, fpData, clippingSigma=2.2)[source] ∞ clean up rouge data from the files by performing some basic clipping
Key Arguments:
fpData
– data dictionary of force photometryclippingSigma
– the level at which to clip flux data
Return:
epochs
– sigma clipped and cleaned epoch data