ctools" tutorial Ulisses Barres de Almeida FAPESP High-Energy IAG/USP CTA Advanced School

Similar documents
Fermi LAT data analysis

FSSC Science Tools Data Selection and Exploration. Julie McEnery July 8,

LAT Automated Science Processing for Gamma-Ray Bursts

A Catalog Pipeline for Sources in the CTA Galactic Plane Survey

Prospects for Observations of Very Extended and Diffuse Sources with VERITAS. Josh Cardenzana

AGILE AGN Working Group S.Mereghetti - on behalf of the AGILE Team

Indirect Dark Matter Searches in the Milky Way Center with the LAT on board Fermi

A Novel Maximum Likelihood Method For VERITAS Analysis

Bright gamma-ray sources observed by DArk Matter Particle Explorer

Searching for dark matter annihilation lines with HESS II. Knut Dundas Morå for the HESS collaboration

PoS(ICRC2017)765. Towards a 3D analysis in Cherenkov γ-ray astronomy

Fermi Source Analyses and Identifying VERITAS Candidates

PROSPECTS FOR CTA OBSERVATIONS OF GAMMA-RAY EMISSION FROM GRAVITATIONAL WAVES AND GAMMA- RAY BURSTS

Analysis of extended sources with the EPIC cameras

Calibration of the AGILE Gamma Ray Imaging Detector

arxiv: v1 [astro-ph.im] 8 Jun 2018

Detecting New Sources of High-Energy Gamma Rays

A New Method for Characterizing Unresolved Point Sources: applications to Fermi Gamma-Ray Data

A. Chen (INAF-IASF Milano) On behalf of the Fermi collaboration

VERITAS Performance Gernot Maier

Supernova Remnants as Cosmic Ray Accelerants. By Jamie Overbeek Advised by Prof. J. Finley

VERITAS detection of VHE emission from the optically bright quasar OJ 287

The Galactic diffuse gamma ray emission in the energy range 30 TeV 3 PeV

Time-domain astronomy with the Fermi Gamma-ray Burst Monitor

VERITAS detection of VHE emission from the optically bright quasar OJ 287

Fermi Bubble Analysis with Low Energy

The H.E.S.S. Standard Analysis Technique

arxiv: v1 [astro-ph.he] 18 Dec 2017

Galactic Novae Simulations with the Cherenkov Telescope Array

Observing TeV Gamma Rays from the Jet Interaction Regions of SS 433 with HAWC

Cherenkov Telescope Array ELINA LINDFORS, TUORLA OBSERVATORY ON BEHALF OF CTA CONSORTIUM, TAUP

Observability of gamma-ray spectral feature from Kaluza-Klein dark matter

The VERITAS Survey of the Cygnus Region of the Galaxy

Galactic Novae Simulations for the Cherenkov Telescope Array

THE PATH TOWARDS THE CHERENKOV TELESCOPE ARRAY OBSERVATORY. Patrizia Caraveo

Detecting Gamma-Ray Bursts in the DC1 Data

Nikolay Topchiev for the GAMMA-400 Collaboration High-energy gamma-ray studying with GAMMA-400

EBL Studies with the Fermi Gamma-ray Space Telescope

CLUMPY: A public code for γ-ray and ν signals from dark matter structures.

OVERVIEW OF A 3C279 s FLARE and SIMULATION OF AGNs

The VelaX pulsar wind nebula in the TeV regime. Bernhard Glück for the H.E.S.S. Collaboration July 8th, 2009, Boston

Fermi: Highlights of GeV Gamma-ray Astronomy

Exploring Data. Keck LRIS spectra. Handbook of CCD Astronomy by Steve Howell Chap. 4, parts of 6

Pulsar Wind Nebulae as seen by Fermi-Large Area Telescope

Gamma-ray Astrophysics with VERITAS: Exploring the violent Universe

Cosmic Ray Electrons and GC Observations with H.E.S.S.

Recent Observations of Supernova Remnants

Status and Future of the HESS experiment

1. GAMMA-RAY BURSTS & 2. FAST RADIO BURSTS

The DISP analysis method for point-like or extended γ source searches/studies with the MAGIC Telescope

The Sun and the Solar System in Gamma Rays

Mattia Di Mauro Eric Charles, Matthew Wood

Status and prospects

IC59+40 Point Source Analysis. Mike Baker, Juan A Aguilar, Jon Dumm, Chad Finley, Naoko Kurahashi, Teresa Montaruli. 12 May 2011

ASTRONOMY 460: PROJECT INTRO - GALACTIC ROTATION CURVE

Fully Bayesian Analysis of Low-Count Astronomical Images

Recent highlights from VERITAS

Constraints and Signals from the Diffuse Gamma Ray and X-ray Backgrounds

Measurement of CR anisotropies with the AMS detector on the ISS

The Characterization of the Gamma-Ray Excess from the Central Milky Way

Fermi-LAT and WMAP observations of the SNR Puppis A

Discovery of TeV Gamma-ray Emission Towards Supernova Remnant SNR G Last Updated Tuesday, 30 July :01

Justin Vandenbroucke (KIPAC, Stanford / SLAC) for the Fermi LAT collaboration

H.E.S.S. Unidentified Gamma-ray Sources in a Pulsar Wind Nebula Scenario And HESS J

A Search for Point Sources of High Energy Neutrinos with AMANDA-B10

The Characterization of the Gamma-Ray Excess from the Central Milky Way

Tentative observation of a gamma-ray line at the Fermi Large Area Telescope

Search for Point-like. Neutrino Telescope

How bright can the brightest neutrino source be?

Mattia Di Mauro. Fermi-LAT point source population studies and origin of the Fermi-LAT gamma-ray background. Trieste, May, 3, 2016

GLAST Large Area Telescope:

Ground Based Gamma Ray Astronomy with Cherenkov Telescopes. HAGAR Team

Exploiting Virtual Observatory and Information Technology: Techniques for Astronomy

Constraints on cosmic-ray origin from gamma-ray observations of supernova remnants

Galactic diffuse gamma-rays

The Galaxy Viewed at Very Short Time-Scales with the Berkeley Visible Image Tube (BVIT)

Basic Structure of the High-energy Observations. Preparation of the Data for the Analysis. Methods to Examine the Periodic Signal

What do we know after 6 years of Integral?

Cross-Correlation of Cosmic Shear and Extragalactic Gamma-ray Background

Discovery of a New Gamma-Ray Binary: 1FGL J

Fermi Large Area Telescope:

The TV3 ground calibrations of the WFC3 NIR grisms

A New TeV Source in the Vicinity of Cygnus OB2

Galactic sources in GeV/TeV Astronomy and the new HESS Results

Data Reduction - Optical / NIR Imaging. Chian-Chou Chen Ph319

Gamma-ray observations of millisecond pulsars with the Fermi LAT. Lucas Guillemot, MPIfR Bonn. NS2012 in Bonn 27/02/12.

SEARCH FOR AXION- LIKE PARTICLE SIGNATURES IN GAMMA-RAY DATA

Using the Fermi-LAT to Search for Indirect Signals from Dark Matter Annihilation

Expected and unexpected gamma-ray emission from GRBs in light of AGILE and Fermi. Marco Tavani (INAF & University of Rome Tor Vergata)

Science Analysis Tools Design

Status of the MAGIC telescopes

arxiv: v1 [astro-ph.he] 16 Jan 2018

Searches for astrophysical sources of neutrinos using cascade events in IceCube

Calibration of ACS Prism Slitless Spectroscopy Modes

Performance and Sensitivity of H.E.S.S.

Multi-instrument, multiwavelength. energy sources with the Virtual Observatory

LightWork Memo 18: Galactic Spectra Data Overview 1

SPATIAL UNIFORMITY OF THE GALACTIC GAMMA-RAY EXCESS. Manoj Kaplinghat, UC Irvine

SNRs, PWNe, and gamma-ray binaries: the ASTRI/CTA mini-array view

Constraining Galactic dark matter in the Fermi-LAT sky with photon counts statistics

Transcription:

ctools" tutorial Ulisses Barres de Almeida 26.05.2017 FAPESP High-Energy IAG/USP CTA Advanced School

ctools" tutorial Ulisses Barres de Almeida DISCLAIMER: I am not a developer! This tutorial is based on other lessons from where I learned CTA analysis tools. Specially by J. Knodelseder & F. Longo. 26.05.2017 FAPESP High-Energy IAG/USP CTA Advanced School

This presentation aims to be a short practical introduction to one set of tools being developed for CTA analysis.! ctools" is similar to fermi tools in concept and after this you should be able to go and play with the tools yourself.!! Prerequisites: Rodrigo s fermi tools hands-on sessions + Gernot s ACT analysis introduction

What is ctools? ctools is a project in development for CTA. It consists on a set of fermi tools-like executables for step-wise data analysis by end-users.! Accessible from: https://cta-redmine.irap.omp.eu/projects/ctools check the wiki! Contact information: subscribe to ctools@irap.omp.eu

What is ctools? Accessible from: https://cta-redmine.irap.omp.eu/projects/ctools check the wiki! Contact information: subscribe to ctools@irap.omp.eu! *ctools are based on GammaLib, a toolbox for high-level analysis of gamma-ray data

What is provided by GammaLib? High-level analysis functionalities tools i.e., post-reconstruction events operations event I/O IRF implementation data format parameter specifications versatile for multi-mission analysis* and joint multi-instrument data analysis hfp://gammalib.sourceforge.net/!

What is provided by GammaLib? Jürgen Knödlseder

Introduction ctools is a collection of utilities for operating on CTA event data (photon lists) and IRFs in the FITS format, pretty much like the fools you operated at the hands-on yesterday.! Each routine performs specific tasks such as: binning event selection model fitting! It shares all functionalities and interface capabilities of fermi tools, i.e. FITS files handling ( ftools ), python scripts, IRAF-style parameters files, HEASARC library packages, etc.!

in practice background model ctools!develo skymaps instrument response functions spectra simulated (reconstructed) event lists lightcurve

Across the borders GeV gammas VHEs X-rays low-e gammas A common set of tools for high-energy photon-counting instruments + HEASARC s cfitsio library

The Fermi/LAT example from Rodrigo s hands on yesterday if you are familiar with Fermi tools you can use ctools directly

Fermi ctools ctools Equivalence between Fermi and ctools Equivalent modular structure for science data analysis

ctools Some definitions. Equivalence between Fermi and ctools Equivalent modular structure for science data analysis

Starting with ctools download the code from http://cta.irap.omp.eu/ctools/download.html! Get the source files and binary package for ctools and gammalib:

Installing ctools (you did not do it for Fermi!) use mac binary package or build from source! $./configure $ make $ make install Configuring gammalib and ctools: $ export GAMMALIB=/usr/local/gamma $ source $GAMMALIB/bin/gammalib-init.sh $ export CTOOLS=/usr/local/gamma $ source $CTOOLS/bin/ctools-init.sh 14 this goes into your /.bashrc script

Data structure Event data reconstructed direction; reconstructed energy; time tag [TSART] GTI - good time interval [energy range] IRF counts cube [TSTOP] Galactic longitude. for each time interval

Simulating CTA data No real data yet for CTA simulated CTA data is done with the tool ctobssim : as with Fermi tools, you are queried about each parameter [or leave it as default]! $CTOOLS is an alias for the environment variable path The CTA IRFs (effective area, PSF width, etc.) are taken from a performance table at $CTOOLS/share/caldb/cta

4 Simulating CTA data An example IRAF parameter file

Simulating CTA data No real data yet for CTA simulated CTA data is done with the tool ctobssim : CTA events are simulated based on certain dummy instrument properties (the IRFs), plus a source and background model.

Simulating CTA data No real data yet for CTA CTA events are simulated based on certain dummy instrument properties (the IRFs), plus a source and background model. Model cube(s) CTA model data Galactic longitude the data cube The output events.fits file will contain all relevant event data within the specified circular ROI (region of interest). The duration of a run (observation) is 30 min, and typical energy range is from 0.1 to 100 TeV

What is a data model? The source model is specified in a XML file Comprising of a spectral (Energy) and a spatial (map) model distribution Containing both source and background.! In the previous example, we have a Crab model (PWL point source) + offset Gaussian background

What is a data model? The source model is specified in a XML file In the previous example, we have a Crab model (PWL point source) + offset Gaussian background

What is a data model? The source model [PWL] : Prefactor + Index + Scale parameter value = value*scale [min, max] range + free = 1/0 (ph/cm2/s/mev)

What is a data model? The background model Spectrum = on axis background counting rate, per energy bin! (ph/s/sr/tev)! RadialModel = describe radial variation of the count rate Gaussian (width ~ deg2)

The data model library (J. Knodelseder) Spatial Point source Radial symmetric models Gaussian Disk Shell Elliptical models Gaussian Disk Diffuse models Map Map cubes (energy dependent maps) Isotropic Composite Spectral Power law Broken power law Exponentially cut off power law Super exponentially cut off power law Log parabola Gaussian (line) File function (arbitrary spectrum) Node function (arbitrary fit) Constant Composite Multiplicative (useful for EBL) Temporal Constant Light curve Phase curve And more to come (e.g. Dark Matter Halo)

The data model library (J. Knodelseder) Spectral Power law Broken power law Exponentially cut off power law Super exponentially cut off power law Log parabola Gaussian (line) File function (arbitrary spectrum) Node function (arbitrary fit) Constant Composite Multiplicative (useful for EBL)

The data model library (J. Knodelseder) Spectral Power law Broken power law Exponentially cut off power law Super exponentially cut off power law Log parabola Gaussian (line) File function (arbitrary spectrum) Node function (arbitrary fit) Constant Composite Multiplicative (useful for EBL) Blazar SED in opt-xrays

The data model library (J. Knodelseder) Spectral Power law Broken power law Exponentially cut off power law Super exponentially cut off power law Log parabola Gaussian (line) File function (arbitrary spectrum) Node function (arbitrary fit) Constant Composite Multiplicative (useful for EBL) On you can provide your own function file with (Energy, diff. Flux)

The simulated events.fits file To read the events.fits file simply use fv (as you probably did with the fermi data!) or ds9! structure info for the fits: metadata; tabulated events; binary table for GTI.

The simulated events.fits file The metadata (or header) Data space Date and time interval covered Reference (zero) time Exposure and livetime Pointing

The simulated events.fits file The events table

The simulated events.fits file The events table + GTIs

The simulated log file There is also a log file sim detector area duration of sim # sim source events current UTC time

The simulated log file There is also a log file # bkg events # events detected

s work? How does the analysis work? to extract spatial and spectral a-ray sources Instrument Response Functions CTA data live in a 4 dimensional world Reconstructed arrival direction (2d) Reconstructed energy (1d) Time (1d) nts and spectral parameters Model cube(s) For a given time interval, events can be binned in a 3 dimensional data space? Instrument Re Galactic longitude tions or better. 17 on/off fitting, aperture photometry, 18?

se ns functions InstrumentInstrument Re ons Instrument Response Functions Response fu Instrument Response functions Instrument Response functions Instrument Resp Only South 20 zenith angle available so far 50 hr baseline IRF used to simulated 1dc.pre Only Southdispersion 20 zenithinformation angle available soso farfar! Only South 20 zenith Energy ignored Only South 20 zen Only South 20 zenith angle availabl (will be used for final simulations) 50 baseline IRF used to simulated 1dc.pre 50 hr baseline IRF used sohr far evailable I = gamma-ray intensity at Earth as function of true properties t, ra, (E,50 hrdec) baseline IRF u Energy dispersion information ignored so far! 50 hr baseline IRF used to simulated Energy dispersion info r! e = gamma-ray ulated 1dc.pre (will be (expected) used for event final simulations) rate as function of reconstructed properties (E, t, for ra', final dec ) si (will bedispersion used Energy Energy dispersion information ignore ignored so response far! to parameters R = instrument p, be where a arefor specific telescope (will be parameters used for fin (will used final simulations) ons)

se ns functions InstrumentInstrument Re ons Instrument Response Functions Response fu Instrument Response functions Instrument Response functions Instrument Resp Response!FuncAons! Only South 20 zenith angle available so far 50 hr baseline IRF used to simulated 1dc.pre Only Southdispersion 20 zenithinformation angle available soso farfar! Only South 20 zenith Energy ignored Only South 20 zen Only South 20 zenith angle availabl (will be used for final simulations) 50 baseline IRF used to simulated 1dc.pre 50 hr baseline IRF used sohr far evailable IRF hr baseline IRF Energy dispersion information ignored so far! 50 50 hr baseline used to simulated Energy dispersion infou 1dc.pre (will be used for final simulations) (will bedispersion used for final si Energy r! ulated ignored so far! ons) Energy dispersion information ignore (willsimulations) be used for fin (will be used for final

se ns functions InstrumentInstrument Re ons Instrument Response Functions Response fu Response!FuncAons! Instrument Response functions Instrument Resp Instrument Response functions Only South 20 zenith angle available so far 50 hr baseline IRF used to simulated 1dc.pre Only Southdispersion 20 zenithinformation angle available soso farfar! Only South 20 zenith Energy ignored Only South 20 zen Only South 20 zenith angle availabl (will be used for final simulations) 50 baseline IRF used to simulated 1dc.pre 50 hr baseline IRF used sohr far evailable IRF hr baseline IRF Energy dispersion information ignored so far! 50 50 hr baseline used to simulated Energy dispersion infou 1dc.pre (will be used for final simulations) (will bedispersion used for final si Energy r! ulated ignored so far! ons) N, S, 50 hrs, 5 hrs Energy dispersion information ignore (willsimulations) be used for fin (will be used for final

Instrument Response Functions EFFECTIVE AREA PSF

Instrument Response Functions PSF E

Instrument Response Functions BACKGROUND TEMPLATE shown is counts versus position for two different energy ranges. [E1,E2] [E3,E4]

Instrument Response Functions ENERGY RECONSTRUCTION with a lot of dispersion From which you derive Erec/Et:

How to for a few tools ctbin : binning CTA data A data cube with RA, DEC and E. multiple maps for different energy ranges

How to for a few tools ctbin : binning CTA data A data cube with RA, DEC and E. multiple maps for different energy ranges

How to for a few tools ctlike : fitting CTA data L o g - l i k e l i h o o d model-fitting over binned data

How to for a few tools ctlike : fitting CTA data L o g - l i k e l i h o o d model-fitting over binned data ctselect : the first step to work directly on the events file un-binned analysis can also be performed and is more powerful first define the ROI (circular acceptance cone) plus time and energy span then run ctlike

How to for a few tools ctlike : TS calculation TS = 2 x (log L - log Lnull) or sqrt(ts) ~ sigma(gauss) ctlike : use tscalc = 1

How to for a few tools ctbutterfly : for spectra estimation - a complex procedure plot using e.g. python from your butterfly.txt

Combining observations : maps cttsmap : to produce a test statistics map (TS map) TS = 2 x (log L - log Lnull)

Script tools : SEDs csspec : produces a broad-band spectrum by running ctlike over several energy bins

Script tools : light-curves cslightcrv :

Script tools : SEDs Inspecting the fit residuals csresmap : to inspect the residuals of the fitted skymaps Inspecting the fit residuals Inspecting the fit residuals 19 19

Script tools : SEDs Inspecting the fit residuals csresmap : to inspect the residuals of the fitted skymaps Inspecting the fit residuals Inspecting the fit residuals clearly a residual is remaining 19 19

Diffuse emission model! odel 20

Script tools : SEDs Inspecting the fit residuals csresmap : to inspect the residuals of the fitted skymaps Inspecting the fit residuals Inspecting again the fit residuals with diffuse model 19

Script tools : SEDs csspec : produces a broad-band spectrum by running ctlike over several energy bins plus :

VO tools : Important! play with other tools like CDS s Aladin, etc 32

If you have a simulated sky already csobselect : selected from simulated observations all pointing with 0.1deg of GC, for example ctselect : selected from these only events between 100 GeV and 100 Tev, e.g.

If you have a simulated sky already ctskymap : create a sky map from your selected event files Jürgen Knödlseder

If you have a simulated sky already ctskymap : or a background subtracted skymap Jürgen Knödlseder

If you have a simulated sky already ctskymap : or a background subtracted skymap Jürgen Knödlseder cssrdetect : detecting source candidates within sky map selected events! > detection threshold?

26 If you have a simulated sky already ctskymap : the significance of a source Will be given in terms of a TS (see below!)