-
Notifications
You must be signed in to change notification settings - Fork 34
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
Cometary designations are not fully supported. #408
Comments
Was going to open a new issue, but decide to add it here since it seems related and better to fix these all in one go (but can split off into a different issue if you prefer, @mkelley). In any case, in the category of known bugs (i.e., already recognized and specified in the documentation), asteroid_or_comet() and parse_comet() in names.py will not recognize provisional comet designations unless they are preceded by P/, C/, D/, or X/, even if the rest of the designation follows the comet format of year-single letter-number. e.g., 2024 A1, which resolves to C/2024 A1 in the JPL SBDB query form; where Names.asteroid_or_comet('2024 A1') outputs 'asteroid'. So, the extra task would be to correct this behavior by checking for comet-like designations without requiring P/, C/, D/, or X/ at the beginning. This is probably needed to implement the improvement suggested in the discussion of PR 417 to use asteroid_or_comet() calls for code branching to produce packed designations of asteroids and comets instead of testing specific string indices. I think this should be a matter of updating the lists of acceptable and unacceptable comet and asteroid designation patterns in parse_asteroid() and parse_comet(). @mkelley, thoughts on whether to work on this now, or save for later, since as you said, PR 417 solves the problem for now? |
I think that this would break our current behavior for A/ objects, which have cometary-style provisional designations, but are phenomenologically asteroids. I think it is important to keep this behavior, since it is aligned with Horizons. I searched for a comet named A/2017 U1 with no matches, but an asteroid name correctly found `Oumuamua:
Perhaps cometary-style provisional designations without the [ACDPX]/ prefix should warn the user or raise an exception? If they are useful, we can also add new methods that ignore the prefix: |
Cometary designations are not fully supported:
These examples should use the 12-character format at:
https://www.minorplanetcenter.net/iau/info/PackedDes.html
Take care to account for two characters in a comet fragment designation, at least for numbered periodic comets. The MPC's comet orbit table file packs 73P-BA into
"0073P ba"
:https://www.minorplanetcenter.net/iau/MPCORB/CometEls.txt
However, the packed format description doesn't account for two-character fragment specifiers, and following the 73P rule (fragment in columns 11 and 12) will not work for a provisional designation, which needs to use the 11th character. For this latter case, should we raise an error or make it a 13-character string and raise a warning?
The text was updated successfully, but these errors were encountered: