Skip to content

Integrate the use of Quantity in astropy.coordinates #544

Closed

Description

@astrofrog

It would be nice to be able to (implicitly) use Quantity objects in astropy.coordinates:

c = GalacticCoordinates(34. * u.degree, 55. * u.degree, distance=55. * u.kpc)

This can be implemented after #471 is merged in.

Activity

  1. eteq commented on Dec 7, 2012

    @eteq
    Member

    This also ties in with #406 because some of the code in coordinates makes use of cosmological distance calculations.

  2. embray commented on Jan 11, 2013

    @embray
    Member

    See also #416.

  3. eteq commented on May 13, 2013

    @eteq
    Member

    This has become part of the wider changes discussed for 0.3, so I'm re-tagging it there.

  4. mdboom commented on May 13, 2013

    @mdboom
    Contributor

    Resolved by #1006, which is a WIP.

  5. eteq commented on May 13, 2013

    @eteq
    Member

    Actually, this isn't necessarily fully resolved in #1006, as distances should also be made Quantity objects (#794). I think those together do the trick, though.

  6. taldcroft commented on Sep 20, 2013

    @taldcroft
    Member

    The original input example now works in master, largely due to #1006. Closing.

  7. taldcroft commented on Sep 20, 2013

    @taldcroft
    Member

    BTW, the fact that the coordinate distance is not a Quantity in current master was not part of this issue, but should be resolved by #794.

  8. added a commit that references this issue on Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions