Skip to content

HIT: Update livetime calculation #2356

@greglucas

Description

@greglucas

From: @gmitch3088: During commissioning, we discovered that the way we thought our FSW was handling the instrument live time was incorrect and a value from a different register (but similar way to calculate live time) was being populated into ERATES_00. As a result, we will need to change our L1A to L1B processing to take into account the different method of calculating the live time fraction. This calculation is described in Sec. 6.2 of the new version of the Algorithm Document attached. Essentially, instead of simply dividing the value of ERATES_00 by 270, you now check the value in ERATES_00, and depending on the value, employ one of 3 linear equations.

From @vmartinez-cu: here’s the section of the L1B processing code that converts livetime counter (a.k.a. ERATES_00) to livetime by dividing it by 270 (a.k.a LIVESTIM_PULSES).

livetime = l1a_counts_dataset["livetime_counter"] / LIVESTIM_PULSES

I believe this is where the update will need to be made to instead check the value of the livetime counter and apply the appropriate linear equation to get the livetime fraction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HelperIns: HITRelated to the HIT instrumentLevel: L1Level 1 processing

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions