Closed beckermr closed 4 years ago
Further @rmjarvis pointed out that in the code for images, this is used by feeding it a delta/shift
https://github.com/GalSim-developers/GalSim/blob/releases/2.2/galsim/image.py#L1103
Probably the upshot is that we should rename the WCS withOrigin
function to be shiftOrigin
, which would match what it actually does.
I think the documentation here is probably accurate. And the name is ok for LocalWCS's, since it gives them an origin when they didn't really have one. But for things that already have a non-zero origin, the name is confusing and shiftOrigin
is probably more appropriate.
Done. #1085
I am working with a
TanWCS
and am seeing the following.This bit of code illustrates what is going on
Not that if I call
withOrigin
with where I wantworld_origin
to point, It adds to the old origin. If instead I feed it a shift, it does what (at least) I expect.cc @rmjarvis