Skip to content
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

Ingest Catalogs: get position from existing catalog (by id) #282

Merged

Conversation

Theodlz
Copy link
Collaborator

@Theodlz Theodlz commented Mar 15, 2024

Some catalogs like PS1-PSC (provides star/galaxy score for all PS1 sources) do not provide coordinates, but the identifier of an object in another catalog that has the coordinates.

This PR adds the code needed to crossmatch (by id) new entries to the entries of an existing catalog to fetch the relevant coordinates, and add them as the coordinates of the documents of the new catalog.

Also, we refactor the main method to split it in 3 methods, one per file format

@Theodlz Theodlz requested a review from mcoughlin March 15, 2024 00:06
Copy link
Collaborator

@mcoughlin mcoughlin left a comment

Choose a reason for hiding this comment

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

Gotta love that html parsing.

@Theodlz
Copy link
Collaborator Author

Theodlz commented Mar 15, 2024

Gotta love that html parsing.

2024 and API's are still a luxury not a standard 🤡

@Theodlz Theodlz merged commit 651fdd4 into skyportal:main May 16, 2024
2 checks passed
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