Template

class hipparchus.Template(wavelength, emission)[source]

Bases: object

Spectral template object.

Parameters
wavelengthndarray

Wavelengths in Angstroms

emissionndarray

Emission from the spectral template.

Methods Summary

from_npy(path[, norm])

Load spectral template from npy pickle.

plot(self[, ax])

Plot the transmittance

Methods Documentation

classmethod from_npy(path, norm=True)[source]

Load spectral template from npy pickle.

Parameters
pathstr

Path to emission file

normbool (optional)

If True, normalize the template such that the sum of the template over all wavelengths is equal to unity; else skip normalization.

plot(self, ax=None, **kwargs)[source]

Plot the transmittance

Parameters
axAxes (optional)

Axis object

kwargsdict

Keyword arguments to pass to the plot command

Returns
axaxis