SpecData

class measure_extinction.stardata.SpecData(type)[source]

Bases: object

Spectroscopic data (used by StarData)

Attributes:

wavesarray of floats

wavelengths

fluxesarray of floats

fluxes

uncsarray of floats

uncertainties on the fluxes

nptsarray of floats

number of measurements contributing to the flux points

n_wavesint

number of wavelengths

wmin, wmaxfloats

wavelength min and max

Parameters:
type: string

descriptive string of type of data (e.g., IUE, FUSE, IRS)

Methods Summary

rebin_constres(waverange, resolution)

Rebin the spectrum to a fixed spectral resolution and min/max wavelength range.

Methods Documentation

rebin_constres(waverange, resolution)[source]

Rebin the spectrum to a fixed spectral resolution and min/max wavelength range.

Parameters:
waverange2 element array of astropy Quantities

Min/max of wavelength range with units

resolutionfloat

Spectral resolution of rebinned spectrum

Returns:
measure_extinction SpecData

Object with rebinned spectrum