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 405 psfcube["xref"] = self.m_xref
406 406 psfcube["yref"] = self.m_yref
407 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 410 psfcube["enumbins"] = self.m_ebins
411 411 psfcube["anumbins"] = self.m_anumbins
412 412 psfcube["emin"] = emin.TeV()
... ...