crash.py

Deil Christoph, 06/30/2015 03:08 PM

Download (471 Bytes)

 
1
import gammalib
2
import ctools
3
sim = ctools.ctobssim()
4
sim["inmodel"].filename("${CTOOLS}/share/models/crab.xml")
5
sim["outevents"].filename("events.fits")
6
sim["caldb"].string("prod2")
7
sim["irf"].string("South_50h")
8
sim["ra"].real(83.63)
9
sim["dec"].real(22.01)
10
sim["rad"].real(5.0)
11
sim["tmin"].real(0.0)
12
sim["tmax"].real(1800.0)
13
sim["emin"].real(0.1)
14
sim["emax"].real(100.0)
15
sim.execute()
16

    
17
# like = ctools.ctlike(sim.obs())
18
# like.run()
19

    
20
obs = sim.obs()
21
del sim
22
print(obs)