From 9dbdef7a4b14b1d0cc8d9568efe5e3ac64b2de9c Mon Sep 17 00:00:00 2001 From: Martin Reinecke <martin@mpa-garching.mpg.de> Date: Thu, 22 Aug 2019 15:03:49 +0200 Subject: [PATCH] fixes --- nifty_gridder.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nifty_gridder.cc b/nifty_gridder.cc index e1c8b63..4025f73 100644 --- a/nifty_gridder.cc +++ b/nifty_gridder.cc @@ -1488,8 +1488,13 @@ template<typename T> pyarr_c<T> vis2dirty_wstack(const Baselines<T> &baselines, cout << "data w range: " << wmin << " to " << wmax << endl; //FIXME temporary -double psz=gconf.Pixsize_x(); - double dw = psz;// distance between two w planes, FIXME +double dw; +{ + double x0 = -0.5*nx_dirty*psx, + y0 = -0.5*ny_dirty*psy; + double nmin = sqrt(1.-x0*x0-y0*y0)-1.; + dw = 1./(2*abs(nmin)); +} cout << "delta w: " << dw << endl; double w_eps=1e-7; // FIXME -- GitLab