In ImSim, we sometimes make a stamp image that is large enough to extend past the allowed range of the treering function. The treatment outside that range is irrelevant, since we just ignore the part that is outside the bounds of the main image, but the current code was raising an exception.
This PR changes it to just ignore tree rings on any pixels that are outside the range of the treering function.
In ImSim, we sometimes make a stamp image that is large enough to extend past the allowed range of the treering function. The treatment outside that range is irrelevant, since we just ignore the part that is outside the bounds of the main image, but the current code was raising an exception.
This PR changes it to just ignore tree rings on any pixels that are outside the range of the treering function.