Hi Max,
I'm working on some code for which I would like to get the designations of arbitrary named asteroids from within the rocks python module which, as far as I can tell, is not currently possible.
For example, when looking at Ryugu, I can easily get both the name and number but not the designation 1999 JU3, which is what I want in this context:
>>> x = Rock("Ryugu")
>>> x.number
162173
>>> x.name
'Ryugu'
>>> x.designation
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ubuntu/.local/lib/python3.10/site-packages/rocks/core.py", line 1039, in __getattr__
raise AttributeError(
AttributeError: 'Rock' object has no attribute 'designation'. Run 'rocks parameters' to get a list of accepted properties.
Running rocks ids Ryugu on the command line gets me the information I want but, as far as I can tell, it's not exposed anywhere in the python module. Would you mind implementing something among these lines? Presumably it would be straightforward to do since I see it's already possible to get this information through resolve.identify. If you want, I can also try to implement this myself.
Hi Max,
I'm working on some code for which I would like to get the designations of arbitrary named asteroids from within the rocks python module which, as far as I can tell, is not currently possible.
For example, when looking at Ryugu, I can easily get both the name and number but not the designation 1999 JU3, which is what I want in this context:
Running
rocks ids Ryuguon the command line gets me the information I want but, as far as I can tell, it's not exposed anywhere in the python module. Would you mind implementing something among these lines? Presumably it would be straightforward to do since I see it's already possible to get this information throughresolve.identify. If you want, I can also try to implement this myself.