COMPUTING MAGNITUDES
AND COLORS
You can download
the program to compute magnitudes and colors for the SEDs you get with
GRASIL or for SSPs.
In color.tar you will find the
following files:
- ci.for, ci_ini.f90, cisub.for,
nr.f90, nrtype.f90, nrutil.f90, num90.f90: these are the program files to
compile
- bande.dat: is the input file
for the program, containing the definition of the bands (the references for
the adopted transmission curves are written in this file)
- SED_SSP.out, colSED_SSP.out,
and example.0, colexample.0, colevol.out: some example files (see
explanations below)
--------------------
If you want to compute
magnitudes and colors for SEDs obtained with GRASIL:
- suppose the executable name is
color.exe, and the SED file name is example.0, then give the
command >color example.0 The program writes
the output in a file named colexample.0 (i.e. adds 'col' at the
beginning of the file name given as argument) containg absolute magnitudes and
a table with the colors.
- if you need to have apparent
magnitudes and colors for a SED at a given redshift and a given cosmology then
give a command like this:
>color example.0 redshift=1.0 omega=0.3 H_o=70. lambda=0.7
In this case there are 2 output files: colexample.0 as before,
but with apparent magnitudes instead of absolute, and colevol.out (always
this file name independently of the name of the input SED file) that contains
the same information as colexample.0 but written in columns. Thus if you
run the redshift evolution of a SED you can for instance rename colevol.out
and recursevely append the results.
--------------------
If you want to compute
magnitudes and colors for the SSPs SEDs:
- the program expects an input file SED
named SED_SSP.out (with the format that you get with per_SSP.f90
and per_SSP.dat, see explanations here).
Write the command >color SED_SSP.out The
output is in a file named colSED_SSP.out containing absolute magnitudes
and a table with colors. In this case the computation of mags and colors
with redshift has not been implemented (even if it can be done with a small
modification in the code), because the redshift evolution is more meaningful
for a galaxy.