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

写野に極が入る場合、leda-get-votable.py のSQLクエリの座標範囲指定がおかしくなるはず #17

Closed
rnanba opened this issue Mar 17, 2024 · 1 comment

Comments

@rnanba
Copy link
Owner

rnanba commented Mar 17, 2024

leda-get-votable.py でSQLクエリのWHEREにしている赤経赤緯の範囲指定の計算で、写野に極が含まれる場合を考慮していない。

leda-get-votable.py では単純に四隅の座標の赤経・赤緯の min, max を取っているが、それだと写野に極がある場合は極付近等に範囲に入らない部分が出てくる。本来は赤経の範囲は 0h 〜 24h (全周)、赤緯の範囲は写野に北極がある場合は四隅の赤緯の最小値 〜 90度、写野に南極がある場合は -90度 〜 四隅の赤緯の最大値、になるはず。

rnanba added a commit that referenced this issue Mar 17, 2024
- 「写野に極が入る場合、leda-get-votable.py のSQLクエリの座標範囲指定
  がおかしくなるはず #17 」への対応修正(たぶんこれでいけるはず)
- -m オプションで bt の制限が抜けていた(編集ミスで it の制限が重複して
  いた)のを修正
@rnanba
Copy link
Owner Author

rnanba commented Mar 17, 2024

v0.9.3 で対応した(はず)

@rnanba rnanba closed this as completed Mar 17, 2024
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

1 participant