Closed mdpunch closed 7 months ago
separation_3d should give an actual distance.
See also #1278
Accessing the .cartesian
representation might also be useful
Accessing the
.cartesian
representation might also be useful
Yes, but the tab completion doesn't give this from source.subarray.tel_coords[i].c...
. Typing it out indeed works. Or putting cart = source.subarray.tel_coords[i]
does allow the tab completion to work, also.
Thanks Max! Your suggestions work, as usual .
We agree (on #1278 ) that these have nothing to do with SkyCoords. For now, your suggestions are a useful workaround, but perhaps also there could be some way to throw an error if .separation
is called with coordinates in GroundFrame
?
Is there some deep reason to keep these in SkyCoords, or is it just adding to the technical debt?
Is there some deep reason to keep these in SkyCoords, or is it just adding to the technical debt?
I don't think so, we just haven't come around to actually implementing a solutoin for #1278.
I'll close this one as a duplicate of #1278
Hi,
When trying to get distances between telescopes, I see these are given as astropy
SkyCoords
:This system doesn't allow them to be subtracted simply to get the distance between, or a vector to be projected on the pointing direction as I'd like (sure, can get
coord.x, coord.y
etc).Using the standard
separation
ofSkyCoord
gives a nonsense result, though:Not a bug, but it's pretty non-intuitive... or I'm missing something?