Magnification

pyLIMA.magnification.impact_parameter.impact_parameter(tau, beta)

The impact parameter U(t). See http://adsabs.harvard.edu/abs/1986ApJ…304….1P http://adsabs.harvard.edu/abs/2015ApJ…804…20C

Parameters:
  • tau (array, (t-t0)/tE)

  • beta (array, [u0]*len(t))

Returns:

impact_param

Return type:

array, u(t)

pyLIMA.magnification.magnification_FSPL.magnification_FSPL_Yoo(tau, beta, rho, gamma, return_impact_parameter=False)

The Yoo et al. Finite Source Point Lens magnification. See http://adsabs.harvard.edu/abs/2004ApJ…603..139Y

Parameters:
  • tau (array, (t-t0)/tE)

  • beta (array, [u0]*len(t))

  • rho (float, the normalized angular source radius)

  • gamma (float, the linear microlensing limb darkening coefficient.)

  • return_impact_parameter (bool, if the impact parameter is needed or not)

Returns:

  • magnification_FSPL (array, A(t) for FSPL)

  • impact_parameter (array, u(t))

pyLIMA.magnification.magnification_Jacobian.magnification_FSPL_Jacobian(fspl_model, telescope, pyLIMA_parameters)

The Jacobian of the FSPL magnification, i.e. [dA(t)/dt0, dA(t)/du0,dA(t)/dtE, dA(t0/drho]

Parameters:
  • fspl_model (object, a FSPL model object)

  • telescope (object, a telescope object)

  • pyLIMA_parameters (dict, a dictionnary containing the microlensing parameters)

Returns:

magnification_jacobian

Return type:

array, the magnification Jacobian

pyLIMA.magnification.magnification_Jacobian.magnification_PSPL_Jacobian(pspl_model, telescope, pyLIMA_parameters)

The Jacobian of the PSPL magnification, i.e. [dA(t)/dt0, dA(t)/du0,dA(t)/dtE]

Parameters:
  • pspl_model (object, a PSPL model object)

  • telescope (object, a telescope object)

  • pyLIMA_parameters (dict, a dictionnary containing the microlensing parameters)

Returns:

  • magnification_jacobian (array, the magnification Jacobian)

  • Amplification (array, the magnification associated)

pyLIMA.magnification.magnification_Jacobian.magnification_numerical_Jacobian(microlensing_model, telescope, pyLIMA_parameters)

The Jacobian of the any models, based on scipy approx_fprime

Parameters:
  • microlensing_model (object, a microlensing model object)

  • telescope (object, a telescope object)

  • pyLIMA_parameters (dict, a dictionnary containing the microlensing parameters)

Returns:

magnification_jacobian_numerical

Return type:

array, the numerical Jacobian

pyLIMA.magnification.magnification_PSPL.magnification_PSPL(tau, beta, return_impact_parameter=False)

The Paczynski Point Source Point Lens magnification and the impact parameter U(t). See http://adsabs.harvard.edu/abs/1986ApJ…304….1P

Parameters:
  • tau (array, (t-t0)/tE)

  • beta (array, [u0]*len(t))

  • return_impact_parameter (bool, if the impact parameter is needed or not)

Returns:

  • magnification_PSPL (array, A(t) for PSPL)

  • impact_parameter (array, u(t))