Notebook
# config = { 'selection' : { 'emin' : 100, 'emax' : 1000 } } gta = GTAnalysis(config,selection={'emax' : 10000})
data: evfile : 'ft1.fits' scfile : '/u/gl/mdimauro/kipac/workdir/files/SC/P8_104months_ft2.fits' ltcube : '/u/gl/mdimauro/dmcat/workdir/mattia/LogNLogS_Ebins/files_bins/bin13/P8_SOURCE_zmax105_1_3_ltcube.fits' binning: roiwidth : 12.0 binsz : 0.08 binsperdec : 8 coordsys : 'GAL' selection : emin : 1000 emax : 500000 tmin : 239557417 tmax : 512994417 zmax : 105 evclass : 128 evtype : 3 glon: 302.25 glat : -44.37 gtlike: edisp : True irfs : 'P8R2_SOURCE_V6' edisp_disable : ['isodiff','galdiff'] model: src_roiwidth : 12.0 galdiff : '$FERMI_DIFFUSE_DIR/gll_iem_v06.fits' isodiff : '$FERMI_DIFFUSE_DIR/iso_P8R2_SOURCE_V6_v06.txt' catalogs: gll_psc_v16.fit fileio: usescratch: False
data : evfile : ft1.lst scfile : ft2.fits ltcube : null
binning: # Binning roiwidth : 10.0 npix : null binsz : 0.1 # spatial bin size in deg binsperdec : 8 # nb energy bins per decade projtype : WCS
# Component section for Front/Back analysis - { selection : { evtype : 1 } } # Front - { selection : { evtype : 2 } } # Back
components: - model: {isodiff: $FERMI_DIFFUSE_DIR/iso_P8R2_SOURCE_V6_PSF0_v06.txt} selection: {evtype: 4, zmax: 80} data: {ltcube: ltcube_00.fits} - model: {isodiff: $FERMI_DIFFUSE_DIR/iso_P8R2_SOURCE_V6_PSF1_v06.txt} selection: {evtype: 8, zmax: 85} data: {ltcube: ltcube_01.fits} - model: {isodiff: $FERMI_DIFFUSE_DIR/iso_P8R2_SOURCE_V6_PSF2_v06.txt} selection: {evtype: 16, zmax: 95} data: {ltcube: ltcube_02.fits} - model: {isodiff: $FERMI_DIFFUSE_DIR/iso_P8R2_SOURCE_V6_PSF3_v06.txt} selection: {evtype: 32, zmax: 100} data: {ltcube: ltcube_03.fits}
fileio: outdir : null logfile : null usescratch : False scratchdir : '/scratch'
model : # Diffuse components galdiff : '$FERMI_DIR/refdata/fermi/galdiffuse/gll_iem_v06.fits' isodiff : '$FERMI_DIR/refdata/fermi/galdiffuse/iso_P8R2_SOURCE_V6_v06.txt' # List of catalogs to be used in the model. catalogs : - '3FGL' - 'extra_sources.xml' sources : - { 'name' : 'SourceA', 'ra' : 60.0, 'dec' : 30.0, 'SpectrumType' : PowerLaw } - { 'name' : 'SourceB', 'ra' : 58.0, 'dec' : 35.0, 'SpectrumType' : PowerLaw } # Include catalog sources within this distance from the ROI center src_radius : null # Include catalog sources within a box of width roisrc. src_roiwidth : 15.0
model: galdiff : - '$FERMI_DIFFUSE_DIR/diffuse_component0.fits' - '$FERMI_DIFFUSE_DIR/diffuse_component1.fits'
model: galdiff : - { 'name' : 'component0', 'file' : '$FERMI_DIFFUSE_DIR/diffuse_component0.fits' } - { 'name' : 'component1', 'file' : '$FERMI_DIFFUSE_DIR/diffuse_component1.fits' }
model: src_radius: 5.0 src_roiwidth: 10.0 catalogs : - 'gll_psc_v16.fit' - 'extra_sources.xml'
model: sources : - { name: 'PointSource', glon : 120.0, glat : 0.0, SpectrumType : 'PowerLaw', Index : 2.0, Scale : 1000, Prefactor : !!float 1e-11, SpatialModel: 'PointSource' } - { name: 'DiskSource', glon : 120.0, glat : 0.0, SpectrumType : 'PowerLaw', Index : 2.0, Scale : 1000, Prefactor : !!float 1e-11, SpatialModel: 'RadialDisk', SpatialWidth: 1.0 } - { name: 'GaussSource', glon : 120.0, glat : 0.0, SpectrumType : 'PowerLaw', Index : 2.0, Scale : 1000, Prefactor : !!float 1e-11, SpatialModel: 'RadialGaussian', SpatialWidth: 1.0 } - { name: 'MapSource', glon : 120.0, glat : 0.0, SpectrumType : 'PowerLaw', Index : 2.0, Scale : 1000, Prefactor : !!float 1e-11, SpatialModel: 'SpatialMap', Spatial_Filename : 'template.fits' }
selection: # gtselect parameters emin : 100 emax : 100000 zmax : 90 evclass : 128 evtype : 3 tmin : 239557414 tmax : 428903014 # gtmktime parameters filter : 'DATA_QUAL>0 && LAT_CONFIG==1' roicut : 'no' # Set the ROI center to the coordinates of this source target : 'mkn421'