Closed espinielli closed 5 years ago
Thanks for the notification. I will fix this bug.
It seems that the E_ROTATION_MATRIX in nvector._core is the culprit since it was given as a integer matrix. Thus the matrix multiplication of dot(R_Ee, n_E) in the n_E2lat_lon function was also an integer matrix so that the longitude was computed as arctan(0, 0) which is 0 instead of arctan(0.0, -0.0) which is pi.
I have run the same test as in
test_n_E_and_wa2R_EL
using the reference Matlab implementation (using Octave) and the result is not the one used as Python testbut rather
HTH