SALT Home Page

Last Update: January 2012

Source code

SALT2

snfit-2.3.7.tar.gz latest release of SALT2 code, accepts a new format of lightcurves (see usage), gives same results as version 2.2.2b
snfit-2.2.2b.tar.gz as used in the SNLS 3-year analysis .
Several modifications were applied to the code since the first release:
Warnings:
  • Since the handling of magnitude systems is different from version 2-0, this code cannot be used without modifications to fit SNLS 1st year data.
  • Also, as the color law is now fully integrated in the pass-bands, the initial SALT2 templates (salt2_model_data-1-x.tar.gz) should not be used with this fitter as those templates were trained without the integration of the color law.

If you have any problems to compile the code, and especially if you find a fix that solves the issue :-), please let me know. See the usage page for some help.



Older versions, kept for the record :

snfit-2.2.2.tar.gz compatible with SNLS3 analysis, cvs tag SALT2-2-2-2, cannot compile with gfortran needed when lapack was compiled with it
snfit-2.2.1.tar.gz compatible with SNLS3 analysis, cvs tag SALT2-2-2-1, does not compile on mac os 10.6
snfit-2.0.1.tar.gz gives same results as first release of SALT2 code (snfit_src-2-0), but with bug fixes in fileutils (thanks to A. Becker)
snfit_src-2-0.tar.gz first release of SALT2 code, as used in astro-ph/0701828, cvs tag SALT2-RELEASE-2-0 (same as snfit_src-2-test-4.tar.gz).
Known bugs:
  • terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::erase Abort (core dumped) with 64 bit machines (David Rubin)
  • fit of redshift is just wrong when input z is too far from spectroscopic one, a fix is needed in the fitter (Steve Asztalos)

SALT1
snfit_src-1-3.tar.gz (ok with gcc 3.2->4.1, 64bit CPUs, but not with mac OS 10.4 with Intel Core Duo because no g77 compiler on fink for this machine)
snfit_src-1-2.tar.gz (compilation with configure, CERNLIB and CMT are not needed anymore, problems with 64bit CPUs)
snfit_src-1-1.tar.gz (ok with gcc 3.2->4.1, problems with CMT for some machines)
snfit_src-1-0.tar.gz (ok with gcc 3.2->3.3, problems with gcc 4.1)

Please read the INSTALL file in the root directory of this tar file for installation instructions. This version is the one used in Astier et al. 2005. All versions give exactly the same results, only the packaging and some C++ types have changed.
(Thanks to Pierre, Nicolas and Seb for the packaging and tests)

SALT1 Data, only for code version 1.0-1.3:
The data needed to run SALT1 comprise response functions for instruments/magnitude systems (Bessell, Landolt, Megacam), Vega spectrum and mags, spectral templates and polynomial corrections for SALT1.

snfit_data-1-0.tar.gz (cvs rev. rev-1-0)
includes all the data needed to run SALT1 on nearby UBVR SNe Ia light curves calibrated using Landolt stars and SNLS griz data (references can be found in the README files of this package). This version is the one used in Astier et al. 2005.