lightcurve (module)

Generate the force-photometry lightcurves for ATLAS sources found in the marshall database

Author

David Young

Classes

conversions(log[, settings])

The worker class for the conversions module

database(log[, dbSettings, autocommit])

a database object that can setup up a ssh tunnel (optional) and a database connection

datetime(year, month, day[, hour[, minute[, …)

The year, month and day arguments are required.

itemgetter

itemgetter(item, …) –> itemgetter object

str([object])

str(bytes_or_buffer[, encoding[, errors]]) -> str

tools(arguments, docString[, logLevel, …])

common setup methods & attributes of the main function in cl-util

zip

zip(*iterables) –> zip object

Functions

fmultiprocess(log, function, inputArray[, …])

multiprocess pool

generate_atlas_lightcurves(dbConn, log, settings)

generate all atlas FP lightcurves (clipped and stacked)

get_twin(ax, axis)

get_twin_axis(ax, axis)

old_div(a, b)

Equivalent to a / b on Python 2 without from __future__ import division.

plot_single_result(transientBucketId, log, …)

plot single result

readquery(sqlQuery, dbConn, log[, quiet])

Given a mysql query, read the data from the database and return the results as a list of dictionaries (database rows)

rolling_window_sigma_clip(log, array, …)

given a sorted list of values, median sigma-clip values based on a window of values either side of each value (rolling window) and return the array mask

sigma_clip_data(log, fpData[, clippingSigma])

clean up rouge data from the files by performing some basic clipping

stack_photometry(log, magnitudes[, binningDays])

stack the photometry for the given temporal range

writequery(log, sqlQuery, dbConn[, Force, …])

Execute a MySQL write command given a sql query

Sub-modules

conversions(log[, settings])

The worker class for the conversions module

database(log[, dbSettings, autocommit])

a database object that can setup up a ssh tunnel (optional) and a database connection

dates

AVOID INSTALLING THESE C-DEPENDENT PACKAGES

datetime(year, month, day[, hour[, minute[, …)

The year, month and day arguments are required.

division

fmultiprocess(log, function, inputArray[, …])

multiprocess pool

generate_atlas_lightcurves(dbConn, log, settings)

generate all atlas FP lightcurves (clipped and stacked)

get_twin(ax, axis)

get_twin_axis(ax, axis)

itemgetter

itemgetter(item, …) –> itemgetter object

math

This module provides access to the mathematical functions defined by the C standard.

mpl

AVOID INSTALLING THESE C-DEPENDENT PACKAGES

mtick

AVOID INSTALLING THESE C-DEPENDENT PACKAGES

np

AVOID INSTALLING THESE C-DEPENDENT PACKAGES

old_div(a, b)

Equivalent to a / b on Python 2 without from __future__ import division.

os

OS routines for NT or Posix depending on what system we’re on.

plot_single_result(transientBucketId, log, …)

plot single result

plt

AVOID INSTALLING THESE C-DEPENDENT PACKAGES

print_function

readquery(sqlQuery, dbConn, log[, quiet])

Given a mysql query, read the data from the database and return the results as a list of dictionaries (database rows)

rolling_window_sigma_clip(log, array, …)

given a sorted list of values, median sigma-clip values based on a window of values either side of each value (rolling window) and return the array mask

sigma_clip_data(log, fpData[, clippingSigma])

clean up rouge data from the files by performing some basic clipping

stack_photometry(log, magnitudes[, binningDays])

stack the photometry for the given temporal range

str([object])

str(bytes_or_buffer[, encoding[, errors]]) -> str

sys

This module provides access to some objects used or maintained by the interpreter and to functions that interact strongly with the interpreter.

tools(arguments, docString[, logLevel, …])

common setup methods & attributes of the main function in cl-util

warnings

Python part of the warnings subsystem.

writequery(log, sqlQuery, dbConn[, Force, …])

Execute a MySQL write command given a sql query

zip

zip(*iterables) –> zip object

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
)
get_twin(ax, axis)[source]
get_twin_axis(ax, axis)[source]
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