Skip to content

SALT2 on Homebrew

Rui Pereira edited this page Jan 28, 2014 · 4 revisions

If you have Homebrew, you can easily install SALT2 on OS X by doing: brew install salt. Once done, the installation can be tested with: brew test -v salt.

The current formula installs SALT2.4, which is the code version used for the Joint SDSS/SNLS Lightcurve Analysis. If needed, you should also install the gfortran dependency. The data directory (the SALTPATH) will be created in the Cellar, with the SALT model, instrument and magnitude system files:

$ tree -L 2 `brew --prefix salt`/data

/usr/local/opt/salt/data
├── Instruments
│   ├── 4Shooter2
│   ├── ACSWF
│   ├── Keplercam
│   ├── Megacam-PSF
│   ├── NICMOS2
│   ├── SDSS
│   ├── SNLS3-Landolt-model
│   ├── SNLS3-Megacam-model
│   ├── Swope
│   ├── Swope2
│   └── USNO40
├── MagSys
│   ├── B12-AB-off.dat
│   ├── BD17-jla1.dat
│   ├── BD17-snls3.dat
│   ├── SDSS-AB-off.dat
│   ├── Vega0.dat
│   ├── ab-spec.dat
│   ├── alpha_lyr_stis_005.ascii
│   ├── bd_17d4708_stisnic_002.ascii
│   └── bd_17d4708_stisnic_003.ascii
├── fitmodel.card
└── salt2-4
    ├── salt2_color_correction.dat
    ├── salt2_color_dispersion.dat
    ├── salt2_lc_dispersion_scaling.dat
    ├── salt2_lc_relative_covariance_01.dat
    ├── salt2_lc_relative_variance_0.dat
    ├── salt2_lc_relative_variance_1.dat
    ├── salt2_spec_covariance_01.dat
    ├── salt2_spec_variance_0.dat
    ├── salt2_spec_variance_1.dat
    ├── salt2_template_0.dat
    └── salt2_template_1.dat

You can add your own instrument files into the same directory and update the fitmodel.card file appropriately. For more information and documentation check SALT's website.

Clone this wiki locally