A python module used to model the shock cooling emission from double-peaked supernovae.
Project description
shock-cooling-curve
Introduction
This package can be used to fit double-peaked supernova light curves using the following shock cooling emission models:
-
A) For a blue supergiant (n = 3)
B) For a red supergiant (n = 3/2)
Package Setup
Before installation
This package utilizes pysynphot
in order to create synthetic photometry generated according to the analytical models
used. The user need to install pysynphot
before installing shock_cooling_curve
which includes downloading required
pysynphot
files and adding them to user path.
pysynphot
instructions:
Detailed instructions for how to set up pysynphot
on your system are provided here.
Here is the truncated version adapted from pysynphot
provided guidelines:
pip install pysynphot
- Two sets of
tar
files, 1 and 2 need to be downloaded and store in some local directory. - The terminal source file (accessible by calling
vi .zprofile
on MAC) should be opened and edited to include the path to thepysynphot
files set byexport PYSYN_CDBS=/my/local/dir/trds/
. Note that the variable should bePYSYN_CDBS
. - Check if this is done correctly by opening python in your terminal and calling the following command:
import os
os.environ['PYSYN_CDBS']
>>> '/my/local/dir/trds/'
Once you have this setup, you should be good to install shock_cooling_curve
!
Contributing
Any code changes, suggestions or improvements are welcome and can be submitted by making a PR! To develop this code, you can:
- Fork this repository. It will appear in your own GitHub account as https://github.com/<your_username>/shock_cooling_curve.
- Clone your forked
shock_cooling_curve
repository cd
into the foldershock_cooling_curve
andpip install -e .
Using this package
There are two files that have to be prepared before using this package.
-
The config file: A template for this file in provided under templates/config_template.ini. Simply make a copy of the file and fill out all the entries in the DEFAULT section. The BOUNDS section is optional.
-
The data file: This file containing the photometry data must be a csv. The column headers and template is under templates/phot_template.csv.
-
If you are unsure about the naming convention of filters when you include them in your photometry file, you can refer to filter_info.csv under templates.
Related Papers: The Circumstellar Environments of Double-Peaked, Calcium-strong Supernovae 2021gno and 2021inl
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file shock_cooling_curve-0.0.4.tar.gz
.
File metadata
- Download URL: shock_cooling_curve-0.0.4.tar.gz
- Upload date:
- Size: 51.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 144a3f5ef7a63e0c939ee97d9abe0efd197c215e411d6bd16728c8294f07b177 |
|
MD5 | e0bbbffae2354e7d073aadd92d6b9196 |
|
BLAKE2b-256 | df5340617adae649f249228386ca33c0f57fed54a33fe4e034d0c606da1d7366 |
File details
Details for the file shock_cooling_curve-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: shock_cooling_curve-0.0.4-py3-none-any.whl
- Upload date:
- Size: 52.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13b71187ba7c70ebb2dee0e576ae5880762ad1d65580b75b12bf8c75da904444 |
|
MD5 | 64b454ca4d287892d721925cd11fb0c3 |
|
BLAKE2b-256 | 60448569bb3166c8bc0222982586aa40c9a1441e611d983d15061d57ef4a3b4f |