Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
usage [2015/01/06 19:33] admin [Old light curve format] |
usage [2015/01/08 17:58] (current) 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 lightcurve1 lightcurve2 ... -p parameter_filename -o output_filename |
| | ||
- | ''filename'' is the path of the output file of ''snfit'': (i.e. ''result_salt.dat'' or ''result_salt2.dat'') | + | ''parameter_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|}} | A simple plotter in python (requires matplotlib and numpy) can be downloaded here {{:snplot.py|}} | ||
Line 222: | Line 226: | ||
snfit jla_light_curves/lc-03D4ag.list -o res-03D4ag.txt | snfit jla_light_curves/lc-03D4ag.list -o res-03D4ag.txt | ||
- | snlc jla_light_curves/lc-03D4ag.list -p 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 lc_Salt2Model_MEGACAMPSF_*.dat | + | 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]] | ||