Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Alternatively, one can give all of the parameters explicitly. This is useful for running in scripts.
    Code Block
    >>> like2 = unbinnedAnalysis(evfile='filtered.fits', scfile='test_scData_0000.fits', irfs='P6_V1_DIFFUSE', expcube='expCube.fits', srcmdl='anticenter_model.xml', optimizer='minuit', expmap='none')
    >>> 
    
  • The mode='h' option is available as well. In this case, one can set a specific parameter, leaving the remaining ones to be read silently from the gtlike.par file.
    Code Block
    >>> like3 = unbinnedAnalysis(evfile='filtered.fits', mode='h')
    
  • A BinnedAnalysis object may be created in a similar fashion using the binnedAnalysis function:
    Code Block
    >>> from BinnedAnalysis import *
    >>> like = binnedAnalysis() 
    Response functions to use[P6_V1_DIFFUSE::FRONT] 
    Counts map file[smaps_0_20_inc_front.fits] 
    Binned exposure map[binned_expmap_0_20_inc_front.fits] 
    Exposure hypercube file[expCube_0_20_inc.fits] 
    Source model file[Vela_model_0_20_inc_front.xml] 
    Optimizer (DRMNFB|NEWMINUIT|MINUIT|DRMNGB|LBFGS) [MINUIT] 
    >>>
    

Photon and Energy Flux Calculations

...