Skip to content

Commit

Permalink
use ra/dec to order
Browse files Browse the repository at this point in the history
  • Loading branch information
yoachim committed Sep 6, 2024
1 parent a62783c commit b92f74f
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions rubin_scheduler/scheduler/surveys/surveys.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,21 +488,10 @@ def generate_observations_rough(self, conditions):
# everything was nans, or self.nvisit_block was zero
return []

# Let's find the alt, az coords of the points (right now,
# hopefully doesn't change much in time block)
# Not sure why need to convert to alt,az before running TSP,
# but it does seem to be better.
pointing_alt, pointing_az = _approx_ra_dec2_alt_az(
self.fields["RA"][self.best_fields],
self.fields["dec"][self.best_fields],
conditions.site.latitude_rad,
conditions.site.longitude_rad,
conditions.mjd,
lmst=conditions.lmst,
better_order = order_observations(
self.fields["RA"][self.best_fields], self.fields["dec"][self.best_fields]
)

better_order = order_observations(pointing_az, pointing_alt)

# XXX-TODO: Could try to roll better_order to start at
# the nearest/fastest slew from current position.
observations = []
Expand Down

0 comments on commit b92f74f

Please sign in to comment.