Image Shear

Shear model that read an array from file, and maps these values to a rectangular region on the plane. No interpolation is done. Outside of the region defined by the array, the shear bias is set to zero. Currently the value in the file is used for both gamma1 and gamma2.

The file should be an ascii list of double numbers separated by whitespace. The filename must be "shearfieldn.txt" where n is replaced with the number given in FileTag, for example, "shearfield1.txt". This file must be in the current working directory.

Parameters
NameDescription
FileTag Number associated with the file as described above..
ImageWidth Number of elements in the array along the x direction.
ImageHeight Number of elements in the array along the y direction.
FieldMinX Coordinate of the left of the rectangular region in the plane.
FieldMaxX Coordinate of the right of the rectangular region in the plane.
FieldMinY Coordinate of the bottom of the rectangular region in the plane.
FieldMaxY Coordinate of the bottom of the rectangular region in the plane.