These are chat archives for astropy/astropy
ah_bootstrapto not automatically update the submodules...
sc = SkyCoord(..); sc.represent_as()should return a new
SkyCoordusing that representation. Instead it returns an instance of the requested representation class. This kind of ties in with the SunPy desire to swap between representations easily for a given frame.
represent_asconsistently everywhere as a way to get a new representation. It’s also absolutely not a good idea to “swap between representations” - a frame gets one preferred representation, but it caches the transform, so if you do
someframeorskycoord.represent_as(SphericalRepresentation)twice, the second time is very fast
dataattribute on frames was originally private, but someone complained about that
represent_asif you have a better suggestion, though.
str. I have a SkyCoord defined in ICRS but now I want make that into a coordinate object that shows in cylindrical.
SkyCoord- to have something like
format, which controlled how it was displayed while using the same underlying frame class
represent_asif the default isn’t your cup of tea