You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement a DistanceOffsetFrame that's like SkyOffsetFrame but includes distance effects #7770
Even if origin has the distance attribute, it's not used. If this is not by design and it's a bug, I guess it shouldn't be very difficult to fix and I can do it myself.
onceptually, transforming to a SkyOffsetFrame is meant to remain at the same origin and just rotate to a coordinate system with the origin at the specified location. But I see how the docstring of SkyOffsetFrame is vague enough that it sounds like it does what you need! Personally, I think the type of transformation you want should belong in a separate Frame class, and would still be useful. It sounds a bit more like Galactocentric, which uses an AffineTransform instead of a MatrixTransform.
So, I would vote for turning this issue into 2:
Fix docstring of SkyOffsetFrame to indicate that distance information in the origin is ignored, and not intended to be used.
Create a new frame class that is like a hybrid between SkyOffset and Galactocentric.
I'm 👍 to @adrn's suggestion here. The SkyOffsetFrame is oriented towards the "that's the way my telescope is pointed" use case, which implicitly means that the "distance" part of the origin shouldn't change. That's implicit in the "sky" part of the name but definitely needs to be cleared up in the docs!
I'm going to rename this issue to be the second of these (since it's more useful to have @Juanlu001's sleuthing above in that issue), and make a separate one for the first/docstring suggestion.
changed the title [-]SkyOffsetFrame objects do not use distance information[/-][+]Implement a DistanceOffsetFrame that's like SkyOffsetFrame but includes distance effects[/+]on Oct 24, 2018
@Juanlu001 - I've not milestoned this v3.1 because I don't think @adrn or I have the time to work on this for feature freeze... but if you think you can do it in the next couple days I'd be happy to have it in! (But I realize that might be a big ask depending on how complex it turns out to be.)
@Juanlu001 - I suppose you're not against removing the milestone here? (technically there are still 3 days until feature freeze, but I suspect you have enough on your plate already).
Activity
astrojuanlu commentedon Aug 25, 2018
And I guess the reason is here:
astropy/astropy/coordinates/builtin_frames/skyoffset.py
Lines 87 to 97 in b24b87f
Even if
originhas thedistanceattribute, it's not used. If this is not by design and it's a bug, I guess it shouldn't be very difficult to fix and I can do it myself.astrojuanlu commentedon Aug 25, 2018
...or maybe it is, because it changes the nature of the transformation to a
FunctionTransformorFunctionTransformWithFiniteDifference.adrn commentedon Oct 8, 2018
onceptually, transforming to a
SkyOffsetFrameis meant to remain at the same origin and just rotate to a coordinate system with the origin at the specified location. But I see how the docstring ofSkyOffsetFrameis vague enough that it sounds like it does what you need! Personally, I think the type of transformation you want should belong in a separate Frame class, and would still be useful. It sounds a bit more likeGalactocentric, which uses anAffineTransforminstead of aMatrixTransform.So, I would vote for turning this issue into 2:
SkyOffsetFrameto indicate that distance information in the origin is ignored, and not intended to be used.SkyOffsetandGalactocentric.Thoughts @eteq?
eteq commentedon Oct 24, 2018
I'm 👍 to @adrn's suggestion here. The
SkyOffsetFrameis oriented towards the "that's the way my telescope is pointed" use case, which implicitly means that the "distance" part of the origin shouldn't change. That's implicit in the "sky" part of the name but definitely needs to be cleared up in the docs!I'm going to rename this issue to be the second of these (since it's more useful to have @Juanlu001's sleuthing above in that issue), and make a separate one for the first/docstring suggestion.
[-]SkyOffsetFrame objects do not use distance information[/-][+]Implement a DistanceOffsetFrame that's like SkyOffsetFrame but includes distance effects[/+]eteq commentedon Oct 24, 2018
(Note that I'm not necessarily advocating
DistanceOffsetFrameas the name... not sure what the best name is. Just a "working title")eteq commentedon Oct 24, 2018
@Juanlu001 - I've not milestoned this v3.1 because I don't think @adrn or I have the time to work on this for feature freeze... but if you think you can do it in the next couple days I'd be happy to have it in! (But I realize that might be a big ask depending on how complex it turns out to be.)
astrojuanlu commentedon Oct 24, 2018
It's a bit short notice, so I prefer to leave it for the next release. Thanks @eteq!
bsipocz commentedon Apr 17, 2019
@Juanlu001 - I suppose you're not against removing the milestone here? (technically there are still 3 days until feature freeze, but I suspect you have enough on your plate already).
astrojuanlu commentedon Apr 17, 2019
Sure, let's postpone it! Thanks @bsipocz