Skip to main content

Package used to apply telescope filters to spectra from Stars or Supernovae

Project description

spectra-filtering

image

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

tardis_spectrum_filtering-1.0.7.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

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

tardis_spectrum_filtering-1.0.7-py2.py3-none-any.whl (5.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file tardis_spectrum_filtering-1.0.7.tar.gz.

File metadata

File hashes

Hashes for tardis_spectrum_filtering-1.0.7.tar.gz
Algorithm Hash digest
SHA256 199d39061a1c1271faf87faeccd57999240eaa7255611e75c72f16ca32abeb95
MD5 697c58652494c6dd344efc11fd5c56e1
BLAKE2b-256 e1586eaa7c1a3bf4050584e2ae5fe108a9b9bf038d0992f6803a9bff3b8dfdac

See more details on using hashes here.

File details

Details for the file tardis_spectrum_filtering-1.0.7-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for tardis_spectrum_filtering-1.0.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 357335b45d9573937b3b925446cb6fd51fabee5570ff4e31b691b9b58a6609f9
MD5 1ea9eaf1b5847d601ec5bad611e8a7ee
BLAKE2b-256 adfc55ad3a00c6f003d0c98e99573f99296a438af88e1904a32b2670ce35e576

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