Skip to content

Commit c295433

Browse files
committed
[BUG] Revert commit that screwed up longitudes
Though I could do something clever. It's wasn't. Glad I caught this, geez
1 parent 1a2eac4 commit c295433

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/transform.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,6 @@ std::vector<arma_cube> transform_xyz_to_llr_3d(std::vector<arma_cube> xyz)
170170
lon = acos(xyz[0] / xy);
171171
uvec ind_ = find(xyz[1] < 0.0);
172172
lon.elem(ind_) = 2 * cPI - lon.elem(ind_);
173-
ind_ = find(xyz[1] > 2 * cPI);
174-
lon.elem(ind_) = lon.elem(ind_) + 2 * cPI;
175173
llr.push_back(lon);
176174
llr.push_back(asin(xyz[2] / r));
177175
llr.push_back(r);

0 commit comments

Comments
 (0)