SNID Docker
This is a Dockerized version of SNID. The Supernova spectral template matching code SNID by Blondin & Tonry (2007) is containerized into Docker package. Current version is only setup for ARM64 (fancy named Apple Silicon) MacOS, in future I plan to add Linux AMD/ARM64 support as well.
Installation
Simply run this one line installer in your terminal
$ curl -sL https://install-scripts.bose.dev/snid-docker_macos.sh | sudo sh
Installation is fully automatic, it will place an executable doSnid in your system PATH, to call the SNID Docker. Read the post installation notice carefully. The notice mainly displays (1) instructions to configure the XQuarts application for SNID to work, and (2) help on commandline usage. You can always read the help and instructions by running doSnid -h.
Requirements
- Of course Docker Desktop for your OS
- XQuarts for MacOS
- In XQuartz application, open "Settings" from menu, go to the “Security” tab and make sure to enable “Allow connections from network clients”.
Usage
To run SNID on a spectrum, simply run
$ doSnid spectrum.txt
In addition to the standard SNID template set, there are two custom template sets available that can be selected at runtime.
- BIG - A bigger dataset of ccSNe sample.
- SLSN - Includes only a SLSNe sample.
One can select these template sets with flag --templates as
$ doSnid --templates=Big spectrum.txt
# OR
$ doSnid --templates=SLSN spectrum.txt
For doSnid (SNID Docker runner) commandline help you can always run
$ doSnid --help
To display commandline help for actual SNID code, simply run doSnid without any arguments.