Skip to content

Pyregion should use distortion-aware WCS functions for coordinate transformations #35

Closed

Description

@mcara

Currently, pyregion uses WCS functions that do not take into account distortion corrections: wcs.wcs_world2pix() and wcs.wcs_pix2world(). However, distortions for most HST instruments are significant and should be taken into account. This could be done by switching to wcs.all_world2pix() and wcs.all_pix2world() - really a very simple change to the code.

While at this moment I cannot recommend this change until issues in astropy/astropy#1977, scipy/scipy#3227, astropy/astropy#2294 are solved. I have submitted a PR that fixes these issues in all_world2pix() and provides performance improvements astropy/astropy#2373 but it is not yet merged.

I will post here when it is safe to do this transition.

NOTE: for images that do not have distortions wcs.all_world2pix() and wcs.all_pix2world() are similar to their -non-distortion-aware analogs wcs.wcs_world2pix() and wcs.wcs_pix2world().

Activity

  1. added 2 commits that reference this issue on Nov 16, 2014
    cf491a2
    96328e4
  2. added a commit that references this issue on Mar 30, 2016
    4029a99
  3. added this to the milestone on Aug 1, 2016
  4. cdeil commented on Aug 1, 2016

    @cdeil
    Member

    @mcara - Thanks for filing this issue.

    All of the issues you linked to are now closed or merged.

    Maybe, as a start, @mcara , you could post a test case example here, or contribute it directly as a test via a pull request?

    Such a concrete example could be useful, so that everyone can run it through DS9 and pyregion and then participate in the discussion whether the change you're proposing should be made.

  5. modified the milestones: 2.0, wishlist on Aug 4, 2016
  6. added a commit that references this issue on Aug 8, 2016
    b149a2d
  7. mcara commented on Aug 10, 2016

    @mcara
    ContributorAuthor

    @cdeil Please review my PR #97

  8. added 2 commits that reference this issue on Aug 11, 2016
    1b87998
    ac70931
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions