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
light_travel_time is broken for Time objects with ndim > 1 #5191
This goes through the transformation ITRS->CIRS->GCRS. The resulting GCRS frame has (N, M) shaped obstime but the ra and dec properties are shaped (N*M, ) - as does the intermediate CIRS frame. The next transformation from GCRS to ICRShere inevitably fails because of this mismatch.
To solve this issue a large part of the transformation code is going to have to become shape aware, which is a significant code refactor and also should wait until #4123 and #5104 are in, since the refactored code will be much cleaner after code in those PRs has been merged.
Activity
StuartLittlefair commentedon Jul 26, 2016
The issue here is a tricky one, arising because the coordinate transformations are not particularly shape-aware.
So at https://github.com/astropy/astropy/blob/master/astropy/time/core.py#L599 we have
which for an (N, M) shaped
Timegives anITRSframe with an (N, M) shapedobstimeattribute and scalarxyzattributes.Then at https://github.com/astropy/astropy/blob/master/astropy/time/core.py#L609 we have
This goes through the transformation
ITRS->CIRS->GCRS. The resultingGCRSframe has (N, M) shapedobstimebut theraanddecproperties are shaped (N*M, ) - as does the intermediateCIRSframe. The next transformation fromGCRStoICRShere inevitably fails because of this mismatch.To solve this issue a large part of the transformation code is going to have to become shape aware, which is a significant code refactor and also should wait until #4123 and #5104 are in, since the refactored code will be much cleaner after code in those PRs has been merged.
StuartLittlefair commentedon Aug 26, 2016
Just to say this issue is magically fixed by #5254.