Skip to main content
Ctrl+K

AstroDB Toolkit

  • Getting Started
  • Creating a New Database
  • Working with databases
  • Utilities and support
  • Reference Information
  • Getting Started
  • Creating a New Database
  • Working with databases
  • Utilities and support
  • Reference Information

Section Navigation

  • Spectra
    • Converting Spectra
    • Modify an existing FITS header
    • Add a FITS header to a spectrum file
  • Getting Help
    • Frequently Asked Questions
  • Utilities and support
  • Spectra

Spectra#

  • Converting Spectra
  • Modify an existing FITS header
  • Add a FITS header to a spectrum file

Check if spectra are plottable#

Use the check_spectrum_plottable function to check if a spectrum is loadable by astropy.specutils and plottable. The matplotlib package needs to be installed to display the spectrum using show_plot=True.

from astrodb_utils.spectra import check_spectrum_plottable
file = <path to file>
plottable = check_spectrum_plottable(file, show_plot=True)
print plottable

> True

previous

Utilities and support

next

Converting Spectra

On this page
  • Check if spectra are plottable
Show Source

© Copyright 2024, Kelle Cruz, Arjun B. Savel, David Rodriguez.

Created using Sphinx 9.1.0.

Built with the PyData Sphinx Theme 0.18.0.