|
46 | 46 | "cell_type": "markdown",
|
47 | 47 | "metadata": {},
|
48 | 48 | "source": [
|
49 |
| - "Please download this tar file <../downloads/astropy_UVES.tar.gz> and extract\n", |
50 |
| - "the content, either by clicking on the link or by executing this\n", |
51 |
| - "python code" |
| 49 | + "Please download the tar file and extract\n", |
| 50 | + "the content by executing this python code" |
52 | 51 | ]
|
53 | 52 | },
|
54 | 53 | {
|
|
132 | 131 | "metadata": {},
|
133 | 132 | "source": [
|
134 | 133 | "The previous astropy tutorial already covered\n",
|
135 |
| - ":ref:`handling-fits-files` and :ref:`wcs-transformations`, so the explanation here\n", |
136 |
| - "is only very brief. Check the `astropy documentation <http://docs.astropy.org>`_\n", |
| 134 | + "[handling FITS files](../FITS-header.html) and WCS transformations, so the explanation here\n", |
| 135 | + "is only very brief. Check the [astropy documentation](http://docs.astropy.org)\n", |
137 | 136 | "or the other two tutorials for more details::"
|
138 | 137 | ]
|
139 | 138 | },
|
|
276 | 275 | "with python (e.g. `glob`), external modules (e.g. `numpy` or `astropy`) and modules\n",
|
277 | 276 | "that you write yourself. The syntax to import those modules or functions\n",
|
278 | 277 | "is the same in all cases, provided that the directory where your module is\n",
|
279 |
| - "defined is in the search path (`more about python modules and the search path\n", |
280 |
| - "<http://docs.python.org/2/tutorial/modules.html>`_)." |
| 278 | + "defined is in the search path [more about python modules and the search path](http://docs.python.org/2/tutorial/modules.html)." |
281 | 279 | ]
|
282 | 280 | },
|
283 | 281 | {
|
|
483 | 481 | "Often, one has to keep track of the units for certain values. Was the wavelength\n",
|
484 | 482 | "given in Angstrom or in nm? In X-ray observations, a common unit of wavelength is\n",
|
485 | 483 | "keV. How many nm is 0.65 keV?\n",
|
486 |
| - "`astropy.units <http://docs.astropy.org/en/v0.2.1/units/index.html>`_\n", |
| 484 | + "[`astropy.units`](http://docs.astropy.org/en/v0.2.1/units/index.html)\n", |
487 | 485 | "offers a framework that can take\n",
|
488 | 486 | "care of this book-keeping and propagate the units through many (but not all)\n",
|
489 | 487 | "mathematical operations (e.g. addition, division, multiplication).\n",
|
490 | 488 | "Furthermore,\n",
|
491 |
| - "`astropy.constants <http://docs.astropy.org/en/v0.2.1/constants/index.html>`_ supplies the values of\n", |
| 489 | + "[`astropy.constants`](http://docs.astropy.org/en/v0.2.1/constants/index.html) supplies the values of\n", |
492 | 490 | "many physical and astronomical constants.\n",
|
493 | 491 | "The easiest way to attach a unit to a number is by multiplication"
|
494 | 492 | ]
|
|
534 | 532 | ]
|
535 | 533 | },
|
536 | 534 | {
|
537 |
| - "cell_type": "raw", |
| 535 | + "cell_type": "markdown", |
538 | 536 | "metadata": {},
|
539 | 537 | "source": [
|
540 |
| - "E_{kin} = E_{grav}\n", |
541 |
| - "\n", |
542 |
| - "\\frac{1}{2} m v^2 = G \\frac{m M_*}{R_*}" |
| 538 | + "$$E_{kin} = E_{grav}$$\n", |
| 539 | + "$$\\frac{1}{2} m v^2 = G \\frac{m M_*}{R_*}$$" |
543 | 540 | ]
|
544 | 541 | },
|
545 | 542 | {
|
|
614 | 611 | ]
|
615 | 612 | },
|
616 | 613 | {
|
617 |
| - "cell_type": "raw", |
| 614 | + "cell_type": "markdown", |
618 | 615 | "metadata": {},
|
619 | 616 | "source": [
|
620 |
| - "\\lambda_{heliocentric} = \\lambda_{bariocentric} * (1 + \\frac{v_{helio}}{c})" |
| 617 | + "$\\lambda_{heliocentric} = \\lambda_{bariocentric} * (1 + \\frac{v_{helio}}{c})$" |
621 | 618 | ]
|
622 | 619 | },
|
623 | 620 | {
|
|
665 | 662 | "metadata": {},
|
666 | 663 | "source": [
|
667 | 664 | "I want to mention one more feature here (check out\n",
|
668 |
| - "`astropy.units <http://docs.astropy.org/en/v0.2.1/units/index.html>`_ for\n", |
| 665 | + "[`astropy.units`](http://docs.astropy.org/en/v0.2.1/units/index.html) for\n", |
669 | 666 | "more): The ability to convert the spectral axis to frequencies or energies.\n",
|
670 | 667 | "Normally, a unit of length is not equivalent to a unit of energy or to a\n",
|
671 | 668 | "frequency, but this conversion makes sense for the wavelength of a spectrum.\n",
|
|
854 | 851 | "cell_type": "markdown",
|
855 | 852 | "metadata": {},
|
856 | 853 | "source": [
|
857 |
| - "`astropy.time <http://docs.astropy.org/en/v0.2.1/time/index.html>`_\n", |
| 854 | + "[`astropy.time`](http://docs.astropy.org/en/v0.2.1/time/index.html\n", |
858 | 855 | "provides methods to convert times and dates between different\n",
|
859 | 856 | "systems and formats. Since the ESO fits headers already contain the time of the\n",
|
860 | 857 | "observation in different systems, we could just read the keyword in the time\n",
|
|
1082 | 1079 | "Now, we want to generate a LaTeX table of the observation times, period\n",
|
1083 | 1080 | "and equivalent width that we can directly paste into our manuscript. To do so,\n",
|
1084 | 1081 | "we first collect all the columns and make an ``astropy.table.Table`` object. (Please\n",
|
1085 |
| - "check `astropy.table <http://docs.astropy.org/en/v0.2.1/table/index.html>`_\n", |
1086 |
| - "or :ref:`tabular-data` for more\n", |
| 1082 | + "check [`astropy.table`](http://docs.astropy.org/en/v0.2.1/table/index.html)\n", |
| 1083 | + "or `tabular-data` for more\n", |
1087 | 1084 | "details on ``Table``). So, here is the code"
|
1088 | 1085 | ]
|
1089 | 1086 | },
|
|
1118 | 1115 | "metadata": {},
|
1119 | 1116 | "source": [
|
1120 | 1117 | "We will make two plots. The plotting is done with\n",
|
1121 |
| - "`matplotlib <http://matplotlib.org>`_, and does not involve Astropy itself.\n", |
1122 |
| - "Plotting is introduced in :ref:`plotting-and-images` and more details on\n", |
| 1118 | + "[`matplotlib`](http://matplotlib.org), and does not involve Astropy itself.\n", |
| 1119 | + "Plotting is introduced in `plotting-and-images` and more details on\n", |
1123 | 1120 | "plotting can be found there. When in doubt, use the search engine of your choice\n",
|
1124 | 1121 | "and ask the internet. Here, I mainly want to illustrate that Astropy can be\n",
|
1125 | 1122 | "used in real-live data analysis.\n",
|
|
1387 | 1384 | "metadata": {},
|
1388 | 1385 | "source": [
|
1389 | 1386 | "Clearly, I did not develop this code for scratch.\n",
|
1390 |
| - "The `matplotlib gallery <http://matplotlib.org/gallery.html>`_ is my\n", |
| 1387 | + "The [matplotlib gallery](http://matplotlib.org/gallery.html) is my\n", |
1391 | 1388 | "preferred place to look for plotting solutions."
|
1392 | 1389 | ]
|
1393 | 1390 | },
|
|
1403 | 1400 | "cell_type": "markdown",
|
1404 | 1401 | "metadata": {},
|
1405 | 1402 | "source": [
|
1406 |
| - "`Astropy <http://astropy.org>`_ is an open-source and community-developed\n", |
| 1403 | + "[Astropy](http://astropy.org) is an open-source and community-developed\n", |
1407 | 1404 | "Python package, which means that is only as good as the contribution of the\n",
|
1408 | 1405 | "astronomical community. Clearly, there will always people who have more fun writing\n",
|
1409 | 1406 | "code and others who have more fun using it. However, if you find a bug and do not\n",
|
|
1412 | 1409 | "request.\n",
|
1413 | 1410 | "\n",
|
1414 | 1411 | "If you want to get help or discuss issues with other Astropy users, you can\n",
|
1415 |
| - "sign up for the `astropy mailing list\n", |
1416 |
| - "<http://mail.scipy.org/mailman/listinfo/astropy>`_.\n", |
1417 |
| - "Alternatively, the `astropy-dev\n", |
1418 |
| - "<http://groups.google.com/group/astropy-dev>`_ list is where you should go to\n", |
| 1412 | + "sign up for the [astropy mailing list](http://mail.scipy.org/mailman/listinfo/astropy).\n", |
| 1413 | + "Alternatively, the [astropy-dev](http://groups.google.com/group/astropy-dev) list is where you should go to\n", |
1419 | 1414 | "discuss more technical aspects of Astropy with the developers.\n",
|
1420 | 1415 | "\n",
|
1421 | 1416 | "If you have come across something that you believe is a bug, please open a\n",
|
1422 |
| - "ticket in the Astropy `issue tracker\n", |
1423 |
| - "<http://github.com/astropy/astropy/issues>`_, and we will look into it\n", |
| 1417 | + "ticket in the Astropy [issue tracker](http://github.com/astropy/astropy/issues), and we will look into it\n", |
1424 | 1418 | "promptly.\n",
|
1425 | 1419 | "\n",
|
1426 | 1420 | "Please try to include an example that demonstrates the issue and will allow the\n",
|
|
1429 | 1423 | "information about your operating system (e.g. MacOSX version or Linux version).\n",
|
1430 | 1424 | "\n",
|
1431 | 1425 | "Here is a practical example.\n",
|
1432 |
| - ":ref:`Above <formula-vaccr>` we calculated the free-fall\n", |
| 1426 | + "Above we calculated the free-fall\n", |
1433 | 1427 | "velocity onto MN Lup like this"
|
1434 | 1428 | ]
|
1435 | 1429 | },
|
|
1466 | 1460 | "source": [
|
1467 | 1461 | "However, this raises a warning and automatically converts the quantity object\n",
|
1468 | 1462 | "to an numpy array and the unit is lost. If you believe that is a bug that should\n",
|
1469 |
| - "be fixed, you might chose to report it in the `issue tracker\n", |
1470 |
| - "<http://github.com/astropy/astropy/issues>`_.\n", |
| 1463 | + "be fixed, you might chose to report it in the [issue tracker](http://github.com/astropy/astropy/issues).\n", |
1471 | 1464 | "(But please check if somebody else has reported the same thing before, so we do\n",
|
1472 | 1465 | "not clutter the issue tracker needlessly.)"
|
1473 | 1466 | ]
|
|
0 commit comments