ObservationMetaData#
- class gammapy.data.ObservationMetaData[source]#
Bases:
MetaData
Metadata containing information about the Observation.
- Parameters:
- obs_info
ObsInfoMetaData
The general observation information.
- pointing
PointingInfoMetaData
The pointing metadata.
- target
TargetMetaData
The target metadata.
- creation
CreatorMetaData
The creation metadata.
- location
EarthLocation
or str, optional The observatory location.
- deadtime_fractionfloat
The observation deadtime fraction. Default is 0.
- optionaldict, optional
Additional optional metadata.
- obs_info
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.Attributes Summary
Configuration for the model, should be a dictionary conforming to [
ConfigDict
][pydantic.config.ConfigDict].Methods Summary
from_header
(header[, format])Create and fill the observation metadata from the event list metadata.
Attributes Documentation
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'forbid', 'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict
][pydantic.config.ConfigDict].
Methods Documentation
- classmethod from_header(header, format='gadf')[source]#
Create and fill the observation metadata from the event list metadata.
- Parameters:
- headerdict
Input FITS header.
- formatstr
The header data format. Default is gadf.
- __init__(**data)#
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.- Parameters:
data (Any)
- Return type:
None
- classmethod __new__(*args, **kwargs)#