Commit 9d4323c6a4b5a43b914055ddb216cea985e68dcc

Authored by Rolf Buehler
1 parent fc387042

Added comment on Prefactor

Showing 1 changed file with 8 additions and 3 deletions
scripts/obsutils.py
@@ -517,9 +517,10 @@ def set_obs_patterns(pattern, ra=83.6331, dec=22.0145, offset=1.5): @@ -517,9 +517,10 @@ def set_obs_patterns(pattern, ra=83.6331, dec=22.0145, offset=1.5):
517 # Return observation definition list 517 # Return observation definition list
518 return obsdeflist 518 return obsdeflist
519 519
520 -# =================================================#  
521 -# Make spectrum for one Source in aCTA Observation #  
522 -# ================================================ # 520 +# ================================================= #
  521 +# Make spectrum for one Source in a CTA Observation #
  522 +# ================================================= #
  523 +
523 def getlogbins(nbins=12,emin=0.1,emax=100): 524 def getlogbins(nbins=12,emin=0.1,emax=100):
524 """ 525 """
525 Returns list with logarithmiscenergy bins in 526 Returns list with logarithmiscenergy bins in
@@ -539,6 +540,10 @@ def getlogbins(nbins=12,emin=0.1,emax=100): @@ -539,6 +540,10 @@ def getlogbins(nbins=12,emin=0.1,emax=100):
539 lgbins.append([lgedges[ii],lgedges[ii+1]]) 540 lgbins.append([lgedges[ii],lgedges[ii+1]])
540 ebins=numpy.power(10,lgbins) 541 ebins=numpy.power(10,lgbins)
541 return ebins 542 return ebins
  543 +
  544 +#Please note that specpoints can make spectra for any given
  545 +#spectral model, as long as it has a "Prefactor" parameter
  546 +#which scales the funtion
542 def specpoints(obs,source,ebins): 547 def specpoints(obs,source,ebins):
543 """ 548 """
544 Returns spectral points in the given binning for 549 Returns spectral points in the given binning for