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 [2015/01/07 21:59] admin [Other tools] |
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 69: | Line 80: | ||
Rui : 'For compilation on my Mac (and hence on the homebrew formula) I had to force $LDFLAGS with "-L/path/to/libgfortran -lgfortran"' | Rui : 'For compilation on my Mac (and hence on the homebrew formula) I had to force $LDFLAGS with "-L/path/to/libgfortran -lgfortran"' | ||
- | ===== Complete installation scripts ===== | ||
- | 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''. | ||
===== Light curves Input format ===== | ===== Light curves Input format ===== | ||
Line 211: | Line 215: | ||
===== Other tools ===== | ===== Other tools ===== | ||
- | You can write the light curves of the model with ''snlc'' (note: you need snfit v 2.4.1 or above to run it with new lightcurve format): | + | 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'') |