Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target information panel mangles offset coordinates #9

Open
grahambell opened this issue Oct 9, 2014 · 3 comments
Open

Target information panel mangles offset coordinates #9

grahambell opened this issue Oct 9, 2014 · 3 comments

Comments

@grahambell
Copy link
Contributor

The automated coordinate system conversions give the wrong answer for offset coordinates. In other words you can repeatedly switch between FK5 and Galactic and the FK5 values keep changing.

@timj
Copy link
Contributor

timj commented Oct 9, 2014

Does the coordinate conversion take offsets into account? I'm surprised it does that. What it should do is rotate the offset to the new coordinate system. The base position should just be a simple conversion. I had assumed it would convert the base position, but also convert the "base + offset" to the new system and then convert the result back to an offset relative to the newly converted base.

@grahambell
Copy link
Contributor Author

I suspect it converts the position + offset and then also leaves the offset in place too. I was just trying to move the offset boxes around in the GUI, and while testing what I had done, came across this problem and another one where an IllegalArgumentException was being thrown -- I committed a work-around for that problem.

@timj
Copy link
Contributor

timj commented Oct 9, 2014

Well, yes, except it should never convert such that the new BASE is the old BASE plus old OFFSET. If someone has specified an offset that should be retained as an offset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants