lensmodels package
Submodules
lensmodels.hessian module
- Hessian_Td(lens_model_list, x, y, kwargs)[source]
- Parameters:
lens_model_list – list of lens models.
x – x-coordinates of position on lens plane.
y – y-coordinates of position on lens plane.
- Kwargs:
arguemnts for the lens models.
- Returns:
independent components of hessian matrix of time delay function.
- Hessian_SIS(x, y, thetaE)[source]
- Parameters:
x – x-coordinates of position on lens plane with respect to the lens position.
y – y-coordinates of position on lens plane with respect to the lens position.
thetaE – Einstein radius of the lens.
- Returns:
independent components of hessian matrix of SIS profile.
- Hessian_PM(x, y, thetaE)[source]
- Parameters:
x – x-coordinates of position on lens plane with respect to the lens position.
y – y-coordinates of position on lens plane with respect to the lens position.
thetaE – Einstein radius of the lens.
- Returns:
independent components of hessian matrix of PM profile.
lensmodels.lens module
- Psi_SIS(X1, X2, x_center, y_center, thetaE)[source]
Return the Psi of SIS model.
- Parameters:
X1 – x-coordinate in image plane relative to center
X2 – y-coordinate in image plane relative to center
x_center – x_coordinate of the window center
y_center – y_coordinate of the window center
thetaE – Einstein radius of the given lens model
- Returns:
deflecetion potential of SIS model
- Psi_PM(X1, X2, x_center, y_center, thetaE)[source]
Return the Psi of point mass model.
- Parameters:
X1 – x-coordinate in image plane relative to center
X2 – y-coordinate in image plane relative to center
x_center – x_coordinate of the window center
y_center – y_coordinate of the window center
thetaE – Einstein radius of the given lens model
- Returns:
deflection potential of point mass model
- ellipticity2phi_q(e1, e2)[source]
Transforms complex ellipticity moduli in orientation angle and axis ratio.
- Parameters:
e1 – eccentricity in x-direction
e2 – eccentricity in xy-direction
- Returns:
angle in radian, axis ratio (minor/major)
- rotate(xcoords, ycoords, angle)[source]
- Parameters:
xcoords – x points
ycoords – y points
angle – angle in radians
- Returns:
x points and y points rotated ccw by angle theta
- Psi_SIE(X1, X2, x_center, y_center, theta_E, e1, e2)[source]
Return the Psi of SIE model.
- Parameters:
X1 – x-coordinate in image plane relative to center
X2 – y-coordinate in image plane relative to center
x_center – x_coordinate of the window center
y_center – y_coordinate of the window center
thetaE – Einstein radius of the given lens model
e1 – ellipticity
e2 – ellipticity
- Returns:
deflecetion potential of SIE model
lensmodels.potential module
- geometrical(x1, x2, y)[source]
- Parameters:
x1 – x-coordinates of position on lens plane with respect to the window center.
x2 – y-coordinates of position on lens plane with respect to the window center.
y – numpy array, source positions.
- Returns:
geometrical part of the time delay.
- potential(lens_model_list, x1, x2, y, kwargs)[source]
- Parameters:
lens_model_list – list of lens models.
x1 – x-coordinates of position on lens plane with respect to the window center.
x2 – y-coordinates of position on lens plane with respect to the window center.
y – numpy array, source positions.
- Kwargs:
arguemnts for the lens models.
- Returns:
time delay function.