Closed esheldon closed 4 years ago
One thing that occurs to me on re-reading through my proposed snippet is that shear is usually defined with respect to north, not the image grid. So we probably also want the ability to toWorld and toImage a shear as well as profiles and positions:
shear_world = Shear(g1=g1, g2=g2)
shear_image = wcs.toImage(shear_world, world_pos=world_pos)
The latter I think would then be the one to use in image coordinates.
Done #1097
@rmjarvis has suggested an API like the following
And could be used to shear an entire scene without first doing
Add
to a set of objectsImplied here is that the shear is in reference to some origin.