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

Generalize to other spectral lines #1

Open
kmhess opened this issue Feb 3, 2022 · 2 comments
Open

Generalize to other spectral lines #1

kmhess opened this issue Feb 3, 2022 · 2 comments
Labels
Good for ADP Priority for Advanced Data Product pipeline

Comments

@kmhess
Copy link
Owner

kmhess commented Feb 3, 2022

CO immediately comes to mind, but maybe OH 1667/1665 as well.

@mctoribio
Copy link

This is potentially useful information on how to query for spectral lines in splatalogue.

The python package SpectralCube already does that in this function:
https://spectral-cube.readthedocs.io/en/latest/api/spectral_cube.SpectralCube.html#spectral_cube.SpectralCube.find_lines

And in the following tutorial using ALMA they show an example on how to call it, including how to use dask to parallelise it (at the end of the page):
https://learn.astropy.org/tutorials/SpectralCubeReprojectExample.html

"...We use the find_lines tool to query splatalogue with astroquery over the spectral range covered by the cube. It returns a table of matching lines. Note that some line names will be repeated because Splatalogue includes several different databases and most chemical species are present in all of these.

cube1.find_lines(chemical_name=' H2CS ').show_in_notebook()

The tutorial covers all these steps applied to ALMA datacubes:

Step 1: Download
Step 2: Open files, collect metadata
Step 3: Convert to velocity
Step 4: Spectral Interpolation
Step 5: Spatial Smoothing
Step 6: Reprojection

@mctoribio
Copy link

This paper may be relevant for this purpose

Automated Spectroscopic Detection And Mapping Using ALMA
and Machine LearningTechniques

Cocke et al. 2020

The code behind the processes was originally built in a Jupyter Notebook, but has since been modified to be compatible with Google Colab so that it may be used by anyone with an internet connection and the AutoSpec.ipynb file. Google Colab includes most of the standard python libraries already built-in. For the few non-standard libraries (Astroquery, Astropy), they are automatically installed in the Google Colab environment for use with the code. In this manner, the end user needs only to upload data to Google Colab, and run every cell. The output of the program is automatic and are the most probably set-cover combinations for whatever data has been fed into the program. In this way, any celestial object with spectral data gathered in a similar format to that used in our process will have the ability to be analyzed seemlessly.

@kmhess kmhess added the Good for ADP Priority for Advanced Data Product pipeline label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good for ADP Priority for Advanced Data Product pipeline
Projects
None yet
Development

No branches or pull requests

2 participants