Here is a description of all functions included with the LRT libraries. For all cases, the following definitions apply:
real*8 comp(4) | INPUT. Specific luminosities of each template component. This is vector is typically an output of the kca subroutine. |
real*8 comp(4) | INPUT. Specific luminosities of each template component. This is vector is typically an output of the kca subroutine. | |
real*8 ebv | INPUT. Value of E(B-V) applied to the AGN SED. | |
real*8 igm | INPUT. Value of the IGM absorption strength. | |
real*8 z | INPUT. Redshift of the object. | |
real*8 jymodtot(nchan) | OUTPUT. Vector that holds the expected fluxes in each filter. |
real*8 z | INPUT. Redshift of the object. |
character*100 filename | INPUT. Name of the training set file. See below for the description of the file format. | |
integer niter | INPUT. Number of iterations for estimating the corrections. Convergence is somewhat slow, but 10 or 15 iterations are usually good enough. | |
real*8 chifrac | INPUT.Fraction of objects to use, arranged by chi-squared. | |
real*8 corr(nchan) | OUTPUT. Array of size nchan with the zero point corrections, such that zeropoint/corr is the corrected zero point. | |
integer op | INPUT. 0 if input is in fluxes (in Jy) and 1 if in magnitudes. |
real*8 mag(nchan) | INPUT. Array of size nchan with the Magnitudes or Fluxes (in Jy) in each band arranged in the same order as in the photometry description file. | |
real*8 emag(nchan) | INPUT. Array of size nchan with the magnitude or fluxes (in Jy) errors in each band | |
integer maguse(nchan) | INPUT. Array of size nchan with the use flags. If maguse(j)=1, the j-th band will be used for estimating photometric redshifts. If maguse(j)=0, it will not. Still, a modeled magnitude or flux will be returned for this filter. | |
real*8 z | INPUT. Redshift of the object. | |
real*8 z0 | INPUT. Redshift of the K-correction (typically 0.d0). | |
real*8 magmod(nchan) | OUTPUT. Array of size nchan in which the best fit model fluxes or magnitudes are returned. | |
real*8 magcorr(nchan) | OUTPUT. Array of size nchan in which the K-corrections will be returned. mag - magcorr = K-corrected magnitude. Flux/Flux_corr= K-corrected flux. | |
real*8 comp(4) | OUTPUT. Array in which the best fit specific luminosities of each component are returned | |
real*8 cov(4,4) | OUTPUT. Covariance matrix of the vector comp. | |
real*8 ebv | OUTPUT. Best fit value of E(B-V) applied to the AGN SED. | |
real*8 igm | OUTPUT. Best fit value of the IGM absorption strength. | |
real*8 chi2 | OUTPUT. χ2 of the best fit. | |
integer op | INPUT. 0 if input is in Fluxes (in Jy) and 1 if in magnitudes. |
string filtname | INPUT. The name of the photometry description file ('bandmag.dat' in the test programs for example.) | |
integer ired | INPUT. If 1, AGN reddenning will be variable. If 0, it will be fixed to E(B-V)=0. | |
integer iigm | INPUT. If 1, IGM strength will be variable. If 0, it will be fixed to 1.0. | |
integer verbose | INPUT. If 1, information will be print to the STDOUT. If 0, nothing will be printed except for possible errors. |
real*8 mag(nchan) | INPUT. Array of size nchan with the Magnitudes or Fluxes (in Jy) in each band arranged in the same order as in the photometry description file. | |
real*8 emag(nchan) | INPUT. Array of size nchan with the magnitude or fluxes (in Jy) errors in each band | |
integer maguse(nchan) | INPUT. Array of size nchan with the use flags. If maguse(j)=1, the band will be used for estimating photometric redshifts. If maguse(j) = 0, it will not. Still, a modeled magnitude or flux will be returned for this filter. | |
real*8 zphot | OUTPUT. Photometric redshift output variable. | |
real*8 chigal | OUTPUT. χ2 + Prior of the best fit | |
real*8 chinop | OUTPUT. χ2 of the best fit. | |
integer op | INPUT. 0 if input is in Fluxes (in Jy) and 1 if in magnitudes. | |
integer chi2zop | INPUT. If >0, the χ2 distribution of the object for which a photometric redshift is calculated will be written to the fort.90 file. The first line has two columns, the chi2zop flag value (should be the galaxy ID for easier recognition) and the number of lines in the redshift grid, N. The following N lines show the distribution and have three columns: redshift, χ2, χ2+prior. Following objects on the same run are appended to the file. |
string filtname | INPUT. The name of the photometry description file ('bandmag.dat' in the test programs for example.) | |
integer ired | INPUT. If 1, AGN reddenning will be variable. If 0, it will be fixed to E(B-V)=0. | |
integer iigm | INPUT. If 1, IGM strength will be variable. If 0, it will be fixed to 1.0. | |
real*8 zmin | INPUT. Lower limit to search for best fit photometric redshift. | |
real*8 zmax | INPUT. Upper limit to search for best fit photometric redshift. | |
real*8 dz | INPUT. Redshift grid separation. | |
integer verbose | INPUT. If 1, information will be print to the STDOUT. If 0, nothing will be printed except for possible errors. |
real*8 z | INPUT. Redshift. |
real*8 comp(4) | INPUT. Specific luminosities of each template component. This vector is an output of kca. | |
real*8 ebv | INPUT. Value of E(B-V) applied to the AGN SED. | |
real*8 igm | INPUT. Value of the IGM absorption strength. | |
integer jchan | INPUT .Band in which the magnitude limits applies. | |
real*8 mlim | INPUT. Faint apparent magnitude limit. | |
real*8 zlim | OUTPUT. Maximum redshift to which galaxy can be found. | |
real*8 area | INPUT. Area of the survey in square degrees. |