|
19 | 19 | "cube, pv-diagram\n", |
20 | 20 | "\n", |
21 | 21 | "## Summary\n", |
22 | | - "In this tutorial, we will extract position-velocity (PV) diagrams from a cube and plot them." |
| 22 | + "In this tutorial, we will extract position-velocity (PV) diagrams from a cube and plot them.\n", |
| 23 | + "\n", |
| 24 | + "Position-velocity diagrams are often used in radio astronomy for analysis of rotating objects, like protostellar disks and galaxies, to measure rotation curves and determine the contained mass. They are also used in studies of atomic and molecular clouds to show where overlapping emission may point at interactions between distinct clouds. Both radio and optical position-velocity diagrams are used to study outflows, jets, and winds; in the optical, two-dimensional spectra obtained from long-slit spectrographs naturally produce the equivalent of a position-velocity diagram." |
23 | 25 | ] |
24 | 26 | }, |
25 | 27 | { |
|
98 | 100 | "source": [ |
99 | 101 | "# PV Extraction from Pixel Coordinates\n", |
100 | 102 | "\n", |
101 | | - "First we create an extraction path. The entries are pairs of pixel coordinates, (x,y)" |
| 103 | + "First we create an extraction path. This path is the spatial coordinates through which we are cutting out our PV diagram.\n", |
| 104 | + "\n", |
| 105 | + "The entries are pairs of pixel coordinates, (x,y). In this case, we've selected arbitrary coordinates for our demonstration, but for your use case, you might pick the axis of an outflow, the major axis of an inclined disk, or a spiral following an arm of a galaxy." |
102 | 106 | ] |
103 | 107 | }, |
104 | 108 | { |
|
527 | 531 | "source": [ |
528 | 532 | "pvdiagram.writeto(\"saved_pvdiagram.fits\", overwrite=True)" |
529 | 533 | ] |
| 534 | + }, |
| 535 | + { |
| 536 | + "cell_type": "code", |
| 537 | + "execution_count": null, |
| 538 | + "id": "ffb2c3bb-c95d-4a24-bd5b-6c08d8fa56ba", |
| 539 | + "metadata": {}, |
| 540 | + "outputs": [], |
| 541 | + "source": [ |
| 542 | + "cube2 = SpectralCube.read('https://dataverse.harvard.edu/api/access/datafile/:persistentId?persistentId=doi:10.7910/DVN/YUNZ1F/OJJTGR', format='fits')\n", |
| 543 | + "cube2" |
| 544 | + ] |
| 545 | + }, |
| 546 | + { |
| 547 | + "cell_type": "code", |
| 548 | + "execution_count": null, |
| 549 | + "id": "3e217d0d-fdfb-4628-9fbc-29696ce5d3c7", |
| 550 | + "metadata": {}, |
| 551 | + "outputs": [], |
| 552 | + "source": [] |
530 | 553 | } |
531 | 554 | ], |
532 | 555 | "metadata": { |
533 | 556 | "kernelspec": { |
534 | | - "display_name": "Py 3.9", |
| 557 | + "display_name": "Python 3", |
535 | 558 | "language": "python", |
536 | | - "name": "python39" |
| 559 | + "name": "python3" |
537 | 560 | }, |
538 | 561 | "language_info": { |
539 | 562 | "codemirror_mode": { |
|
545 | 568 | "name": "python", |
546 | 569 | "nbconvert_exporter": "python", |
547 | 570 | "pygments_lexer": "ipython3", |
548 | | - "version": "3.9.2" |
| 571 | + "version": "3.9.7" |
549 | 572 | } |
550 | 573 | }, |
551 | 574 | "nbformat": 4, |
|
0 commit comments