From 2c425999c57e6fdf3caf59f59fa6e4b2b0ade6a5 Mon Sep 17 00:00:00 2001
From: Adriaan Renting <renting@astron.nl>
Date: Thu, 15 Jun 2006 07:23:09 +0000
Subject: [PATCH] BugID: 700 bugfix (thanks Ger)

---
 .../include/CS1_Imager/ImagerProcessControl.h          |  4 ++--
 Appl/CEP/CS1/CS1_Imager/src/ImagerProcessControl.cc    | 10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/Appl/CEP/CS1/CS1_Imager/include/CS1_Imager/ImagerProcessControl.h b/Appl/CEP/CS1/CS1_Imager/include/CS1_Imager/ImagerProcessControl.h
index c102737f717..9ea9f3fd204 100644
--- a/Appl/CEP/CS1/CS1_Imager/include/CS1_Imager/ImagerProcessControl.h
+++ b/Appl/CEP/CS1/CS1_Imager/include/CS1_Imager/ImagerProcessControl.h
@@ -51,8 +51,8 @@ namespace LOFAR
       int          itsStep;
       int          itsNX;
       int          itsNY;
-      int          itsCellX;
-      int          itsCellY;
+      double       itsCellX;
+      double       itsCellY;
       std::string  itsStokes;
       std::string  itsWeightType;
       int          itsWeightNPixels;
diff --git a/Appl/CEP/CS1/CS1_Imager/src/ImagerProcessControl.cc b/Appl/CEP/CS1/CS1_Imager/src/ImagerProcessControl.cc
index d0af1950a9d..7c26dd8acf8 100644
--- a/Appl/CEP/CS1/CS1_Imager/src/ImagerProcessControl.cc
+++ b/Appl/CEP/CS1/CS1_Imager/src/ImagerProcessControl.cc
@@ -74,8 +74,8 @@ namespace LOFAR
       itsStep          = ParamSet->getInt32("step");
       itsNX            = ParamSet->getInt32("nx");
       itsNY            = ParamSet->getInt32("ny");
-      itsCellX         = ParamSet->getInt32("cellx");
-      itsCellY         = ParamSet->getInt32("celly");
+      itsCellX         = ParamSet->getDouble("cellx");
+      itsCellY         = ParamSet->getDouble("celly");
       itsStokes        = ParamSet->getString("stokes");
       itsWeightType    = ParamSet->getString("weighttype");
       itsWeightNPixels = ParamSet->getInt32("weightnpixels");
@@ -113,8 +113,8 @@ namespace LOFAR
       const casa::Vector<casa::Int> myFieldID(1, itsFieldID);
       myImager->setdata(myMode, myNChannel, myStart, myStep, itsMStart, itsMStep, itsSpectralWindowIDs, myFieldID);
       
-      const casa::Quantity          itsCellX(itsCellX, "arcsec");
-      const casa::Quantity          itsCellY(itsCellY, "arcsec");
+      const casa::Quantity          myCellX(itsCellX, "arcsec");
+      const casa::Quantity          myCellY(itsCellY, "arcsec");
       const casa::String            myStokes(itsStokes);
       bool                          itsDoShift(false);
       const casa::MDirection        itsPhaseCenter(0.0); //? unknown what the default should be, AR
@@ -124,7 +124,7 @@ namespace LOFAR
       const casa::Quantity          itsDistance(0, "m");
       const casa::Float             itsPaStep(5.0); //? unknown what the default should be, AR
       const casa::Float             itsPbLimit(0.05); //? unknown what the default should be, AR
-      myImager->setimage(itsNX, itsNY, itsCellX, itsCellY, myStokes, itsDoShift, itsPhaseCenter, itsShiftX, itsShiftY,
+      myImager->setimage(itsNX, itsNY, myCellX, myCellY, myStokes, itsDoShift, itsPhaseCenter, itsShiftX, itsShiftY,
                          myMode, itsNChannel, itsStart, itsStep, itsMStart, itsMStep, itsSpectralWindowIDs,
                          itsFieldID, itsFacets, itsDistance, itsPaStep, itsPbLimit);
 
-- 
GitLab