Skip to content

Commit 94371c4

Browse files
committed
add more descriptive text
1 parent bb6dc8b commit 94371c4

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

tutorials/spectral-cube-reprojection/SpectralCubeReprojectExample.ipynb

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,14 @@
1919
"spectral cube, radio astronomy, astroquery, units, dask\n",
2020
"\n",
2121
"## Summary\n",
22-
"This tutorial shows how to take two spectral cubes observed toward the same part of the sky, but different frequencies, and put them onto the same grid using [spectral-cube](spectral-cube.readthedocs.io). It uses [astroquery](https://astroquery.readthedocs.io/) to obtain line frequencies from [splatalogue](https://astroquery.readthedocs.io/en/latest/splatalogue/splatalogue.html). Finally, it shows how to do the reprojection using [dask](https://dask.org) to enable parallelization."
22+
"Spectroscopic cube observations taken at different wavelength can trace the motion of gas or stars using spectral lines, but often lines at different wavelengths give different information.\n",
23+
"For example, one might observe a galaxy in the 21cm line of HI and the 115 GHz line of CO, or a protoplanetary disk in a line of N2H+ and a line of CO, or a galactic disk in the H-alpha and H-beta lines (in absorption or emission).\n",
24+
"In order to compare these data sets pixel-by-pixel, they must be placed onto a common grid with common resolution.\n",
25+
"\n",
26+
"This tutorial shows how to take two spectral cubes observed toward the same part of the sky, but different frequencies, and put them onto the same grid using [spectral-cube](spectral-cube.readthedocs.io).\n",
27+
"\n",
28+
"It uses [astroquery](https://astroquery.readthedocs.io/) to obtain line frequencies from [splatalogue](https://astroquery.readthedocs.io/en/latest/splatalogue/splatalogue.html); this example uses radio-wavelength data for which Splatalogue's molecular line lists are appropriate.\n",
29+
"Finally, it shows how to do the reprojection using [dask](https://dask.org) to enable parallelization."
2330
]
2431
},
2532
{
@@ -179,7 +186,9 @@
179186
"id": "8c7234cb",
180187
"metadata": {},
181188
"source": [
182-
"## Step 3: Convert cubes from frequency to velocity"
189+
"## Step 3: Convert cubes from frequency to velocity\n",
190+
"\n",
191+
"To compare the kinematic structure of the target, we need to convert from the observed frequency (which must be in a common reference frame; in this case, it already is) to the doppler velocity."
183192
]
184193
},
185194
{
@@ -268,7 +277,8 @@
268277
"source": [
269278
"# Step 4. Spectral Interpolation\n",
270279
"\n",
271-
"We can do the spatial or spectral step first. In this case, we choose the spectral step first because the H$_2$CS cube is narrower in velocity (`cube1vel`) and this will reduce the number of channels we need to spatially interpolate over in the next step.\n",
280+
"We can choose to do either the spatial or spectral step first. \n",
281+
"In this case, we choose the spectral step first because the H$_2$CS cube is narrower in velocity (`cube1vel`) and this will reduce the number of channels we need to spatially interpolate over in the next step.\n",
272282
"\n",
273283
"We need to match resolution to the cube with the largest channel width:"
274284
]
@@ -562,6 +572,7 @@
562572
"# Dask\n",
563573
"\n",
564574
"All of the above can be done using `dask` as the underlying framework to parallelize the operations.\n",
575+
"See [the spectral-cube documentation on dask integration](https://spectral-cube.readthedocs.io/en/latest/dask.html) or the [dask documentation](https://dask.org/) for further details.\n",
565576
"\n",
566577
"The dask approach can be made more memory-efficient (avoid using too much RAM) by writing intermediate steps to disk. The non-dask approach used above will generally need to read the whole cube into memory. Depending on the situation, either approach may be faster, but `dask` may be needed if the cube is larger than memory."
567578
]
@@ -618,6 +629,11 @@
618629
}
619630
],
620631
"metadata": {
632+
"kernelspec": {
633+
"display_name": "Py 3.9",
634+
"language": "python",
635+
"name": "python39"
636+
},
621637
"language_info": {
622638
"codemirror_mode": {
623639
"name": "ipython",
@@ -627,7 +643,8 @@
627643
"mimetype": "text/x-python",
628644
"name": "python",
629645
"nbconvert_exporter": "python",
630-
"pygments_lexer": "ipython3"
646+
"pygments_lexer": "ipython3",
647+
"version": "3.9.7"
631648
}
632649
},
633650
"nbformat": 4,

0 commit comments

Comments
 (0)