+2
Fixed

Declinations between 0 and -1 are not found

Nora Loiseau 7 years ago updated by Bruno Merín 7 years ago 4

Example: 12 12 12  -00 36 00 is converted to 12 12 12  +00 36 00 (reported by ATalavera)

Answer

Answer

The requested bug fix has been implemented in version 2.1.

Please let us know if you experience it again.

GOOD, I'M SATISFIED
Satisfaction mark by Nora Loiseau 7 years ago
Answer

The requested bug fix has been implemented in version 2.1.

Please let us know if you experience it again.

Dear Nora,


this issue has been fixed with ESASky 2.1 which is available online since yesterday.


Thank you for your contribution in the project.


Cheers

Dear Nora,



thank you very much to report this issue that we didn't manage to catch out in our tests. We have checked our coordinate library (where the coordinates conversion are done) and we have found that there was a bug related to a wrong usage of the Java Math.signum method. As the official Java Docs for Math.signum says, this function:


"

Returns the signum function of the argument; zero if the argument is zero, 1.0 if the argument is greater than zero, -1.0 if the argument is less than zero.

Special Cases:

  • If the argument is NaN, then the result is NaN.
  • If the argument is positive zero or negative zero, then the result is the same as the argument.

"

We didn't handle well the second special case, where the input number is a negative zero.


We have fixed already this bug in our library and the plan is to release it together with the new version of ESASky 2.1 in February.


Thanks again to spot this issue!



Best regards,

Fabrizio