Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

general reprojection changes #775

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

general reprojection changes #775

wants to merge 4 commits into from

Conversation

maxwest-uw
Copy link
Collaborator

resolves #772

some changes to make WorkUnit handle the general reprojection case (i.e. when there's a non-ebd wcs that we're resampling to).

Changes

  • made changes to image_positions_to_original_icrs to handle when common wcs isn't in ebd
  • created the new reprojection_frame parameter to WorkUnit
  • added tests for everything

Design

Putting this in draft because there's still an open design question (at least in my mind) over whether or not there should be a single canonical frame parameter in WorkUnit. As discussed in #772, we can either

  1. make an inference about the state of the reprojection based on whether or not the WorkUnit has ebd wcses attached to it
  2. have a reprojection_frame parameter as a source of truth

I went with number two, as it handles the every case and could help us keep everything in order in the future, but it has the con that it's not totally backwards compatible. There's a work around to make sure it doesn't break any older WorkUnits by checking if the frame metadata parameter in the fits header exists but that could lead to weird states for some of our currently existing data. This is a bad pattern that I've tried avoiding in the past with WorkUnit, but it's also a relatively minor problem we're solving so I think it's fine to let it slide this time.

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.

Add option to reproject non-EBD images in WorkUnit
1 participant