run_dataval.py command line utility

Created on Sun Feb 26 20:51:06 2017

@author: Dr. Mikkel N. Lund

class run_dataval.DataValidation(input_folders, output_folder=None, validate=True, method='all', colorbysector=False, ext='png', showplots=False, sysnoise=0)[source]

Bases: object

Validations()[source]
__init__(input_folders, output_folder=None, validate=True, method='all', colorbysector=False, ext='png', showplots=False, sysnoise=0)[source]

Initialize self. See help(type(self)) for accurate signature.

close()[source]

Close DataValidation object and all associated objects.

plot_contam(return_val=False)[source]

Function to plot the contamination against the stellar TESS magnitudes

Code author: Mikkel N. Lund <mikkelnl@phys.au.dk>

plot_dist_to_edge(return_val=False)[source]
plot_mag_dist()[source]

Function to plot magnitude distribution for targets

Code author: Mikkel N. Lund <mikkelnl@phys.au.dk>

plot_mag_dist_overlap()[source]

Function to plot magnitude distribution overlap between sectors

Code author: Mikkel N. Lund <mikkelnl@phys.au.dk>

plot_magtoflux(return_val=False)[source]

Function to plot flux values from apertures against the stellar TESS magnitudes, and determine coefficient describing the relation

Code author: Mikkel N. Lund <mikkelnl@phys.au.dk>

plot_onehour_noise(return_val=False)[source]

Function to plot the light curve noise against the stellar TESS magnitudes

Code author: Mikkel N. Lund <mikkelnl@phys.au.dk>

plot_pixinaperture(return_val=False)[source]

Function to plot number of pixels in determined apertures against the stellar TESS magnitudes

Code author: Mikkel N. Lund <mikkelnl@phys.au.dk>

plot_stamp(return_val=False)[source]

Function to plot width and height of pixel stamps against the stellar TESS magnitudes

Code author: Mikkel N. Lund <mikkelnl@phys.au.dk>

search_database(select=None, search=None, order_by=None, limit=None, distinct=False)[source]

Search list of lightcurves and return a list of tasks/stars matching the given criteria.

Parameters:
  • search (list of strings or None) – Conditions to apply to the selection of stars from the database
  • order_by (list, string or None) – Column to order the database output by.
  • limit (int or None) – Maximum number of rows to retrieve from the database. If limit is None, all the rows are retrieved.
  • distinct (boolean) – Boolean indicating if the query should return unique elements only.
Returns:

Returns all stars retrieved by the call to the database as dicts/tasks that can be consumed directly by load_lightcurve

Return type:

list of dicts

Code author: Rasmus Handberg <rasmush@phys.au.dk>

run_dataval.Pixinaperture(Tmag, cad='1800')[source]
run_dataval.ZLnoise(gal_lat)[source]
run_dataval.combine_flag_dicts(a, b)[source]
run_dataval.compute_onehour_rms(flux, cad)[source]
run_dataval.mean_flux_level(Tmag)[source]
run_dataval.phot_noise(Tmag, Teff, cad, PARAM, verbose=False, sysnoise=60, cadpix='1800')[source]
run_dataval.reduce_mode(x)[source]
run_dataval.reduce_percentile1(x)[source]
run_dataval.reduce_percentile2(x)[source]
run_dataval.sphere_distance(ra1, dec1, ra2, dec2)[source]