Observation#
- class prose.Observation#
Class to load and analyze photometry products
- Parameters:
photfile (str) – path of the .phot file to load
time_verbose (bool, optional) – whether time conversion success should be verbose
Methods
__init__(photfile[, time_verbose])- param photfile:
path of the .phot file to load
best_polynomial([add, verbose])Return the best systematics polynomial model orders.
binn(dt[, std, keep_coords])broeg2005([inplace, cut, nans])The Broeg et al. 2005 differential photometry algorithm.
compute_bjd([version])Compute BJD_tdb based on current time
copy()diff(comps[, inplace])Differential photometry based on a set of comparison stars
dm_bic(dm)dm_ll(dm)flip_correction([inplace])Align all differential fluxes using a step model of the meridian flip
folder_to_phot([confirm])replace all the
photfile parent folder content by thephotfilekeep_good_stars([threshold, ...])Keep only stars with a median flux higher than
threshold*sky.lc_widget([width])[notebook/jupyter feature] displays a widget to play with light curve aperture and binning
load(filepath)lstsq(X[, star, split])Given a design matrix return the fitted trend
mask(mask[, dim])noise_stats([bins, verbose])pick_best_aperture([method, return_criterion])Plate solve the current py::stack
plot([star, meridian_flip, bins, color, std])Plot observation light curve
plot_comps_lcs([n, ylim])Plot comparison stars light curves along target star light curve
plot_detrended([star, bins, color, std, ...])Plot vertical line marking the meridian flip time if any
plot_precision([bins, aperture])Plot observation precision estimate against theorethical error (background noise, photon noise and CCD equation)
plot_psf_model([star, size, cmap, c, model, ...])Plot a PSF model fit of the a PSF
plot_radial_psf([star, n, zscale, aperture, ...])Plot star cutout overalid with aperture and radial flux.
Plot raw target flux and differantial flux
plot_summary([ylim, zscale])plot_systematics([fields, ylim, ...])Plot systematics measurements along target light curve
plot_systematics_signal(systematics[, ...])Plot a systematics and signal model over diff_flux.
polynomial(**orders)Return a design matrix representing a polynomial model
polynomial_trend([bic, verbose])pont2006([plot])query_catalog(name[, correct_pm])save([destination, verbose])Save current observation
set_attribute(file, **kwargs)set_catalog_target(catalog_name, designation)set_gaia_target(gaia_id[, verbose, raise_far])show_stars([view, n, flip, comp_color, ...])Show detected stars over stack image
sigma_clip([sigma, star])Sigma clipping
step([t0])Two parameter step model model.
to_csv(destination[, sep, old])Export a typical csv of the observation's data
transit(t0, duration[, depth])A simple transit model
where(condition)return filtered observation given a boolean mask of time
Attributes
Xaperturecomparison_raw_fluxesdatedetrended_diff_fluxdiff_errordiff_fluxhas_diffhas_stacklabel{telescope}_{date}_{name}_{filter}
mean_epsfrtype: The mean of the image effective PSF in pixels
mean_target_psfrtype: An estimation of the fwhm of the target psf using a Gaussian 2D model in pixels
meridian_flipMeridian flip time.
night_dateoptimal_aperturertype: The optimal aperture radius in pixels
raw_errorraw_fluxsimbadsimbad query url for specified target
simbad_url[notebook feature] clickable simbad query url for specified target
stacktargettrendwcsxxlabelPlot xlabel (time) according to its units