A first version of a new LightCurveEstimator
was introduced shortly after Erlangen coding sprint. The general approach is described
in pig 11.
The PIG has been withdrawn because it is already partly implemented and parts of the discussion are no longer relevant given the changes introduced in the data reduction since Erlangen.
LightCurveEstimator
relies on dataset time start and stop information stored asmeta
.- to have a cleaner, treatment we have introduced a
GTI
table on the various datasets
- to have a cleaner, treatment we have introduced a
LightCurveEstimator
should rather deal withGTI
LightCurveEstimator
assumes on dataset per time bin and uses only the binning given by the list of dataset- a very common use case is to rebin groups of datasets on nightly, weekly, monthly etc basis
- I propose to pass a tuple of time bins to
LightCurveEstimator
and let him combine datasets together- We need to define the rule (e.g.
GTI
fully contained in the time bin, orGTI
center within time bin) - This behaviour is then similar to
FluxPointsEstimator
- see issue #2548
- We need to define the rule (e.g.
- The current
LightCurveEstimator
suffers from heavy code duplication fromFluxPointsEstimator
. See the code- this is due to a very similar task with a slightly different logic
- Both extract flux by fitting a scaled model of the source on the dataset
- But
FluxPointsEstimator
uses the same datasets for all steps (i.e. all energy bins) LightCurveEstimator
uses different datasets for each time bin.
- the
Fit
object has to be re-instantiated at each step in the loop - inheritance will not work
- this is due to a very similar task with a slightly different logic
- I propose to simplify
LightCurveEstimator
heavily to rely onFluxPointsEstimator
- For each time bin, create a
FluxPointsEstimator
for the current list of dataset with one single energy bin - Run flux point estimation and extract info from the table
- For each time bin, create a
We need to be able to run light curve from the HLI. This requires a number of additional features.
- Define a schema for time bins definition in yaml
- a tstart - tstop, and bin duration? What format for
tstart
andtstop
? - from a file containing a list of
Time
?
- a tstart - tstop, and bin duration? What format for
- Apply time selection on
Observations
- How do we deal with sub-observations statistics, in particular for ON-OFF datasets?
- Usually, OFF can be extracted from the full observation
- This implies to perform the
ReflectedRegionsBackgroundMaker
on an unfilteredEventList
- This introduces bin-to-bin correlations
- This makes
LightCurve
extraction more complex if the time bin size is different from the one used to filter the dataset
- This implies to perform the
- Can there be a grouping scheme to allow for shared background among datasets using
wstat
?
- Usually, OFF can be extracted from the full observation