Skip to content

Conversation

@cmsaunders
Copy link
Contributor

No description provided.

@cmsaunders cmsaunders changed the title DM-53499 DM-53499: Use stellar motion catalog to correct positions Dec 4, 2025
dimensions=("instrument", "skymap", "tract", "physical_filter"),
multiple=True,
astrometricCorrectionCatalog = ct.Input(
doc="Table of associated sources",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could this doc be clearer? I'm not entirely certain what associated sources means.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is actually a copy-paste error. I changed it to "Catalog with proper motion and parallax information."

# in the join and avoid sorting.
dataWithMJD.sort("__index__")
medianMJD = astropy.time.Time(np.median(mjds), format="mjd", scale="tai")
mjds = visitTable.loc[dataWithPM["visit"]]["expMidptMJD"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Probably outside the scope of this ticket but can we one day get the visitTable to be astropy and remove the uses of pandas.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would do it if I had finished 12 hours earlier...I think we can get rid of the rest of the pandas pretty easily on another ticket now though.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I know that feeling, a future ticket would be great, thank you.

"pmRA": "raPM",
"pmDec": "decPM",
"parallax": "parallax",
"isolated_star_id": "isolated_star_id",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this one need to be snake case when all of the others are camel case? Also above I think.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Both the left and right hand sides have to match what is in existing tables.

Catalog containing the epoch for the visit corresponding to the
isolatedSources.
astrometricCorrectionCatalog : `pd.DataFrame`
astrometricCorrectionCatalog : `astropy.table.Table`
Copy link
Collaborator

Choose a reason for hiding this comment

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

These make me happy.

@cmsaunders cmsaunders merged commit e1878bc into main Dec 4, 2025
13 checks passed
@cmsaunders cmsaunders deleted the tickets/DM-53499 branch December 4, 2025 04:42
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.

3 participants