Skip to content

Ingest for Roth24 spectra#581

Merged
kelle merged 26 commits intoSIMPLE-AstroDB:mainfrom
rothermichaustin:Roth24-spectra
May 22, 2025
Merged

Ingest for Roth24 spectra#581
kelle merged 26 commits intoSIMPLE-AstroDB:mainfrom
rothermichaustin:Roth24-spectra

Conversation

@rothermichaustin
Copy link
Copy Markdown
Contributor

@rothermichaustin rothermichaustin commented Mar 4, 2025

Spectra from Rothermich et al. 2024.

Link to relevant issue: Closes #546

For data ingests:

  • includes script used for ingest
  • includes modified JSON files
  • Add new tests
  • Update the Versions table

@kelle
Copy link
Copy Markdown
Collaborator

kelle commented Mar 4, 2025

Please include at least one example FITS file with this PR.

@kelle
Copy link
Copy Markdown
Collaborator

kelle commented Mar 4, 2025

Both of those notebooks looks pretty sparse. Did you mean to include a different one?

@kelle kelle marked this pull request as draft March 4, 2025 23:43
@rothermichaustin
Copy link
Copy Markdown
Contributor Author

Yes, you are correct that was the wrong file. I have added the actual script.

@kelle
Copy link
Copy Markdown
Collaborator

kelle commented Mar 5, 2025

Nice -- great start! specutils now does most of this work for you. Instead of making a table and using fits, you can do it all with a Spectrum1D object:

spec = Spectrum1D(spectral_axis=wave, flux=flux, uncertainty=err)
spec.meta["header"] = header
spec.write(<filename>, format="tabular-fits")

@kelle
Copy link
Copy Markdown
Collaborator

kelle commented Mar 5, 2025

could you also add the original fits file?

@kelle kelle changed the title Spectra conversion notebook for Roth24 sources Spectra ingest for Roth24 spectra Apr 22, 2025
@kelle kelle changed the title Spectra ingest for Roth24 spectra Ingest for Roth24 spectra Apr 22, 2025
@kelle kelle requested a review from canavarrete01 May 11, 2025 23:10
@kelle kelle marked this pull request as ready for review May 11, 2025 23:10
Copy link
Copy Markdown
Contributor

@canavarrete01 canavarrete01 left a comment

Choose a reason for hiding this comment

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

I like the changes made to test_spectra_utils here I think they do a good job in clarifying errors for the user. Looks all good to me

@kelle kelle requested a review from canavarrete01 May 20, 2025 22:34
@kelle kelle merged commit 114acaa into SIMPLE-AstroDB:main May 22, 2025
3 checks passed
lesliech1004 pushed a commit to lesliech1004/SIMPLE-db that referenced this pull request Jul 23, 2025
…AstroDB#581)

* Adding scripts and CSV files for converting and ingesting spectra.

* improvements to ingest_spectra and Roth24 ingest script

* spectra function improvements

* json files

* Version update

---------

Co-authored-by: kelle <kellecruz@gmail.com>
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.

Convert Roth24 spectra and ingest

3 participants