AstrObj

The AstrObj abstract class

AstrObj is an abstract class of objects that snsim used to model transients.

The basics attributes of an AstrObj are:

ID

Identification number, set to 0 by default

ra

Right ascension [rad]

dec

Declination [rad]

zcos

Cosmological redshift

vpec

Peculiar velocities [km/s]

zpcmb

Redshift contribution from the CMB dipole motion

como_dist

Comoving distance [Mpc]

Derived properties can be called:

  • The peculiar redshift zpec: \(z_p = v_p / c\)

  • The redshift corrected from CMB dipole zCMB: \(z_\mathrm{CMB} = (1 + z_\mathrm{cos}) (1 + z_p) - 1\)

  • The observed redshift zobs: \(z_\mathrm{obs} = (1 + z_\mathrm{cos}) (1 + z_{p,\mathrm{CMB}}) (1 + z_p) - 1\)

  • The distance modulus mu: \(\mu = 5 \log_{10}((1 + z_\mathrm{cos}) (1 + z_{p,\mathrm{CMB}}) (1 + z_p)^2 r(z_\mathrm{cos}))\)

Any model will add attributes depanding on what is needed to models the transient. These new attributes are added through the definition of _obj_attrs.

During the __init__ call,