Skip to content

Different livetime estimates for a run using Gammapy #339

Description

@aaguasca

There is a difference between estimating the livetime of a run using Gammapy:

  1. observation.observation_live_time_duration

  2. observation.events.observation_live_time_duration

where observation is a gammapy.data.Observation.

The former excludes the dead time from the sum of GTI through observation.observation_time_duration, while the second considers the effective time computed through MCP by employing the ontime * deadc.

I think the difference arises from the fact that the GTI interval in MCP is defined as the elapsed time, and the elapsed time is different from the on-time in MAGIC+LST. As a result, the livetime from the observation object (1) is wrong, and one should use the livetime from the events object (2).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions