Spectrum1DRefModelLayer¶
-
class
specviz.core.data.Spectrum1DRefModelLayer(data, model=None, *args, **kwargs)[source]¶ Bases:
specviz.core.data.Spectrum1DRefLayerA layer for spectrum with a model applied.
Parameters: - data (numpy.ndarray) – The flux.
- model (
modeling) – The model - kwargs (args,) – Arguments passed to the
Spectrum1DRefobject.
Attributes Summary
modelSpectrum model. parent_maskA bitwise combination of the data mask and the Spectrum1DRefModelLayer‘s parent’s layer mask.unmasked_dataFlux quantity with no layer mask applied. unmasked_dispersionDispersion quantity with no layer mask applied. unmasked_raw_uncertaintyFlux uncertainty with mask applied. Methods Summary
from_formula(models, formula)Create a layer from an operation performed on other models from_parent(parent[, model, layer_mask, copy])Create a duplicate child layer from a parent layer Attributes Documentation
-
model¶ Spectrum model.
-
parent_mask¶ A bitwise combination of the data mask and the
Spectrum1DRefModelLayer‘s parent’s layer mask. This is useful when dealing with slices of spectra in which you want the model layer to be the visible size of the parent in all cases (whereasfull_maskwill always be the selected region)*[]:
-
unmasked_data¶ Flux quantity with no layer mask applied. Use the parent layer mask for cases wherein a slice of the spectrum is being used.
-
unmasked_dispersion¶ Dispersion quantity with no layer mask applied. Use the parent layer mask for cases wherein a slice of the spectrum is being used.
-
unmasked_raw_uncertainty¶ Flux uncertainty with mask applied. Returns a masked array containing a Quantity object. Use the parent layer mask for cases wherein a slice of the spectrum is being used.
Methods Documentation
-
classmethod
from_formula(models, formula)[source]¶ Create a layer from an operation performed on other models
Parameters: Returns: Result of the operation
Return type: result_model