Commit 976a9ff98eacefe2886dc6cb784df6c2c599b307

Authored by Jürgen Knödlseder
1 parent 760fe293

Avoid empty skymap in ctpsfcube (we add 1 to the number of pixels for safety)

Showing 1 changed file with 2 additions and 2 deletions
cscripts/csspec.py
@@ -405,8 +405,8 @@ class csspec(ctools.cscript): @@ -405,8 +405,8 @@ class csspec(ctools.cscript):
405 psfcube["xref"] = self.m_xref 405 psfcube["xref"] = self.m_xref
406 psfcube["yref"] = self.m_yref 406 psfcube["yref"] = self.m_yref
407 psfcube["binsz"] = self.m_binsz*20.0 # Slow Psf variation 407 psfcube["binsz"] = self.m_binsz*20.0 # Slow Psf variation
408 - psfcube["nxpix"] = self.m_nxpix/20  
409 - psfcube["nypix"] = self.m_nypix/20 408 + psfcube["nxpix"] = self.m_nxpix/20+1
  409 + psfcube["nypix"] = self.m_nypix/20+1
410 psfcube["enumbins"] = self.m_ebins 410 psfcube["enumbins"] = self.m_ebins
411 psfcube["anumbins"] = self.m_anumbins 411 psfcube["anumbins"] = self.m_anumbins
412 psfcube["emin"] = emin.TeV() 412 psfcube["emin"] = emin.TeV()