Skip to content

Initial implementation of an overlap script #852

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 20, 2025
Merged

Conversation

keskitalo
Copy link
Member

Add a new script that filters a schedule for entries that overlap with user-defined patch.

@keskitalo keskitalo requested review from tskisner and Copilot August 13, 2025 23:19
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new script toast_overlap_schedule.py that analyzes observation schedules to identify entries that overlap with a user-defined sky patch based on RA/Dec coordinates. The script creates hitmaps for observations and filters them against a specified target area.

  • Implements observation hitmap generation using HEALPix pixels and telescope pointing
  • Provides filtering functionality to identify schedule entries overlapping with target coordinates
  • Adds command-line interface with configurable parameters for field of view, resolution, and coordinate bounds

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
src/toast/scripts/toast_overlap_schedule.py New script implementing the core overlap detection functionality
src/toast/scripts/CMakeLists.txt Adds the new script to the build entry points
setup.py Registers the script as a console command entry point
Comments suppressed due to low confidence (1)

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Member

@tskisner tskisner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a really useful tool!

@keskitalo keskitalo merged commit e1de2fd into toast3 Aug 20, 2025
7 checks passed
@keskitalo keskitalo deleted the overlap_schedule branch August 20, 2025 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants