Package used to apply telescope filters to spectra from Stars or Supernovae
Project description
spectra-filtering
Package used to apply telescope filters to spectra from Stars or Supernovae
- Free software: MIT License
How to import and use
-
Import using "import TARDIS_Spectrum_Filtering.Spectrum_Filtering
-
Comes with the following functions:
-
get_url_from_config(config_file_path): Obtain the URL of the spectrum filter file from the yml config file. returns url, safename. safename can be used in the download_filter function as filename
-
download_filter(url, filename): Download the filter into the Filters/ Directory
-
interp_filter(spectrum_to_filter, filter_name): Interpolates the wavelengths in the filter's xml file with the wavelengths given by the spectrum so they become compatible
-
apply_filter(spectrum, chosen_filter): Applies the filter to the spectrum, outputting a filtered spectrum
-
plot_original_spectrum(spectrum): Plots the spectrum you input
-
plot_filter(spectrum, chosen_filter): Plots the filter's transmission curve
-
plot_filtered_spectrum(spectrum, chosen_filter): Plots the filtered spectrum
-
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tardis_spectrum_filtering-1.0.7.tar.gz.
File metadata
- Download URL: tardis_spectrum_filtering-1.0.7.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
199d39061a1c1271faf87faeccd57999240eaa7255611e75c72f16ca32abeb95
|
|
| MD5 |
697c58652494c6dd344efc11fd5c56e1
|
|
| BLAKE2b-256 |
e1586eaa7c1a3bf4050584e2ae5fe108a9b9bf038d0992f6803a9bff3b8dfdac
|
File details
Details for the file tardis_spectrum_filtering-1.0.7-py2.py3-none-any.whl.
File metadata
- Download URL: tardis_spectrum_filtering-1.0.7-py2.py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
357335b45d9573937b3b925446cb6fd51fabee5570ff4e31b691b9b58a6609f9
|
|
| MD5 |
1ea9eaf1b5847d601ec5bad611e8a7ee
|
|
| BLAKE2b-256 |
adfc55ad3a00c6f003d0c98e99573f99296a438af88e1904a32b2670ce35e576
|