sot / mica

Microscope on Chandra aspect
https://sot.github.io/mica
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Add get_star_stats single-star method for acq/gui stats and remove Sybase from mica.web.star_hist #259

Closed jeanconn closed 3 years ago

jeanconn commented 3 years ago

Description

Add some methods to do single star queries to the stats fetchers and update the mica.web star history piece to not use Sybase for guide stats.

Testing

Not fully integration tested in kadi just yet.

jeanconn commented 3 years ago

These were tiny changes for mica web to not use sybase. Added a couple of other convenience methods. Seems it could just go but no rush.

jeanconn commented 3 years ago

Thanks Tom! Also, for the star history app, @javierggt where should I be linking for the supplement star reports? This PR was the minimal set that occurred to me to remove Sybase but I do want to both report the supplement mags and link into the reports if available.

javierggt commented 3 years ago

as far as where to find the supplement star reports, I would do something like

url = f'https://cxc.cfa.harvard.edu/mta/ASPECT/agasc/supplement_reports/stars/{int(agasc_id//1e7):03d}/{agasc_id}/index.html'