sot / chandra_aca

Chandra Aspect Camera Tools
https://sot.github.io/chandra_aca
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Calculate row/col of planet even if off CCD #112

Closed jeanconn closed 3 years ago

jeanconn commented 3 years ago

Description

Calculate row/col of planet even if off CCD (by using allow_bad=True in yagzag_to_pixels).

Testing

Functional test:

Allows this:

plot_stars([-0.45749853478319497,, 0.4309589967008305, -0.2887493342348751, 0.7222141343208118], starcat_time='2020:328:22:56:56.820', duration=10000)

to work without throwing a "ValueError: Coordinate off CCD". I don't think this deserves a unit test but that's available if we want it.