Skip to content

wcs method names are confusing #815

Closed

Description

@mdboom

As @adrn pointed out in #812, the method names on the WCS object are less than ideal, though I should point out they are a significant improvement over the wcslib names, e.g. p2s, s2p etc.

I think the best solution is to probably have pix_to_world and world_to_pix with keyword args to control which of the transformations are performed (defaulting to all) and then we would deprecate the existing methods.

Activity

  1. astrofrog commented on Feb 25, 2013

    @astrofrog
    Member

    👍

  2. eteq commented on Feb 26, 2013

    @eteq
    Member

    👍 in principal, although I would think this would be part of the (admittedly pie-in-the-sky right now) future "generalized WCS"? Or do we want to slowly incorporate that into the existing WCS?

  3. mdboom commented on Feb 26, 2013

    @mdboom
    ContributorAuthor

    I think in the end, the generalized WCS will call into this as a backend -- I don't think there's much point in turning this into the generalized WCS, rather it would just become the backend implementation of one specific kind of WCS, so I think we can safely change this without considering too many big picture issues. Though I think this is only worth doing if it's a relatively small project (which I think it is), for that reason.

  4. adrn commented on Feb 26, 2013

    @adrn
    Member

    Great!

  5. ghost assigned on Sep 5, 2013
  6. astrofrog commented on Sep 20, 2013

    @astrofrog
    Member

    @mdboom - so are you suggesting that this should just be closed?

  7. mdboom commented on Sep 20, 2013

    @mdboom
    ContributorAuthor

    I think now that #1281 is merged, this is less of an issue. We can rename things, but it's a tricky move. The better name for all_world2pix is world2pix and that's already taken.

    And yes, long term, this whole module will become more private behind a general WCS interface, so I don't know how critical this is.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions