gals/
ajs_dm_k.pro
This function returns some combination of the distance modulus, K-correction and evolution correction for a galaxy at a redshift z.
Routines
result = ajs_dm_k(z [, band=string] [, nodm=bool] [, q0=float] [, q1=float] [, coeffs=coeffs] [, kc=kc] [, vmatrix=vmatrix] [, lambda=lambda] [, rmatrix=rmatrix] [, zvals=zvals])
Includes K-correction if band keyword is set, and evolution correction if q0 and/or q1 is set.
ajs_dm_k_test
Test ajs_dm_k
Routine details
topajs_dm_k
result = ajs_dm_k(z [, band=string] [, nodm=bool] [, q0=float] [, q1=float] [, coeffs=coeffs] [, kc=kc] [, vmatrix=vmatrix] [, lambda=lambda] [, rmatrix=rmatrix] [, zvals=zvals])
Includes K-correction if band keyword is set, and evolution correction if q0 and/or q1 is set. K(z) and/or E(z) without the distance modulus if /nodm is set.
Uses Michael Blanton's K-correct code, with coefficients of a typical galaxy for the K-corrections.
Return value
DM(z) + K(z) - E(z), where E(z) = q0 * (1 + q1 * z) * z
Parameters
- z in required type=fltarr or dblarr
Keywords
- band in optional type=string
Band for K-corrections: choose from ugrizYJHK
- nodm in optional type=bool
Set /nodm to return K(z) - E(z) only (no distance modulus)
- q0 in optional type=float
- q1 in optional type=float
q0 and q1 define the evolution correction, E(z) = q0 * (1 + q1 * z) * z
- coeffs in optional
kcorrect coefficients. Default to typical coefficients for a galaxy. Array of 5 elements to give same coefficients to all galaxies, or array of [5, n_elements(z)] to specify coefficients for each galaxy
- kc out optional
k (+ e) corrections, without distance modulus
- vmatrix in out optional
supply a variable name here to speed up multiple executions
- lambda in out optional
supply a variable name here to speed up multiple executions
- rmatrix in out optional
for repeated execution with same z, same band, but with different coeffs, supply a variable name here
- zvals in out optional
for repeated execution with same z, same band, but with different coeffs, supply a variable name here
Author information
Author: | Anthony Smith |
History: | 25 Jan 2008: Added evolution corrections 5 Mar 2008: Added coeffs, kc, vmatrix, lambda, rmatrix, zvals keywords |
File attributes
Modifcation date: | Fri Jun 6 08:19:26 2008 |
Lines: | 188 |
Docformat: | rst rst |