added options to catch all objects for the coadd #22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@esheldon: This PR should fix the remaining MEDS making issues. It has two features.
'coadd_bounds_buffer_rowcol'
. This keyword adds (for the coadd only) a buffer inrow,col
(default: 1e-3). Anything within the coadd image boundaries (with this buffer added) is considered to be "in" the coadd image.'force_into_coadd_bounds'
. This keyword clips the positions of all objects determined to be "in" the coadd image (including those from 1 above) to the boundaries of the coadd image (without the buffer from 1 above).These two keywords combined means that an object falling outside the coadd image but in the buffer region will be marked as "in" the coadd image and then have its position moved to the edge of the image.
For our problems, this is the right thing to do. If you turn off 2 above, then you can keep objects near the edges of the coadd, but with their centers not "in" the coadd. This might be a useful feature in the future.