slsim.Microlensing.source_morphology package¶
Submodules¶
slsim.Microlensing.source_morphology.agn module¶
- class slsim.Microlensing.source_morphology.agn.AGNSourceMorphology(source_redshift, cosmo, r_out=1000, r_resolution=1000, black_hole_mass_exponent=8.0, inclination_angle=0, black_hole_spin=0, observer_frame_wavelength_in_nm=600, eddington_ratio=0.15, observing_wavelength_band: str = None, *args, **kwargs)[source]¶
Bases:
SourceMorphologyClass for AGN source morphology.
- get_integrated_kernel_map(band)[source]¶
Returns the 2D array of the integrated AGN kernel map for a given wavelength range and transmission function.
The kernel map is a 2D array that represents the morphology of the source. The kernel map is used to convolve with the microlensing magnification map. The kernel is normalized to 1.
slsim.Microlensing.source_morphology.gaussian module¶
- class slsim.Microlensing.source_morphology.gaussian.GaussianSourceMorphology(source_redshift, cosmo, source_size, length_x, length_y, num_pix_x, num_pix_y, center_x=0, center_y=0, *args, **kwargs)[source]¶
Bases:
SourceMorphologyClass for Gaussian source morphology.
slsim.Microlensing.source_morphology.source_morphology module¶
- class slsim.Microlensing.source_morphology.source_morphology.SourceMorphology(*args, **kwargs)[source]¶
Bases:
objectBase class for source morphologies.
- arcsecs_to_metres(arcsecs, cosmo, redshift)[source]¶
Converts arcseconds to meters in the source plane, given the cosmology and redshift.
- Parameters:
arcsecs – Arcseconds to be converted.
cosmo – Astropy cosmology object for angle calculations.
redshift – Redshift of the source.
- Returns:
Transverse distance in meters in the source plane at the given redshift.
- get_kernel_map(*args, **kwargs)[source]¶
Returns the 2D array of the kernel map.
The kernel map is a 2D array that represents the morphology of the source. The kernel map is used to convolve with the microlensing magnification map.
- property kernel_map¶
Returns the 2D array of the kernel map.
The kernel map is a 2D array that represents the morphology of the source. The kernel map is used to convolve with the microlensing magnification map.
- property length_x¶
Returns the length of the 2D kernel map in x direction in arcseconds.
- property length_y¶
Returns the length of the 2D kernel map in y direction in arcseconds.
- metres_to_arcsecs(metres, cosmo, redshift)[source]¶
Converts meters to arcseconds in the source plane, given the cosmology and redshift.
- Parameters:
metres – Meters to be converted.
cosmo – Astropy cosmology object for angle calculations.
redshift – Redshift of the source.
- Returns:
Arcseconds in the source plane at the given redshift.
- property num_pix_x¶
Returns the number of pixels in x direction.
- property num_pix_y¶
Returns the number of pixels in y direction.
- property pixel_scale¶
Returns the geometric mean pixel scale in arcseconds.
- property pixel_scale_m¶
Returns the geometric mean pixel scale in meters.
- property pixel_scale_x¶
Returns the pixel scale in x direction in arcseconds.
- property pixel_scale_x_m¶
Returns the pixel scale in x direction in meters.
- property pixel_scale_y¶
Returns the pixel scale in y direction in arcseconds.
- property pixel_scale_y_m¶
Returns the pixel scale in y direction in meters.
slsim.Microlensing.source_morphology.supernovae module¶
- class slsim.Microlensing.source_morphology.supernovae.SupernovaeSourceMorphology(*args, **kwargs)[source]¶
Bases:
SourceMorphologyClass for Supernovae source morphology.