Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
usage [2014/01/16 15:06] admin [Complete installation scripts] |
usage [2015/01/08 17:57] admin [Other tools] |
||
---|---|---|---|
Line 4: | Line 4: | ||
Go [[old_usage|here]] for an older versions of this usage page for code version 2.0 (first SALT2 release) | Go [[old_usage|here]] for an older versions of this usage page for code version 2.0 (first SALT2 release) | ||
+ | |||
+ | ===== Complete installation scripts ===== | ||
+ | |||
+ | <color orange> Recommended if you are not familiar with the package organization and want to reproduce published results.</color> | ||
+ | |||
+ | Download one of the following scripts in the directory where you want to install the package and execute it (you need to do a ''chmod u+x xxx-installation.sh'' first, you also need to have ''wget'' installed). | ||
+ | |||
+ | * {{::jla-installation.sh}}, as in Betoule et al. (2014), SDSS-II/SNLS3 Joint Light-curve Analysis, [[http://supernovae.in2p3.fr/sdss_snls_jla/ReadMe.html|link to the data release page]]. | ||
+ | * {{::snls3-installation.sh}}, as in Guy et al. (2010), SNLS 3 year analysis, [[https://tspace.library.utoronto.ca/snls/|link to the data release page]]. | ||
+ | | ||
+ | You can check the agreement of the content of the output file ''result_salt2.dat'' with the released result for the SN in the test directory ''result_salt2_xxx.dat''. | ||
===== Setup of model data ===== | ===== Setup of model data ===== | ||
Line 67: | Line 78: | ||
* Intel Core 2 Duo with Mac OS 10.6.8 (Snow Leopard) | * Intel Core 2 Duo with Mac OS 10.6.8 (Snow Leopard) | ||
- | ===== Complete installation scripts ===== | + | Rui : 'For compilation on my Mac (and hence on the homebrew formula) I had to force $LDFLAGS with "-L/path/to/libgfortran -lgfortran"' |
- | Download one of the following scripts in the directory where you want to install the package and execute it (you need to do a ''chmod u+x xxx-intallation.sh'' first, you also need to have ''wget'' installed). | + | |
- | * {{::jla-intallation.sh}}, as in Betoule et al. (2014), Joint SDSS-II/SNLS3 analysis, [[|link to the data release page]]. | ||
- | * {{::snls3-intallation.sh}}, as in Guy et al. (2010), SNLS 3 year analysis, [[|link to the data release page]]. | ||
- | | ||
- | You can check the agreement of the content of the output file ''result_salt2.dat'' with the released result for the SN in the test directory ''result_salt2_xxx.dat''. | ||
===== Light curves Input format ===== | ===== Light curves Input format ===== | ||
Line 207: | Line 213: | ||
Photometric redshifts and fit of spectroscopic data are not supported in this release. | Photometric redshifts and fit of spectroscopic data are not supported in this release. | ||
- | You can write the light curves of the model with ''snlc'' : | + | ===== Other tools ===== |
+ | |||
+ | You can write the light curves of the model with ''snlc'' (note: you need snfit v 2.4.2 or above to run it with new lightcurve format): | ||
snlc writes an ASCII file with the lightcurve of the model | snlc writes an ASCII file with the lightcurve of the model | ||
- | usage : snlc lightcurve1 lightcurve2 ... -p filename | + | usage : snlc lightcurve_filename1 lightcurve_filename2 ... -p parameter_filename -o output_lightcurve_filename |
| | ||
''filename'' is the path of the output file of ''snfit'': (i.e. ''result_salt.dat'' or ''result_salt2.dat'') | ''filename'' is the path of the output file of ''snfit'': (i.e. ''result_salt.dat'' or ''result_salt2.dat'') | ||
+ | A simple plotter in python (requires matplotlib and numpy) can be downloaded here {{:snplot.py|}} | ||
+ | If you have a more fancy version of it, please share it. Example : | ||
+ | |||
+ | snfit jla_light_curves/lc-03D4ag.list -o res-03D4ag.txt | ||
+ | snlc jla_light_curves/lc-03D4ag.list -p res-03D4ag.txt -o model-03D4ag.list | ||
+ | snplot.py --data jla_light_curves/lc-03D4ag.list --model model-03D4ag.list --mag | ||
+ | |||
+ | ===== Other implementations of the model and light-curve fitter ===== | ||
+ | - [[http://das.sdss2.org/ge/sample/sdsssn/SNANA-PUBLIC|SNANA]] | ||
+ | - [[https://sncosmo.readthedocs.org|SNCosmo]] | ||