CoherentArtifactMegacomplex
- class glotaran.builtin.megacomplexes.coherent_artifact.coherent_artifact_megacomplex.CoherentArtifactMegacomplex(*, label: str, dimension: str = 'time', type: str = 'coherent-artifact', order: int, width: Parameter | str | None = None)[source]
Bases:
Megacomplex
Method generated by attrs for class CoherentArtifactMegacomplex.
Attributes Summary
Methods Summary
Calculate the megacomplex matrix.
Finalize a dataset.
Get the dataset model type.
Get the type string.
Get the type for a type string.
Get all type strings.
Methods Documentation
- calculate_matrix(dataset_model: DatasetModel, global_axis: ArrayLike, model_axis: ArrayLike, **kwargs)[source]
Calculate the megacomplex matrix.
- Parameters:
dataset_model (DatasetModel) – The dataset model.
global_axis (ArrayLike) – The global axis.
model_axis (ArrayLike) – The model axis.
**kwargs – Additional arguments.
- Returns:
tuple[list[str], ArrayLike] – The clp labels and the matrix.
.. # noqa (DAR202)
.. # noqa (DAR401)
- finalize_data(dataset_model: DatasetModel, dataset: Dataset, is_full_model: bool = False, as_global: bool = False)[source]
Finalize a dataset.
- Parameters:
dataset_model (DatasetModel) – The dataset model.
dataset (xr.Dataset) – The dataset.
is_full_model (bool) – Whether the model is a full model.
as_global (bool) – Whether megacomplex is calculated as global megacomplex.
- classmethod get_dataset_model_type() type | None
Get the dataset model type.
- Return type:
type | None
- get_irf_parameter(irf: IrfMultiGaussian, global_index: int | None, global_axis: ArrayLike) tuple[float, float] [source]