RAMjET

ramjet.photometric_database.microlensing_signal_generator

Script that generates a Gravitational Microlensing Signal, randomly, within the natural parameters: u0 ( source-lens impact parameter), tE (Einstein radius crossing time), rho (angular source size normalized by the angular Einstein radius) , s (Projected separation of the masses normalized by the angular Einstein radius), q (Mass ratio M_planet/M_host), alpha (Trajectory angle). The distribution for tE and rho are based on the MOA observations.

Module Contents

Classes

MagnificationSignal A class to generate a random microlensing magnification signal.
class MagnificationSignal[source]

A class to generate a random microlensing magnification signal. Using the parameters: u0 (source-lens impact parameter) tE (Einstein radius crossing time) rho (angular source size normalized by the angular Einstein radius) s (Projected separation of the masses normalized by the angular Einstein radius) q (Mass ratio M_planet/M_host) alpha (Trajectory angle) > The distribution for tE and rho are based on the MOA observations > No parallax effect is considered

tE_list :pd.Series
rho_list :pd.Series
__init__(self)[source]

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

load_moa_meta_data_to_class_attributes(self)[source]

Loads the MOA meta data defining microlensing to class attributes. If already loaded, does nothing.

getting_random_values(self)[source]

Set randomly the natural parameters: u0 (source-lens impact parameter), tE (Einstein radius crossing time), rho (angular source size normalized by the angular Einstein radius) , s (Projected separation of the masses normalized by the angular Einstein radius), q (Mass ratio M_planet/M_host), alpha (Trajectory angle)

generating_magnification(self)[source]

Creates the magnification signal

plot_magnification(self)[source]

Plot the lightcurve.

classmethod generate_randomly_based_on_moa_observations(cls, time_range: float = 30)[source]
classmethod generate_approximately_pspl_randomly_based_on_moa_observations(cls, time_range: float = 30)[source]
static calculating_magnification_from_vbb(timeseries, lens_params)[source]

Return the VBB method finite-source uniform magnification. Adapted from muLAn: gravitational MICROlensing Analysis Software.

start_time