Bases: object
A class describing a single order for a High Resolutoin Spectrograph observation.
| Parameters: | order: integer
region: list, tuple, or `~numpy.ndarray`
flux: `~numpy.ndarray`
wavelength: `~numpy.ndarray`
order_type: str
flux_unit: `~astropy.units.UnitBase` instance or str, optional
wavelength_unit: `~astropy.units.UnitBase` instance or str, optional
|
|---|
Attributes Summary
| flux | |
| flux_unit | |
| order | |
| order_type | |
| region | |
| wavelength | |
| wavelength_unit |
Methods Summary
| extract_spectrum() | Extract 1D spectrum from the information provided so far and |
| set_flux_from_array(data[, flux_unit]) | Given an array of data of fluxes, set the fluxes for |
| set_order_from_array(data) | Given an array of data which has an order specified at each pixel, |
| set_wavelength_from_array(data, wavelength_unit) | Given an array of wavelengths, set the wavelength for each pixel coordinate in region. |
| set_wavelength_from_model(model, params, ...) | Given an array of wavelengths, set the wavelength for each pixel coordinate in region. |
Attributes Documentation
Methods Documentation
Extract 1D spectrum from the information provided so far and createa Spectrum1D object
| Parameters: | data: `~numpy.ndarray`
flux_unit: `~astropy.units.UnitBase` instance or str, optional
|
|---|
| Parameters: | data: `~numpy.ndarray`
|
|---|
| Parameters: | data: `~numpy.ndarray`
wavelength_unit: `~astropy.units.UnitBase` instance or str, optional
|
|---|
| Parameters: | model: function
params: `~numpy.ndarray` wavelength_unit: `~astropy.units.UnitBase` instance or str, optional
**kwargs:
|
|---|