Export $VARS and activate environment
Activate the environment where the SAG-SCI and the science tool in used by the wrapper are installed
Export the environment variable corresponding to the wrapper, i.e. RTAPH or GAMMAPY
export RTAPH=path/to/sagsci/wrappers/rtaph
export GAMMAPY=path/to/sagsci/wrappers/gammapy
From single observation create time bins
From target.xml template create bins file and update source name
From job.xml template create bins file and update values
From obs.xml template create bins file and update values
python prepare_dataset.py -f < myconfig.yml>
Execute analysis single run
Perform analysis in each bin, either lightcurve (each bin alone) or cumulative (since start of run) and save results
Move bins and results into the archive
python analysis_one_run.py -f < myconfig.yml>
Collect run results from single bins
From the archive collect all results and create a merged csv data file for easy plotting
python collect_bins_results.py -f < myconfig.yml>
Plot lightcurves of list of runs
Load the csv data file and plot the specified curves
python plot_lightcurves.py -f < myconfig.yml> -cp < true| false>