From d16a4f795cb3f130c355ce3906b04407a6ecac00 Mon Sep 17 00:00:00 2001 From: Curt Corum Date: Mon, 14 Jan 2019 20:53:04 -0600 Subject: [PATCH] Possible bug in ipix calculation? Above unchanged code (i.e. without the commenting out) gives: 2 = xy2pix(1,1,1,1) 13 = xy2pix(1,1,1,12) After edits (i.e. %ipix = ipix+1;) it gives: 1 = xy2pix(1,1,1,1) 12 = xy2pix(1,1,1,1) --- src/xy2pix.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/xy2pix.m b/src/xy2pix.m index c7c5b69..8cf8fbe 100644 --- a/src/xy2pix.m +++ b/src/xy2pix.m @@ -67,6 +67,7 @@ ipix = ipf + nFace*nSide^2; -ipix = ipix+1; % MEALPix numbering +% Is this a bug? +%ipix = ipix+1; % MEALPix numbering -return \ No newline at end of file +return