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 connection

  • log – logger

  • settings – 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 photometry

  • clippingSigma – the level at which to clip flux data

Return:

  • epochs – sigma clipped and cleaned epoch data

stack_photometry(log, magnitudes, binningDays=1.0)[source]

stack the photometry for the given temporal range

Key Arguments:

- `magnitudes` -- dictionary of photometry divided into filter sets
- `binningDays` -- the binning to use (in days)

Return:

- `summedMagnitudes` -- the stacked photometry
get_twin(ax, axis)[source]
get_twin_axis(ax, axis)[source]