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

Only annotate each object once, to help avoid overlapping text #300

Open
nealmcb opened this issue Jul 13, 2024 · 4 comments
Open

Only annotate each object once, to help avoid overlapping text #300

nealmcb opened this issue Jul 13, 2024 · 4 comments

Comments

@nealmcb
Copy link
Contributor

nealmcb commented Jul 13, 2024

As noted in the google group at Annotation needs some optimization, sometimes multiple annotations are shown for a single object, resulting in overlapping unreadable text.

dwhogg noted, "This is because we have duplicate names in the catalog we use for labeling."

As @dstndstn noted, the code which does the annotations is at https://github.com/dstndstn/astrometry.net/blob/main/plot/plotann.py
and "this is a hard problem".

Some more hints on the causes of the problem and possible solution approaches might help produce a pull request.

Many thanks for an amazing program and service!

@dstndstn
Copy link
Owner

dstndstn commented Jul 13, 2024 via email

@nealmcb
Copy link
Contributor Author

nealmcb commented Jul 13, 2024

Many thanks for the additional background!
The annotation that started me on this journey is https://nova.astrometry.net/user_images/10361523#annotated
I presume that it is most similar to the original poster's problem: the same star (T Coronae Borealis) is well-known and has names in multiple catalogs.
Given the challenges you note, providing website visitors with some additional information would be helpful.
If it had a tab providing a list of the provided annotations and their locations, I'd be able to at least figure out what names are being overlaid.
I'd also enjoy a tab for a list of all available annotations, including those that the algorithm decided to omit.

@dstndstn
Copy link
Owner

Something like that is available in the API: eg, for your example,
https://nova.astrometry.net/api/jobs/10935053/annotations

@nealmcb
Copy link
Contributor Author

nealmcb commented Jul 13, 2024

Cool - great to see how easy the API is to use!
In fact it inspired me to give a shot at an PR to clarify that: #301 API key not always required

If, as I suggest there, a further step was taken to create an API menu URL, linking to all other API options for given object, and add another tab with a link to that URL for the current object, then these very handy features would be much more discoverable.

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