lsst-sssc / ssoforcedphot

MIT License
1 stars 1 forks source link

Make Horizons queries robust to target name #6

Closed mkelley closed 2 weeks ago

mkelley commented 2 months ago

Target names could resolve to multiple objects and/or orbits. The Horizons code needs to be able to handle this possibility and make the user aware of the result. Here are some examples:

szilac commented 1 month ago

I will change the input information (targets.csv). So far the columns look like this: # target, start_time, end_time, step I will insert +1 column as "target_type" which can be asteroid or comet. By modifying the Horizons (and Miriade) interface one can set the appropriate options for the query.

szilac commented 1 month ago

I have changed the QueryInput data. It should now contain a keyword for the object type. Currently it still follows the Horizons keywords like smallbody, asteroid_name, comet_name, designation, but I will change that. If you want to retrieve comet ephemeris data, miriade_interface will call the find_sso method from astroquery.ESASky to retrieve the corresponding name. Unfortunately, for Miriade I couldn't find any switches like in Horizons (closest_apparition, no_fragments) so this needs to be tested to see how it works in such boundary cases.