slsim.Sources.SourceCatalogues.SupernovaeCatalog package¶
Submodules¶
slsim.Sources.SourceCatalogues.SupernovaeCatalog.supernovae_sample module¶
- class slsim.Sources.SourceCatalogues.SupernovaeCatalog.supernovae_sample.SupernovaeCatalog(sn_type, band_list, lightcurve_time, absolute_mag_band, mag_zpsys, cosmo, skypy_config, sky_area, absolute_mag, sn_modeldir=None, host_galaxy_candidate=None, redshift_max=5)[source]¶
Bases:
objectClass to generate a supernovae catalog.
- supernovae_catalog(host_galaxy=True, lightcurve=True)[source]¶
Generates supernovae catalog for given redshifts.
- Parameters:
host_galaxy – kwargs to decide whether catalog should include host galaxies or not. True or False.
lightcurve – kwargs for the lightcurve, if lightcurve is True, it returns extracts lightcurve for each supernovae redshift.
- Returns:
Astropy Table of supernovae catalog containg redshift, lightcurves, ra_off, dec_off, and host galaxy properties. If host_galaxy is set to False, it returns catalog without host galaxy properties. Light curves are generated using RandomizedSupernova class. Light curves are saved as an array of observation time and array of corresponding magnitudes in specified bands in different columns of the Table.
- slsim.Sources.SourceCatalogues.SupernovaeCatalog.supernovae_sample.supernovae_host_galaxy_offset(host_galaxy_catalog)[source]¶
This function generates random supernovae offsets from their host galaxy center based on observed data. (Wang et al. 2013)
- Parameters:
host_galaxy_catalog (astropy Table) – catalog of host galaxies matched with supernovae (must have ‘angular_size’ and ‘ellipticity’ columns)
- Returns:
offsets x and y [arcsec] selected for each supernovae based on observed distribution; e1 and e2 projected eccentricities calculated for each host galaxy
- Return type:
list; float
Module contents¶
- class slsim.Sources.SourceCatalogues.SupernovaeCatalog.SupernovaeCatalog(sn_type, band_list, lightcurve_time, absolute_mag_band, mag_zpsys, cosmo, skypy_config, sky_area, absolute_mag, sn_modeldir=None, host_galaxy_candidate=None, redshift_max=5)[source]¶
Bases:
objectClass to generate a supernovae catalog.
- supernovae_catalog(host_galaxy=True, lightcurve=True)[source]¶
Generates supernovae catalog for given redshifts.
- Parameters:
host_galaxy – kwargs to decide whether catalog should include host galaxies or not. True or False.
lightcurve – kwargs for the lightcurve, if lightcurve is True, it returns extracts lightcurve for each supernovae redshift.
- Returns:
Astropy Table of supernovae catalog containg redshift, lightcurves, ra_off, dec_off, and host galaxy properties. If host_galaxy is set to False, it returns catalog without host galaxy properties. Light curves are generated using RandomizedSupernova class. Light curves are saved as an array of observation time and array of corresponding magnitudes in specified bands in different columns of the Table.