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:
|
Identification number, set to 0 by default |
|
Right ascension [rad] |
|
Declination [rad] |
|
Cosmological redshift |
|
Peculiar velocities [km/s] |
|
Redshift contribution from the CMB dipole motion |
|
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,