Skip to content

Commit 5c5fa07

Browse files
authored
Fix bug in treatment of non-integer crpix (#221)
Fractional crpix were silently truncated to integer, causing incorrect results.
1 parent fc0783a commit 5c5fa07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Projection.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ class Pixelizor2_Flat<NonTiled, Interpol> {
900900
return -1;
901901
}
902902

903-
int crpix[2];
903+
double crpix[2];
904904
double cdelt[2];
905905
int naxis[2];
906906
BufferWrapper<double> mapbuf;

0 commit comments

Comments
 (0)