From ae09a3d4782d06e00df6497b62b7a57f75275a13 Mon Sep 17 00:00:00 2001 From: Simon Bonnefoy Date: Wed, 7 Nov 2018 14:24:01 +0100 Subject: [PATCH] small changes in the ctfindvar.cpp (#2713) --- src/ctfindvar/ctfindvar.cpp | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/ctfindvar/ctfindvar.cpp b/src/ctfindvar/ctfindvar.cpp index 6838bc4..fe7eb05 100644 --- a/src/ctfindvar/ctfindvar.cpp +++ b/src/ctfindvar/ctfindvar.cpp @@ -264,8 +264,8 @@ void ctfindvar::run(void) m_pixsigsrc = GNdarray(1, nbins); //TODO: Update this to allow for multiple sources in 1st dimension // creating GSkyDir to get the position of the source and each pixels - GSkyDir srcSkyDir; + GSkyDir srcSkyDir; if ((*this)["coordsys"].string()=="CEL") { srcSkyDir.radec_deg((*this)["xsrc"].real(),(*this)["ysrc"].real()); @@ -274,6 +274,7 @@ void ctfindvar::run(void) { srcSkyDir.lb_deg((*this)["xsrc"].real(),(*this)["ysrc"].real()); } + //Getting the index of pixel on which falls the source of interest int srcInxPix = m_counts.dir2inx(srcSkyDir); @@ -285,18 +286,20 @@ void ctfindvar::run(void) for (int pix_number=0; pix_number