From 6a4cbbc4bbf3f2a74d35716b4378bc9daa02db69 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Wed, 17 Oct 2018 15:39:17 +0200 Subject: [PATCH] Add csresmap.resmap() method --- cscripts/csresmap.py | 12 ++++++++++++ cscripts/csresspec.py | 6 ++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/cscripts/csresmap.py b/cscripts/csresmap.py index 4bbd2cc..3f61273 100755 --- a/cscripts/csresmap.py +++ b/cscripts/csresmap.py @@ -285,6 +285,18 @@ class csresmap(ctools.csobservation): # Return return + def resmap(self): + """ + Return residual map + + Returns + ------- + map : `~gammalib.GSkyMap' + Residual sky map + """ + # Return + return self._resmap + # ======================== # # Main routine entry point # diff --git a/cscripts/csresspec.py b/cscripts/csresspec.py index b9400e3..8bf2273 100755 --- a/cscripts/csresspec.py +++ b/cscripts/csresspec.py @@ -703,11 +703,13 @@ class csresspec(ctools.csobservation): # Return return - def residuals(self): + def resspec(self): """ Return residual FITS file - Returns: + Returns + ------- + fits : `~gammalib.GFits' FITS file containing residuals """ # Return -- libgit2 0.21.4