Skip to main content

No project description provided

Project description

SupSpec

Hello! Thank you for using SupSpec!
SupSpec (Supernova Spectra Fitter) is a quick tool which aids in finding the velocity structure of spectral features throughout the supernova ejecta. This code is designed to require minimal user interaction and can ingest an arbitrarily large number of spectra. With it, one can infer both the velocity of supernova ejecta expansion, and the relative depths of various elements in the ejecta. The user can input spectral data in a range of formats (.txt, .data, .out, etc.), choose a spectral line and window, and receive an output of graphs.

Installation

SupSpec is available on pip and can be installed using:

pip install supspec

Using SupSpec

Before using SupSpec, store all your data in a folder called "data". Then, open terminal at the location and run run.py.

python run.py 

You can also pass in 3 arguments at the terminal: mode, directory, and extension.

  • Mode: -v at the end of the command activates verbose mode. The default is quiet mode.
  • Directory: -d <directory> at the end of the command sets that directory as the directory which holds spectroscopy data. The default directory is a folder called "data" inside the current directory.
  • Extension: -e <extension> extends the type of file for spectroscopy data in addition to .txt, .data, or .out files.

In verbose mode, the user can check the window of each spectrum, change the number of walkers and iterations, and view the results of every walker. In quiet mode, figures will not pop up but simply stored inside the Result folder.

For example, if I wish to use verbose mode, and my data is stored in a folder called spectra/. I would type in the command:

python run.py -v -d spectra

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

supspec-1.0.9.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

supspec-1.0.9-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file supspec-1.0.9.tar.gz.

File metadata

  • Download URL: supspec-1.0.9.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.4

File hashes

Hashes for supspec-1.0.9.tar.gz
Algorithm Hash digest
SHA256 796893b250b3118962e895b75e711069f8a137a152a6aac48f61e1b00f313e7b
MD5 ca0b3ccf79db522b960bd7c9a3b84f47
BLAKE2b-256 2bae2b1363d3d3f43e09a385ccf04f00009d49422a66860ffdde779e28fdef87

See more details on using hashes here.

File details

Details for the file supspec-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: supspec-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.4

File hashes

Hashes for supspec-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 265cec28e01c07f3e2fa3a59df53dd6219be15ecb2cebc95233282bc81de9311
MD5 b072b4bff6380f2582f502807a9edc3e
BLAKE2b-256 54140390ec9614718f24da89fdc0d45d2ed4197799b4cc737020a78da362a4f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page