Skip to main content
Ctrl+K
dysh 0.11.5 documentation - Home
  • GitHub
  • What’s New?
  • Getting Started
  • Tutorials
    • dysh Interactive Plotter Tutorial
    • Position-Switched Data Reduction
    • Frequency-switched Data Reduction
    • SubBeamNod Data Reduction
    • Nodding Data Reduction
    • HI Survey
    • Calibration Without Noise Diodes (calseq)
    • Vane Calibration
    • On-The-Fly (OTF) Data Reduction
    • Selecting Data
  • Recipes
    • Spectral Axes, Velocity Frames and Conventions
    • Modifying Metadata
    • Smoothing
    • Saving Data to External Files
    • Aligning Spectra
    • Flagging
    • Using Spectral Weights
    • Work With Repeated Scan Numbers
    • Gaussian Fitting
    • Custom Baseline Fitting
    • Merging SDFITS Files
    • Modifying the Default Values for Surface Error and Aperture Efficiency
    • Data Quality
    • Spectral Line Search
  • Explanation Material
    • ScanBlock
    • Curve of Growth
    • SDFITS Files
  • Reference Guides
    • Modules and APIs
      • Reading in and writing out observations
      • Spectral classes and functions
      • Plotting classes and functions
      • Spatial and Velocity Coordinates and Reference Frames
      • Utility classes and functions
      • Spectral line search classes and functions
      • Logging classes and functions
    • SDFITS Files
      • GBT SDFITS Files
    • dysh for GBTIDL Users
    • A dysh glossary
    • Single Dish Math
  • For Beta Testers
    • Instructions for Beta Testers
  • For Developers
    • Contributing
    • Installation and Virtual Environment
    • Testing & GitHub Integrations
    • Documentation
    • Managing Requirements
    • Publishing a new dysh release
  • A dysh glossary
  • Show source
  • Open issue
  • .ipynb

Spectral Line Search

Contents

  • Loading Modules
  • Example 1. Doing an online or local search with SpectralLineSearch
    • Do an online search for N2H+ lines between 80 and 400 GHz
    • Do a local search for methyl formate.
    • Search for Recombination Lines
  • Example 2. Search within the frequency range of a Spectrum

Spectral Line Search#

This example shows how to use dysh to search for spectral lines. Searches can be done for a user-specified frequency range or for the frequency axis of a Spectrum. You can use a remote query to Splatalogue or use local tables distributed with dysh.

First we show how to do a search using a SpectralLineSearch object, then using a Spectrum object.

Loading Modules#

We start by loading the modules we will use.

# These modules are required for this example.
from dysh.line import SpectralLineSearch
from dysh.spectra import Spectrum
from astropy import units as u

Example 1. Doing an online or local search with SpectralLineSearch#

SpectralLineSearch is a thin wrapper on top of astroquery.splatalogue.Splatalogue, with some additional conveniences for working in dysh and with GBT data. You search a catalog in a given frequency range, optionally narrow down to specific molecules, line strengths, energies, etc. The return object is an astropy Table. Below are a few example searches.

Do an online search for N2H+ lines between 80 and 400 GHz#

Online searching of Splatalogue is the default. Note in this example we use an initial space in the chemical_name to eliminate other molecules that have the string 'N2H+' in them. We set an intensity_lower_limit to weed out some of the weaker satellite lines. When giving an intensity_lower_limit, one must also provide an intensity_type string, a minimum match to 'CDMS/JPL (log)', 'Sij-mu2', or 'Aij (log)'.

minfreq = 80*u.GHz
maxfreq = 400*u.GHz
table = SpectralLineSearch.query_lines(minfreq, maxfreq, 
                                       chemical_name=" N2H+", 
                                       intensity_lower_limit=-3, 
                                       intensity_type="CDMS")
print(f"{len(table)} rows returned.")
57 rows returned.

To inspect the available columns use the Table.colnames attribute:

print(table.colnames)
['species_id', 'name', 'chemical_name', 'resolved_QNs', 'linelist', 'LovasASTIntensity', 'lower_state_energy', 'upper_state_energy', 'sijmu2', 'sij', 'aij', 'intintensity', 'Lovas_NRAO', 'orderedfreq', 'lower_state_energy_K', 'upper_state_energy_K', 'upperStateDegen', 'moleculeTag', 'qnCode', 'labref_Lovas_NIST', 'rel_int_HFS_Lovas', 'unres_quantum_numbers', 'lineid', 'transition_in_space', 'transition_in_G358', 'obsref_Lovas_NIST', 'source_Lovas_NIST', 'telescope_Lovas_NIST', 'searchErrorMessage']

The orderedfreq column is the rest frequency of the transition in MHz.

Some columns in the table often have embedded HTML. That’s the way they come from Splatalogue. ¯\_(ツ)_/¯

table
Table length=57
species_idnamechemical_nameresolved_QNslinelistLovasASTIntensitylower_state_energyupper_state_energysijmu2sijaijintintensityLovas_NRAOorderedfreqlower_state_energy_Kupper_state_energy_KupperStateDegenmoleculeTagqnCodelabref_Lovas_NISTrel_int_HFS_Lovasunres_quantum_numberslineidtransition_in_spacetransition_in_G358obsref_Lovas_NISTsource_Lovas_NISTtelescope_Lovas_NISTsearchErrorMessage
int64str57str11str44str4str4float64float64float64float64float64float64int64float64float64float64str2int64int64str1str1str18int64int64int64str6str8str13str1
148N<sub>2</sub>H<sup>+</sup> <font color="red">v = 0</font>DiazenyliumJ= 1 - 0, F<sub>1</sub>= 1- 1JPL0.80.03.1078837.250383.222-4.40932-2.7844193171.880.04.471529-29005102J=1-0-F1=1-183034010Cas95L134NNRAO 11m
148N<sub>2</sub>H<sup>+</sup> <font color="red">v = 0</font>DiazenyliumJ = 1 - 0CDMS0.03.10793104.042570.0-4.44034-2.3383193173.39770.04.4716527295061011 01463264900
148N<sub>2</sub>H<sup>+</sup> <font color="red">v = 0</font>DiazenyliumJ= 1 - 0, F<sub>1</sub>= 2- 1JPL0.60.03.1079462.088875.371-4.40926-2.5625193173.70.04.4716115-29005102J=1-0-F1=2-183034110Cas95L134NNRAO 11m
148N<sub>2</sub>H<sup>+</sup> <font color="red">v = 0</font>DiazenyliumJ= 1- 0,F<sub>1</sub>= 2- 1,F= 3- 2CDMS0.03.1079426.971660.0-4.44038-2.9246193173.76990.04.471667295061031 2 3 0 1 21463270400
148N<sub>2</sub>H<sup>+</sup> <font color="red">v = 0</font>DiazenyliumJ= 2- 1,F<sub>1</sub>= 2- 2,F= 3- 3CDMS3.10799.323638.123940.0-4.05846-2.85341186342.92494.471613.414717295061032 2 3 1 2 31463271400
148N<sub>2</sub>H<sup>+</sup> <font color="red">v = 0</font>DiazenyliumJ= 2- 1,F<sub>1</sub>= 1- 0,F= 1- 1CDMS3.1089.323747.467350.0-3.72708-2.891186343.06164.4717513.414863295061032 1 1 1 0 11463271600
148N<sub>2</sub>H<sup>+</sup> <font color="red">v = 0</font>DiazenyliumJ= 2- 1,F<sub>1</sub>= 1- 0,F= 2- 1CDMS3.1089.3237412.869610.0-3.71253-2.65361186343.26914.4717513.414875295061032 1 2 1 0 11463271800
148N<sub>2</sub>H<sup>+</sup> <font color="red">v = 0</font>DiazenyliumJ= 2- 1,F<sub>1</sub>= 2- 1,F= 2- 1CDMS3.10799.3236813.815290.0-3.68173-2.62281186344.39414.471613.414785295061032 2 2 1 1 11463272100
148N<sub>2</sub>H<sup>+</sup> <font color="red">v = 0</font>DiazenyliumJ = 2 - 1CDMS3.10799.32369208.093630.0-3.45807-1.44491186344.68444.471613.414845295061012 11463265000
.......................................................................................
148N<sub>2</sub>H<sup>+</sup> <font color="red">v = 0</font>DiazenyliumJ=4-3JPL18.647231.07822446.7181738.6-2.47854-0.54991372672.50926.8290144.7143681-29005101J=4-383034500
148N<sub>2</sub>H<sup>+</sup> <font color="red">v = 0</font>DiazenyliumJ= 4- 3,F<sub>1</sub>= 4- 3,F= 5- 4CDMS18.647231.0782252.556770.0-2.54085-1.47931372672.511626.8293444.7149111295061034 4 5 3 3 41463277700
148N<sub>2</sub>H<sup>+</sup> <font color="red">v = 0</font>DiazenyliumJ= 4- 3,F<sub>1</sub>= 5- 4,F= 4- 3CDMS18.647331.0783243.694710.0-2.5339-1.55951372672.516426.8294844.715069295061034 5 4 3 4 31463277800
148N<sub>2</sub>H<sup>+</sup> <font color="red">v = 0</font>DiazenyliumJ= 4- 3,F<sub>1</sub>= 5- 4,F= 5- 4CDMS18.647231.0782254.591960.0-2.52435-1.46281372672.522826.8293444.7149111295061034 5 5 3 4 41463277900
148N<sub>2</sub>H<sup>+</sup> <font color="red">v = 0</font>DiazenyliumJ= 4- 3,F<sub>1</sub>= 5- 4,F= 6- 5CDMS18.647231.0782266.792640.0-2.5093-1.37521372672.553526.8293444.7149113295061034 5 6 3 4 51463278000
148N<sub>2</sub>H<sup>+</sup> <font color="red">v = 0</font>DiazenyliumJ= 4- 3,F<sub>1</sub>= 3- 2,F= 2- 2CDMS18.647331.078334.114610.0-3.30472-2.58561372672.820126.8294844.715075295061034 3 2 3 2 21463278100
148N<sub>2</sub>H<sup>+</sup> <font color="red">v = 0</font>DiazenyliumJ= 4- 3,F<sub>1</sub>= 4- 3,F= 3- 3CDMS18.647231.078232.041870.0-3.75515-2.88991372672.921326.8293444.714937295061034 4 3 3 3 31463278200
148N<sub>2</sub>H<sup>+</sup> <font color="red">v = 0</font>DiazenyliumJ= 4- 3,F<sub>1</sub>= 5- 4,F= 4- 4CDMS18.647231.078232.49590.0-3.7771-2.80271372673.02826.8293444.714949295061034 5 4 3 4 41463278300
148N<sub>2</sub>H<sup>+</sup> <font color="red">v = 0</font>DiazenyliumJ= 4- 3,F<sub>1</sub>= 3- 3,F= 3- 3CDMS18.647231.078293.043850.0-3.58175-2.71651372674.84626.8293444.715027295061034 3 3 3 3 31463278600
148N<sub>2</sub>H<sup>+</sup> <font color="red">v = 0</font>DiazenyliumJ= 4- 3,F<sub>1</sub>= 3- 3,F= 4- 4CDMS18.647231.07833.233870.0-3.66459-2.69021372674.910126.8293444.715039295061034 3 4 3 3 41463278700

Do a local search for methyl formate.#

This uses a GBT-specific catalog distributed with dysh. You can also provide your own catalog in an astropy Table format. The first time you use a given catalog, there will be some additional overhead to read it in and cache it. Subsequent searches will be faster because they use the cached version. Note the default regular expression matching is case-insensitive. The gbtlines catalog has most lines from 300 MHz to 120 GHz, and commonly observed redshifted lines from 120 GHz to 5 THz.

minfreq = 400*u.MHz
maxfreq = 5550*u.MHz
table = SpectralLineSearch.query_lines(minfreq, maxfreq,
                                       cat='gbtlines', 
                                       chemical_name="methyl formate")
print(f"{len(table)} rows returned.")
48 rows returned.
table
Table length=48
species_idnamechemical_nameresolved_QNslinelistLovasASTIntensitylower_state_energyupper_state_energysijmu2sijaijintintensityLovas_NRAOorderedfreqlower_state_energy_Kupper_state_energy_KupperStateDegenmoleculeTagqnCodelabref_Lovas_NISTrel_int_HFS_Lovasunres_quantum_numberslineidtransition_in_spacetransition_in_G358obsref_Lovas_NISTsource_Lovas_NISTtelescope_Lovas_NISTsearchErrorMessage
int64str47str14str44str6bytes1float64float64float64float64float64float64int64float64float64float64str3int64int64str5bytes1str20int64int64int64bytes1bytes1bytes1bytes1
393CH<sub>3</sub>OCHO <font color="red">v=0</font>Methyl Formate1(1, 0) - 1(1, 1), v<sub>t</sub> = 0 - 0, AToyaMA--0.90.953710.00.00.00.0353701610.2491.294911.37219--00Brown----1069242700--------
393CH<sub>3</sub>OCHO <font color="red">v=0</font>Methyl Formate1(1, 0) - 1(1, 1), v<sub>t</sub> = 0 - 0, EToyaMA--0.90.953730.00.00.00.0353701610.9061.294911.37222--00Brown----1069242800--------
393CH<sub>3</sub>OCHO <font color="red">v=0</font>Methyl Formate27( 8,19)-27( 8,20) AJPL--185.6381185.7044810.708430.0-10.74808--11990.0988267.09028267.18579110600031404----27 819 0 27 820 01141636400--------
393CH<sub>3</sub>OCHO <font color="red">v=0</font>Methyl Formate11( 4, 7)-11( 4, 8) AJPL--34.543934.610396.894920.0-10.55855--11993.292249.7006849.7963446600031404----11 4 7 0 11 4 8 01141636500--------
393CH<sub>3</sub>OCHO <font color="red">v=0</font>Methyl Formate4( 2, 2)- 4( 2, 3) AJPL--5.92365.991324.627460.0-10.30044--12030.06318.522698.6201218600031404----4 2 2 0 4 2 3 01141636600--------
393CH<sub>3</sub>OCHO <font color="red">v=0</font>Methyl Formate23( 7,16)-23( 7,17) AJPL--136.5469136.618599.72730.0-10.62136--12149.165196.4594196.5625494600031404----23 716 0 23 717 01141636700--------
393CH<sub>3</sub>OCHO <font color="red">v=0</font>Methyl Formate15( 5,10)-15( 5,11) AJPL--60.994661.068167.800190.0-10.50287--12205.37787.7571287.8629662600031404----15 510 0 15 511 01141636800--------
393CH<sub>3</sub>OCHO <font color="red">v=0</font>Methyl Formate19( 6,13)-19( 6,14) AJPL--94.99795.07168.752450.0-10.53441--12236.3094136.67871136.7860378600031404----19 613 0 19 614 01141636900--------
393CH<sub>3</sub>OCHO <font color="red">v=0</font>Methyl Formate36(10,26)-36(10,27) AJPL--321.4598321.5472712.038570.0-10.46084--12622.1518462.50629462.63213146600031404----361026 0 361027 01141637000--------
.......................................................................................
1333CH<sub>3</sub>OCHO<font color="red"> v=1</font>Methyl Formate38(10,28)-38(10,29) AJPL--480.8501481.0084510.956980.0-9.75158--04747.0995691.83205692.05988154600031404----381028 3 381029 31141640000--------
393CH<sub>3</sub>OCHO <font color="red">v=0</font>Methyl Formate46(12,34)-46(12,35) AJPL--513.7385513.899312.725180.0-9.7486--14820.5148739.15085739.3822186600031404----461234 0 461235 01141640100--------
393CH<sub>3</sub>OCHO <font color="red">v=0</font>Methyl Formate2( 1, 1)- 2( 1, 2) EJPL--1.61841.779442.214440.0-9.23648--14827.96572.32852.5602110600031404----2 1 1 2 2 1 2 11141640200--------
393CH<sub>3</sub>OCHO <font color="red">v=0</font>Methyl Formate2( 1, 1)- 2( 1, 2) AJPL--1.6051.766132.215410.0-9.23557--14830.64092.309222.5410610600031404----2 1 1 0 2 1 2 01141640300--------
393CH<sub>3</sub>OCHO <font color="red">v=0</font>Methyl Formate33( 9,24)-33( 9,25) EJPL--269.4333269.5965910.378770.0-9.67465--14895.3142387.65219387.88712134600031404----33 924 2 33 925 11141640400--------
393CH<sub>3</sub>OCHO <font color="red">v=0</font>Methyl Formate33( 9,24)-33( 9,25) AJPL--269.4373269.6008810.383010.0-9.67218--14903.9512387.65794387.89329134600031404----33 924 0 33 925 01141640500--------
1333CH<sub>3</sub>OCHO<font color="red"> v=1</font>Methyl Formate21( 6,15)-21( 6,16) AJPL--241.7578241.932247.490790.0-9.53759--05229.6632347.83355348.0845386600031404----21 615 3 21 616 31141640600--------
1333CH<sub>3</sub>OCHO<font color="red"> v=1</font>Methyl Formate9( 3, 6)- 9( 3, 7) AJPL--153.0547153.233534.516760.0-9.37024--05361.0499220.21031220.4675938600031404----9 3 6 3 9 3 7 31141640700--------
393CH<sub>3</sub>OCHO <font color="red">v=0</font>Methyl Formate29( 8,21)-29( 8,22) EJPL--209.4473209.632059.383770.0-9.50232--15538.6728301.34621301.61202118600031404----29 821 2 29 822 11141640800--------
393CH<sub>3</sub>OCHO <font color="red">v=0</font>Methyl Formate29( 8,21)-29( 8,22) AJPL--209.4498209.634899.385650.0-9.49981--15549.0032301.34981301.61612118600031404----29 821 0 29 822 01141640900--------

Search for Recombination Lines#

dysh has special methods to search for recombination lines of Hydrogen, Helium, and Carbon. SpectralLineSearch.recomb will search for a specific atom/transition, while SpectralLineSearch.recomball will search for all three species.

minfreq = 300*u.MHz
maxfreq = 2.0*u.GHz
table = SpectralLineSearch.recomb(minfreq, maxfreq,
                                  cat='gbtrecomb',
                                  line="Hebeta")
table
Table length=165
species_idnamechemical_nameresolved_QNslinelistLovasASTIntensitylower_state_energyupper_state_energysijmu2sijaijintintensityLovas_NRAOorderedfreqlower_state_energy_Kupper_state_energy_KupperStateDegenmoleculeTagqnCodelabref_Lovas_NISTrel_int_HFS_Lovasunres_quantum_numberslineidtransition_in_spacetransition_in_G358obsref_Lovas_NISTsource_Lovas_NISTtelescope_Lovas_NISTsearchErrorMessage
int64str8str25str17str6bytes1float64float64float64float64float64float64int64float64float64float64bytes1int64int64bytes1bytes1str13int64int64int64bytes1bytes1bytes1bytes1
1161He&beta;Helium Recombination LineHe ( 351 ) &beta;Recomb--0.00.00.00.00.0--1301.6855436647610.00.0--00----He(351)&beta;395658200--------
1161He&beta;Helium Recombination LineHe ( 350 ) &beta;Recomb--0.00.00.00.00.0--1304.2714337659710.00.0--00----He(350)&beta;395658100--------
1161He&beta;Helium Recombination LineHe ( 349 ) &beta;Recomb--0.00.00.00.00.0--1306.8869617776960.00.0--00----He(349)&beta;395658000--------
1161He&beta;Helium Recombination LineHe ( 348 ) &beta;Recomb--0.00.00.00.00.0--1309.5325535354720.00.0--00----He(348)&beta;395657900--------
1161He&beta;Helium Recombination LineHe ( 347 ) &beta;Recomb--0.00.00.00.00.0--1312.208642238061030.00.0--00----He(347)&beta;395657800--------
1161He&beta;Helium Recombination LineHe ( 346 ) &beta;Recomb--0.00.00.00.00.0--1314.9156685964110.00.0--00----He(346)&beta;395657700--------
1161He&beta;Helium Recombination LineHe ( 345 ) &beta;Recomb--0.00.00.00.00.0--1317.6540809860850.00.0--00----He(345)&beta;395657600--------
1161He&beta;Helium Recombination LineHe ( 344 ) &beta;Recomb--0.00.00.00.00.0--1320.424335603228030.00.0--00----He(344)&beta;395657500--------
1161He&beta;Helium Recombination LineHe ( 343 ) &beta;Recomb--0.00.00.00.00.0--1323.2268966241660.00.0--00----He(343)&beta;395657400--------
.......................................................................................
1161He&beta;Helium Recombination LineHe ( 196 ) &beta;Recomb--0.00.00.00.00.0--11721.072570308670.00.0--00----He(196)&beta;395642700--------
1161He&beta;Helium Recombination LineHe ( 195 ) &beta;Recomb--0.00.00.00.00.0--11747.55107052093010.00.0--00----He(195)&beta;395642600--------
1161He&beta;Helium Recombination LineHe ( 194 ) &beta;Recomb--0.00.00.00.00.0--11774.57553115581980.00.0--00----He(194)&beta;395642500--------
1161He&beta;Helium Recombination LineHe ( 193 ) &beta;Recomb--0.00.00.00.00.0--11802.160096640620.00.0--00----He(193)&beta;395642400--------
1161He&beta;Helium Recombination LineHe ( 192 ) &beta;Recomb--0.00.00.00.00.0--11830.319353429690.00.0--00----He(192)&beta;395642300--------
1161He&beta;Helium Recombination LineHe ( 191 ) &beta;Recomb--0.00.00.00.00.0--11859.068346205050.00.0--00----He(191)&beta;395642200--------
1161He&beta;Helium Recombination LineHe ( 190 ) &beta;Recomb--0.00.00.00.00.0--11888.422594759070.00.0--00----He(190)&beta;395642100--------
1161He&beta;Helium Recombination LineHe ( 189 ) &beta;Recomb--0.00.00.00.00.0--11918.398111591760.00.0--00----He(189)&beta;395642000--------
1161He&beta;Helium Recombination LineHe ( 188 ) &beta;Recomb--0.00.00.00.00.0--11949.011420256970.00.0--00----He(188)&beta;395641900--------
1161He&beta;Helium Recombination LineHe ( 187 ) &beta;Recomb--0.00.00.00.00.0--11980.279574493510.00.0--00----He(187)&beta;395641800--------

Search all recombination lines. As with any astropy Table, you can limit the displayed columns with a list.

table = SpectralLineSearch.recomball(minfreq, maxfreq,
                                     cat='gbtrecomb')
table[['name', 'chemical_name', 'orderedfreq']]
Table length=2332
namechemical_nameorderedfreq
str10str27float64
H&epsilon;Hydrogen Recombination Line300.134854181299
H&gamma;Hydrogen Recombination Line300.310962014245
He&gamma;Helium Recombination Line300.43333977202605
C&gamma;Carbon Recombination Line300.460803205189
H&delta;Hydrogen Recombination Line300.536517272198
He&delta;Helium Recombination Line300.65898694452807
H&alpha;Hydrogen Recombination Line301.179832211236
He&alpha;Helium Recombination Line301.30256403663304
C&alpha;Carbon Recombination Line301.33010692796296
.........
C&gamma;Carbon Recombination Line1972.4531543176602
H&delta;Hydrogen Recombination Line1976.26579923329
He&delta;Helium Recombination Line1977.0711343954397
H&beta;Hydrogen Recombination Line1979.47293241347
He&beta;Helium Recombination Line1980.27957449351
C&beta;Carbon Recombination Line1980.46059726474
H&zeta;Hydrogen Recombination Line1982.9801715469202
H&epsilon;Hydrogen Recombination Line1995.0739903907402
H&gamma;Hydrogen Recombination Line1999.1730383073698
He&gamma;Helium Recombination Line1999.98770824883

Example 2. Search within the frequency range of a Spectrum#

The Spectrum.query_lines. Spectrum.recomb, and Spectrum.recomball methods of Spectrum will use the minimum and maximum frequencies of the spectral axis. Other keywords are the same as in SpectralLineSearch.

For this example we construct a fake spectrum, with 16384 channels that are 1 kHz wide and a rest frequency of 1.4240575 GHz.

cdelt1 = float((1000*u.Hz).value)
nchan = 16384
restfreq = float((1.4240575*u.GHz).to(u.Hz).value)
crval1 = restfreq
s = Spectrum.fake_spectrum(nchan=nchan, 
                           crval1=crval1, 
                           restfrq=restfreq, 
                           freqres=cdelt1, 
                           cdelt1=cdelt1, 
                           obsfreq=restfreq, 
                           dopfreq=restfreq, 
                           object='MyFakeSrc')
s.plot(vel_frame='icrs', xaxis_unit='km/s')
<dysh.plot.specplot.SpectrumPlot at 0x78714e72e5f0>
../../_images/ebfc36fc43ea7d21374bf601c70f19b7cebb53d471b507eefb2243ebdec09094.png

Find the hydrogen recombination lines that could be in this spectrum, and display their name, chemical name and frequency (in MHz).

s.recomb(line='hydrogen', cat='gbtrecomb')[['name', 'chemical_name', 'orderedfreq']]
Table length=6
namechemical_nameorderedfreq
str10str27float64
H&gamma;Hydrogen Recombination Line1418.3334505418002
H&zeta;Hydrogen Recombination Line1418.65587364335
H&beta;Hydrogen Recombination Line1420.2354594106603
H&alpha;Hydrogen Recombination Line1424.73358996475
H&epsilon;Hydrogen Recombination Line1428.10062420283
H&delta;Hydrogen Recombination Line1429.77140255287

Find all lines in the spectrum’s frequency range.

s.query_lines(cat='gbtlines')[['name', 'chemical_name', 'orderedfreq']].pprint_all()
                                  name                                    chemical_name     orderedfreq  
------------------------------------------------------------------------ ---------------- ---------------
                                                                  H-atom  Atomic Hydrogen 1420.4057517667
                                                               NaCN/NaNC   Sodium Cyanide       1430.0591
                                                                    17OH Hydroxyl radical       1418.1976
                                                                    17OD Hydroxyl radical       1419.1013
                                                                    17OD Hydroxyl radical       1419.5477
                                                                    17OD Hydroxyl radical        1420.094
                                                                   HDCCO           Ketene       1417.2492
                                                          ND<sub>3</sub>          Ammonia       1416.7226
                                                          ND<sub>3</sub>          Ammonia        1416.725
                                                          ND<sub>3</sub>          Ammonia        1417.696
                                                         NHD<sub>2</sub>          Ammonia       1417.8791
                                                          ND<sub>3</sub>          Ammonia        1423.215
                                                          ND<sub>3</sub>          Ammonia        1423.215
                                                          ND<sub>3</sub>          Ammonia        1423.215
                                                          ND<sub>3</sub>          Ammonia        1423.215
                                                          ND<sub>3</sub>          Ammonia        1425.106
                                           c-D<sub>2</sub>C<sub>3</sub>O   Cyclopropenone       1416.8873
<sup>13</sup>CH<sub>3</sub>OH <font color="red">v<sub>t</sub> = 1</font>         Methanol        1424.617
<sup>13</sup>CH<sub>3</sub>OH <font color="red">v<sub>t</sub> = 1</font>         Methanol        1424.617
                           <i>gauche</i>-CH<sub>2</sub>DCH<sub>2</sub>CN    Ethyl Cyanide       1419.4688
                             CH<sub>3</sub>CH<sub>2</sub><sup>13</sup>CN    Ethyl Cyanide       1425.1485
                             CH<sub>3</sub>CH<sub>2</sub><sup>13</sup>CN    Ethyl Cyanide       1425.1695
                             CH<sub>3</sub>CH<sub>2</sub><sup>13</sup>CN    Ethyl Cyanide       1425.3982
                             CH<sub>3</sub>CH<sub>2</sub><sup>13</sup>CN    Ethyl Cyanide       1425.4355
                                                        CH<sub>2</sub>CN      Cyanomethyl       1430.3244
                                                              c-HC(O)NHD        Formamide       1430.3802

To clear the cache, use:

SpectralLineSearch.clear_cache()

previous

Data Quality

next

Explanation Material

Contents
  • Loading Modules
  • Example 1. Doing an online or local search with SpectralLineSearch
    • Do an online search for N2H+ lines between 80 and 400 GHz
    • Do a local search for methyl formate.
    • Search for Recombination Lines
  • Example 2. Search within the frequency range of a Spectrum

By Green Bank Observatory

© Copyright 2023-2025, Green Bank Observatory.