Skip to content

Conversation

@ben-cassese
Copy link

Hello!

This is a super helpful tool, thanks for sharing it a while ago. I recently ran into some trouble when creating postage stamps near the edge of a CCD, more specifically in any case where the binlinear interpolation step wants to pull from the same TPF model. For example, the center of the TPF for TIC 347346532 in Sector 70 falls on cam=3, ccd=2, column=591, row=1. In the current version of the code, the PRF init fails you cannot create an object with these parameters. I've adjusted 1) the logic for picking which TPF models to interpolate between 2) the way those models are then sorted and 3) the bilinear interpolation step to handle these edge cases.

Entirely separately, I've also implemented much of this file in JAX with the aim of being able to vmap across many sub-pixel positions at once and make a model image cube of the same footprint over time. However, I'm not including that here since I don't want to introduce a JAX dependency into this package, but if that would be of interest, let me know!

Let me know what you think, and thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant