next up previous
Next: Return values Up: Function magt.pro Previous: Function magt.pro

Calling sequence of magt.pro

The calling sequence for magt is:

result=magt(z,t,s,$\Omega_M$, $\Omega_\Lambda$,[H0=x1],[Mb=x2],[mscript=x3],[w=y],/filter,[/silent],[/snframe]

Parameters in [ ] are optional. z is the redshift (scalar), t is the time offset from maximum in days (e.g. 10 for 10 days after peak of light curve, -3 for 3 days before peak of lightcurve). t can be scalar or an array. The parameter s is the stretch factor, $\Omega_M$, $\Omega_\Lambda$ describe the cosmology. If you use the parameter H0, magmax uses a B band magnitude for the normalisation of the spectrum of -19.46 mag. If you want to change this, use the parameter Mb (x2 has to be the new normalisation magnitude). You can also specify Mb alone, then H0 is set to 63 $ km/(Mpc\,\, s)$ if you don't specify it. H0 has always to be given in terms of $ km/(Mpc\,\, s)$. Instead of using H0 and Mb, you can use the parameter mscript (mscript=Mb-5 log H0 +25). If you don't make use of mscript, Mb or H0, the default is used (Mb=-19.46 and H0 = 63 $ km/(Mpc\,\, s)$). If w=y is used then y is constrained by $-1 \leq y \leq 0$ If omitted, w is internally set to -1. /filter has to be one of the following:

Band Keyword
R /r
I /i
The keyword /snframe can be used to calculate in the SN restframe instead of the observer frame. NOTE that you can only specify one keyword for the filter per call to magt. If you want results in R and I you have to use two calls to magt.
The keyword /silent suppresses the printout of the parameters after magmax was called.


next up previous
Next: Return values Up: Function magt.pro Previous: Function magt.pro
Peter E. Nugent Jr.
1998-10-01