Skip to content

Add Rubin exposure exporter convenience tooling for Ponder - #27

Open
ColinOrionChandler wants to merge 1 commit into
mainfrom
codex/import-exposures-exporter
Open

ColinOrionChandler wants to merge 1 commit into
mainfrom
codex/import-exposures-exporter

Conversation

@ColinOrionChandler

Copy link
Copy Markdown
Contributor

Change Description

Convenience tool for exporting exposures from Rubin Butler repo(s) to convenient formats, including a Sorcha-read db file. This is not a fully mature tool yet, it still needs better depth derivations (e.g., via visit summaries, etc. and interpolating when absent). Add a structure for convenience utilities.

Solution Description

Use the the Exposure table to learn of all exposures taken with Rubin, including acq that may otherwise be difficult to find. Output a Sorcha-ready sqlite db file.

@maxwest-uw

Copy link
Copy Markdown
Collaborator

could you run python -m isort ./src in the root directory and then commit those changes ? just to appease the pre-commit hooks :)

# --- Cone search helpers ---


def _looks_like_radians(ra: float, dec: float) -> bool:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

is this a safe function to use generally ? what happens if the observation is between 0 < (ra, dec) < 2 * pi + 0.2 ?

return ""


def _looks_like_radians_scalar(x: float | None) -> bool:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

same question as above

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