Image¶
- class sofia_redux.visualization.models.low_model.Image(*args, **kwargs)[source]¶
Bases:
LowModel
Low-level data model for an image.
- Attributes:
- default_ndimsint
Default data dimensions.
- kindstr
The kind of data contained, eg. transmission, flux, error.
- kind_namesdict
Extension names corresponding to particular data kinds.
Methods Summary
convert
(target_unit, wavelength, wavelength_unit)Convert units.
Calculate the mean of the contained data.
Methods Documentation
- convert(target_unit: str, wavelength: Data, wavelength_unit: str) None [source]¶
Convert units.
- Parameters:
- target_unitstr
Unit to convert to.
- wavelengtharray-like
Wavelength data array associated with current data.
- wavelength_unitstr
Wavelength units.
- Raises:
- ValueError
If conversion cannot be completed.