pykoala-ifs 0.18.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. pykoala_ifs-0.18.1/LICENSE +29 -0
  2. pykoala_ifs-0.18.1/MANIFEST.in +26 -0
  3. pykoala_ifs-0.18.1/PKG-INFO +112 -0
  4. pykoala_ifs-0.18.1/README.md +92 -0
  5. pykoala_ifs-0.18.1/bors.toml +8 -0
  6. pykoala_ifs-0.18.1/dev_requirements.txt +2 -0
  7. pykoala_ifs-0.18.1/doc-requirements.txt +7 -0
  8. pykoala_ifs-0.18.1/docs/Makefile +20 -0
  9. pykoala_ifs-0.18.1/docs/_static/.empty +0 -0
  10. pykoala_ifs-0.18.1/docs/api.rst +59 -0
  11. pykoala_ifs-0.18.1/docs/conf.py +138 -0
  12. pykoala_ifs-0.18.1/docs/developer-guide/fork.rst +25 -0
  13. pykoala_ifs-0.18.1/docs/developer-guide/index.rst +13 -0
  14. pykoala_ifs-0.18.1/docs/getting-started/get-copy.rst +55 -0
  15. pykoala_ifs-0.18.1/docs/getting-started/index.rst +21 -0
  16. pykoala_ifs-0.18.1/docs/getting-started/virtual-environment.rst +71 -0
  17. pykoala_ifs-0.18.1/docs/index.rst +38 -0
  18. pykoala_ifs-0.18.1/docs/license.rst +37 -0
  19. pykoala_ifs-0.18.1/docs/make.bat +35 -0
  20. pykoala_ifs-0.18.1/docs/pykoala.corrections.rst +63 -0
  21. pykoala_ifs-0.18.1/docs/pykoala.cubing.rst +67 -0
  22. pykoala_ifs-0.18.1/docs/pykoala.data_container.rst +58 -0
  23. pykoala_ifs-0.18.1/docs/pykoala.exceptions.rst +21 -0
  24. pykoala_ifs-0.18.1/docs/pykoala.instruments.rst +42 -0
  25. pykoala_ifs-0.18.1/docs/pykoala.plotting.rst +21 -0
  26. pykoala_ifs-0.18.1/docs/user-guide/index.rst +7 -0
  27. pykoala_ifs-0.18.1/docs/user-guide/tutorials.rst +0 -0
  28. pykoala_ifs-0.18.1/pylint-requirements.txt +2 -0
  29. pykoala_ifs-0.18.1/pyproject.toml +43 -0
  30. pykoala_ifs-0.18.1/requirements.txt +18 -0
  31. pykoala_ifs-0.18.1/setup.cfg +22 -0
  32. pykoala_ifs-0.18.1/setup.py +18 -0
  33. pykoala_ifs-0.18.1/src/pykoala/__init__.py +90 -0
  34. pykoala_ifs-0.18.1/src/pykoala/_version.py +21 -0
  35. pykoala_ifs-0.18.1/src/pykoala/ancillary.py +855 -0
  36. pykoala_ifs-0.18.1/src/pykoala/corrections/__init__.py +10 -0
  37. pykoala_ifs-0.18.1/src/pykoala/corrections/astrometry.py +505 -0
  38. pykoala_ifs-0.18.1/src/pykoala/corrections/atmospheric_corrections.py +248 -0
  39. pykoala_ifs-0.18.1/src/pykoala/corrections/correction.py +195 -0
  40. pykoala_ifs-0.18.1/src/pykoala/corrections/flux_calibration.py +801 -0
  41. pykoala_ifs-0.18.1/src/pykoala/corrections/sky.py +1877 -0
  42. pykoala_ifs-0.18.1/src/pykoala/corrections/throughput.py +340 -0
  43. pykoala_ifs-0.18.1/src/pykoala/corrections/wavelength.py +751 -0
  44. pykoala_ifs-0.18.1/src/pykoala/cubing.py +1237 -0
  45. pykoala_ifs-0.18.1/src/pykoala/data_container.py +1442 -0
  46. pykoala_ifs-0.18.1/src/pykoala/exceptions/__init__.py +0 -0
  47. pykoala_ifs-0.18.1/src/pykoala/exceptions/exceptions.py +84 -0
  48. pykoala_ifs-0.18.1/src/pykoala/input_data/emission_line_list.dat +23 -0
  49. pykoala_ifs-0.18.1/src/pykoala/input_data/observatory_extinction/ssoextinct.dat +139 -0
  50. pykoala_ifs-0.18.1/src/pykoala/input_data/sky_lines/ESO-UVES/gident_346.tfits +21 -0
  51. pykoala_ifs-0.18.1/src/pykoala/input_data/sky_lines/ESO-UVES/gident_437.tfits +28 -0
  52. pykoala_ifs-0.18.1/src/pykoala/input_data/sky_lines/ESO-UVES/gident_580L.tfits +7 -0
  53. pykoala_ifs-0.18.1/src/pykoala/input_data/sky_lines/ESO-UVES/gident_580U.tfits +12 -0
  54. pykoala_ifs-0.18.1/src/pykoala/input_data/sky_lines/ESO-UVES/gident_800U.tfits +2 -0
  55. pykoala_ifs-0.18.1/src/pykoala/input_data/sky_lines/ESO-UVES/gident_860L.tfits +49 -0
  56. pykoala_ifs-0.18.1/src/pykoala/input_data/sky_lines/ESO-UVES/gident_860U.tfits +59 -0
  57. pykoala_ifs-0.18.1/src/pykoala/input_data/sky_lines/sky_lines.dat +121 -0
  58. pykoala_ifs-0.18.1/src/pykoala/input_data/sky_lines/sky_lines_IR.dat +121 -0
  59. pykoala_ifs-0.18.1/src/pykoala/input_data/sky_lines/sky_lines_IR_short.dat +121 -0
  60. pykoala_ifs-0.18.1/src/pykoala/input_data/sky_lines/sky_lines_bright.dat +123 -0
  61. pykoala_ifs-0.18.1/src/pykoala/input_data/sky_lines/sky_lines_rest.dat +18 -0
  62. pykoala_ifs-0.18.1/src/pykoala/input_data/sky_lines/skylines_2dFdr.txt +148 -0
  63. pykoala_ifs-0.18.1/src/pykoala/input_data/sky_lines/telluric_lines.txt +262 -0
  64. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/fcd32d9927.dat +1735 -0
  65. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/feg21.dat +135 -0
  66. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/feg21_edited.dat +135 -0
  67. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/feg274.dat +1721 -0
  68. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/feg274_edited.dat +138 -0
  69. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/ffeige110.dat +134 -0
  70. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/ffeige110_edited.dat +140 -0
  71. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/ffeige56.dat +137 -0
  72. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/ffeige56_edited.dat +137 -0
  73. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/fhd49798.dat +2169 -0
  74. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/fhd60753.dat +2645 -0
  75. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/fhilt600.dat +1709 -0
  76. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/fhilt600_edited.dat +137 -0
  77. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/fhr3454.dat +441 -0
  78. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/fhr3454_edited.dat +441 -0
  79. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/fhr4963.dat +445 -0
  80. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/fhr7596.dat +446 -0
  81. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/fhr9087.dat +445 -0
  82. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/fltt2415.dat +1717 -0
  83. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/fltt7987.dat +135 -0
  84. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/fltt7987_edited.dat +135 -0
  85. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/fltt9239.dat +139 -0
  86. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/fltt9239_edited.dat +139 -0
  87. pykoala_ifs-0.18.1/src/pykoala/input_data/spectrophotometric_stars/sun_mod_001.fits +0 -0
  88. pykoala_ifs-0.18.1/src/pykoala/instruments/__init__.py +11 -0
  89. pykoala_ifs-0.18.1/src/pykoala/instruments/hector_ifu.py +118 -0
  90. pykoala_ifs-0.18.1/src/pykoala/instruments/koala_ifu.py +490 -0
  91. pykoala_ifs-0.18.1/src/pykoala/instruments/mock.py +138 -0
  92. pykoala_ifs-0.18.1/src/pykoala/instruments/weave.py +75 -0
  93. pykoala_ifs-0.18.1/src/pykoala/photometry.py +901 -0
  94. pykoala_ifs-0.18.1/src/pykoala/plotting/__init__.py +0 -0
  95. pykoala_ifs-0.18.1/src/pykoala/plotting/qc_plot.py +16 -0
  96. pykoala_ifs-0.18.1/src/pykoala/plotting/quick_plot.py +402 -0
  97. pykoala_ifs-0.18.1/src/pykoala/plotting/rss_plot.py +792 -0
  98. pykoala_ifs-0.18.1/src/pykoala/plotting/utils.py +643 -0
  99. pykoala_ifs-0.18.1/src/pykoala/rss.py +65 -0
  100. pykoala_ifs-0.18.1/src/pykoala_ifs.egg-info/PKG-INFO +112 -0
  101. pykoala_ifs-0.18.1/src/pykoala_ifs.egg-info/SOURCES.txt +107 -0
  102. pykoala_ifs-0.18.1/src/pykoala_ifs.egg-info/dependency_links.txt +1 -0
  103. pykoala_ifs-0.18.1/src/pykoala_ifs.egg-info/top_level.txt +1 -0
  104. pykoala_ifs-0.18.1/testable_notebooks.txt +6 -0
  105. pykoala_ifs-0.18.1/tox.ini +63 -0
  106. pykoala_ifs-0.18.1/venv/lib/python3.10/site-packages/astropy/wcs/include/wcslib/.empty +0 -0
  107. pykoala_ifs-0.18.1/venv/lib64/python3.10/site-packages/astropy/wcs/include/wcslib/.empty +0 -0
  108. pykoala_ifs-0.18.1/versioneer.py +2277 -0
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2020, pykoala
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ 3. Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,26 @@
1
+ include versioneer.py
2
+ include src/pykoala/_version.py
3
+ include src/pykoala/plotting/pykoala.mplstyle
4
+
5
+ include *.toml
6
+ include LICENSE
7
+ include tox.ini
8
+ recursive-include src *.dat
9
+ recursive-include src *.txt
10
+ recursive-include src *.fits
11
+ recursive-include src *.tfits
12
+ recursive-include src *.ctio
13
+
14
+ recursive-include docs *.bat
15
+ recursive-include docs *.py
16
+ recursive-include docs *.rst
17
+ recursive-include docs Makefile
18
+ recursive-include tests *.py
19
+ include *.txt
20
+ recursive-include * .empty
21
+
22
+ recursive-exclude .circleci *
23
+ exclude .circleci
24
+ exclude codecov.yml
25
+ recursive-exclude ci *
26
+ exclude azure-pipelines.yml
@@ -0,0 +1,112 @@
1
+ Metadata-Version: 2.4
2
+ Name: pykoala-ifs
3
+ Version: 0.18.1
4
+ Summary: Data reduction tools for IFS data.
5
+ Author-email: Pablo Corcho-Caballero <p.corcho.caballero@rug.nl>, "Ángel R. López-Sánchez" <angel.lopez-sanchez@mq.edu.au>, Yago Ascasibar <yago.ascasibar@uam.es>
6
+ License: BSD-3-Clause
7
+ Project-URL: Homepage, https://github.com/pykoala/koala
8
+ Project-URL: Issues, https://github.com/pykoala/koala/issues
9
+ Keywords: astronomy,IFS,data reduction
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Intended Audience :: Science/Research
12
+ Classifier: License :: OSI Approved :: BSD License
13
+ Classifier: Topic :: Scientific/Engineering
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Operating System :: OS Independent
16
+ Requires-Python: >=3.9
17
+ Description-Content-Type: text/markdown
18
+ License-File: LICENSE
19
+ Dynamic: license-file
20
+
21
+ # PyKOALA
22
+
23
+ > A multi-instrument tool for reducing Integral Field Spectroscopic Data
24
+
25
+ ---
26
+
27
+ **PyKOALA** is a Python package to reduce KOALA+AAOmega integral field spectroscopy (IFS) data creating a data cube. It produces full calibrated (wavelength, flux and astrometry) data cubes ready for science.
28
+
29
+ [KOALA][koala_website], the Kilofibre Optical AAT Lenslet Array, is a wide-field, high efficiency, integral field unit used by the
30
+ AAOmega spectrograph on the 3.9m AAT ([Anglo-Australian Telescope][aat_website]) at Siding Spring Observatory. **PyKOALA** is the forthcoming data reduction pipeline for creating science-ready 3D data cubes using Raw Stacked Spectra (RSS) images created with [2dfdr][2dfdr_website].
31
+
32
+ [koala_website]: https://aat.anu.edu.au/science/instruments/current/koala/overview
33
+ [aat_website]: https://aat.anu.edu.au/about-us/AAT
34
+ [2dfdr_website]: https://aat.anu.edu.au/science/instruments/current/AAOmega/reduction
35
+
36
+ ---
37
+ ## Status
38
+ [![Documentation Status](https://readthedocs.org/projects/pykoala/badge/?version=latest)](https://pykoala.readthedocs.io/en/latest/?badge=latest)
39
+ [![test](https://github.com/pykoala/pykoala/actions/workflows/test.yml/badge.svg)](https://github.com/pykoala/pykoala/actions/workflows/test.yml)
40
+ [![Coverage Status](https://codecov.io/github/pykoala/koala/coverage.svg?branch=master)](https://codecov.io/github/pykoala/koala?branch=master)
41
+ [![License](https://img.shields.io/pypi/l/pykoala-ifs.svg)](https://pypi.python.org/pypi/pykoala-ifs/)
42
+ [![Supported versions](https://img.shields.io/pypi/pyversions/pykoala-ifs.svg)](https://pypi.python.org/pypi/pykoala-ifs/)
43
+ [![PyPI](https://img.shields.io/pypi/status/pykoala-ifs.svg)](https://pypi.python.org/pypi/pykoala-ifs/)
44
+
45
+ ---
46
+ ## Documentation
47
+
48
+ **PyKOALA** full documentation can be found here: https://pykoala.readthedocs.io/en/latest/index.html
49
+
50
+ ---
51
+ ## Download
52
+
53
+ **PyKOALA** can be obtained by cloning the repository, using git:
54
+
55
+ ```bash
56
+ git clone https://github.com/pykoala/pykoala.git
57
+ ```
58
+
59
+ ## Installation (recommended)
60
+
61
+ We recommend the use of Python environments for the installation of **PyKOALA**. First, from the terminal enter in the downloaded **PyKOALA** package and create the Python environment:
62
+
63
+ ```bash
64
+ cd pykoala
65
+ python3 -m venv venv_koala
66
+ ```
67
+
68
+ To activate the environment, use:
69
+
70
+ ```bash
71
+ source venv_koala/bin/activate
72
+ ```
73
+
74
+ then install all required packages with:
75
+
76
+ ```bash
77
+ pip install -r requirements.txt
78
+ pip install .
79
+ ```
80
+
81
+ The second command will also install **PyKOALA** in the virtual environment. Once you are finished with your **PyKOALA** session, use:
82
+
83
+ ```bash
84
+ deactivate
85
+ ```
86
+
87
+ to deactivate the Python environment.
88
+
89
+ For more information about installation and usage of Python virtual environment, check the [documentation](https://pykoala.readthedocs.io/en/latest/getting-started/virtual-environment.html) or the oficial [Python documentation](https://docs.python.org/3/library/venv.html).
90
+
91
+
92
+ ## Tutorials
93
+ ---
94
+
95
+ See the list of available [tutorials](https://github.com/pykoala/pykoala-tutorials)
96
+
97
+ ## License and Acknowledgements
98
+
99
+ BSD 3-Clause License
100
+
101
+ Copyright (c) 2020, pykoala All rights reserved.
102
+
103
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
104
+
105
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
106
+
107
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
108
+
109
+ 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
110
+
111
+
112
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,92 @@
1
+ # PyKOALA
2
+
3
+ > A multi-instrument tool for reducing Integral Field Spectroscopic Data
4
+
5
+ ---
6
+
7
+ **PyKOALA** is a Python package to reduce KOALA+AAOmega integral field spectroscopy (IFS) data creating a data cube. It produces full calibrated (wavelength, flux and astrometry) data cubes ready for science.
8
+
9
+ [KOALA][koala_website], the Kilofibre Optical AAT Lenslet Array, is a wide-field, high efficiency, integral field unit used by the
10
+ AAOmega spectrograph on the 3.9m AAT ([Anglo-Australian Telescope][aat_website]) at Siding Spring Observatory. **PyKOALA** is the forthcoming data reduction pipeline for creating science-ready 3D data cubes using Raw Stacked Spectra (RSS) images created with [2dfdr][2dfdr_website].
11
+
12
+ [koala_website]: https://aat.anu.edu.au/science/instruments/current/koala/overview
13
+ [aat_website]: https://aat.anu.edu.au/about-us/AAT
14
+ [2dfdr_website]: https://aat.anu.edu.au/science/instruments/current/AAOmega/reduction
15
+
16
+ ---
17
+ ## Status
18
+ [![Documentation Status](https://readthedocs.org/projects/pykoala/badge/?version=latest)](https://pykoala.readthedocs.io/en/latest/?badge=latest)
19
+ [![test](https://github.com/pykoala/pykoala/actions/workflows/test.yml/badge.svg)](https://github.com/pykoala/pykoala/actions/workflows/test.yml)
20
+ [![Coverage Status](https://codecov.io/github/pykoala/koala/coverage.svg?branch=master)](https://codecov.io/github/pykoala/koala?branch=master)
21
+ [![License](https://img.shields.io/pypi/l/pykoala-ifs.svg)](https://pypi.python.org/pypi/pykoala-ifs/)
22
+ [![Supported versions](https://img.shields.io/pypi/pyversions/pykoala-ifs.svg)](https://pypi.python.org/pypi/pykoala-ifs/)
23
+ [![PyPI](https://img.shields.io/pypi/status/pykoala-ifs.svg)](https://pypi.python.org/pypi/pykoala-ifs/)
24
+
25
+ ---
26
+ ## Documentation
27
+
28
+ **PyKOALA** full documentation can be found here: https://pykoala.readthedocs.io/en/latest/index.html
29
+
30
+ ---
31
+ ## Download
32
+
33
+ **PyKOALA** can be obtained by cloning the repository, using git:
34
+
35
+ ```bash
36
+ git clone https://github.com/pykoala/pykoala.git
37
+ ```
38
+
39
+ ## Installation (recommended)
40
+
41
+ We recommend the use of Python environments for the installation of **PyKOALA**. First, from the terminal enter in the downloaded **PyKOALA** package and create the Python environment:
42
+
43
+ ```bash
44
+ cd pykoala
45
+ python3 -m venv venv_koala
46
+ ```
47
+
48
+ To activate the environment, use:
49
+
50
+ ```bash
51
+ source venv_koala/bin/activate
52
+ ```
53
+
54
+ then install all required packages with:
55
+
56
+ ```bash
57
+ pip install -r requirements.txt
58
+ pip install .
59
+ ```
60
+
61
+ The second command will also install **PyKOALA** in the virtual environment. Once you are finished with your **PyKOALA** session, use:
62
+
63
+ ```bash
64
+ deactivate
65
+ ```
66
+
67
+ to deactivate the Python environment.
68
+
69
+ For more information about installation and usage of Python virtual environment, check the [documentation](https://pykoala.readthedocs.io/en/latest/getting-started/virtual-environment.html) or the oficial [Python documentation](https://docs.python.org/3/library/venv.html).
70
+
71
+
72
+ ## Tutorials
73
+ ---
74
+
75
+ See the list of available [tutorials](https://github.com/pykoala/pykoala-tutorials)
76
+
77
+ ## License and Acknowledgements
78
+
79
+ BSD 3-Clause License
80
+
81
+ Copyright (c) 2020, pykoala All rights reserved.
82
+
83
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
84
+
85
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
86
+
87
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
88
+
89
+ 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
90
+
91
+
92
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,8 @@
1
+ status = [
2
+ # "continuous-integration/travis-ci/push",
3
+ # "continuous-integration/appveyor/branch",
4
+ "pykoala.pykoala",
5
+ # "codecov/patch",
6
+ # "codecov/project",
7
+ ]
8
+
@@ -0,0 +1,2 @@
1
+ pytest
2
+ nbval
@@ -0,0 +1,7 @@
1
+ astropy>=5.3.4
2
+ matplotlib>=3.7.2
3
+ mock==4.0.3
4
+ nbsphinx==0.9.3
5
+ photutils>=1.9.0
6
+ sphinx_rtd_theme>=3.0.0
7
+ sphinx>=5.0.0
@@ -0,0 +1,20 @@
1
+ # Minimal makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line, and also
5
+ # from the environment for the first two.
6
+ SPHINXOPTS ?=
7
+ SPHINXBUILD ?= sphinx-build
8
+ SOURCEDIR = .
9
+ BUILDDIR = _build
10
+
11
+ # Put it first so that "make" without argument is like "make help".
12
+ help:
13
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14
+
15
+ .PHONY: help Makefile
16
+
17
+ # Catch-all target: route all unknown targets to Sphinx using the new
18
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19
+ %: Makefile
20
+ @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
File without changes
@@ -0,0 +1,59 @@
1
+ API Documentation
2
+ =================
3
+
4
+ The Documentation is divided into four main categories:
5
+
6
+ - Data Structures
7
+ How `pykoala` deals with different sorts of data.
8
+ - Data Corrections
9
+ What corrections does `pykoala` perform on the data.
10
+ - 1D Spectra manipulation
11
+ Tools for manipulating one dimensional spectra.
12
+ - Plotting facilities
13
+ Quick visualization and quality control plots.
14
+
15
+ Data Structures
16
+ ---------------
17
+
18
+ .. toctree:: pykoala.data_container
19
+ :maxdepth: 1
20
+ :caption: Available modules
21
+
22
+
23
+ Supported IFS Instruments
24
+ ^^^^^^^^^^^^^^^^^^^^^^^^^
25
+
26
+ The currently available instrument modules in `pykoala` are:
27
+
28
+ - :class:`pykoala.instruments.koala_ifu`
29
+
30
+
31
+ Data Corrections
32
+ ----------------
33
+
34
+ This section contains the different correction modules included in `pykoala`.
35
+
36
+ .. toctree:: pykoala.corrections
37
+ :maxdepth: 1
38
+ :caption: Available modules
39
+
40
+
41
+ Cubing
42
+ ------
43
+
44
+ .. toctree:: pykoala.cubing
45
+ :maxdepth: 1
46
+
47
+ Manipulating Spectra
48
+ --------------------
49
+
50
+ Tools for manipulating 1D spectra.
51
+
52
+
53
+ Plotting tools
54
+ --------------
55
+
56
+ Useful methods for plotting and performing quality control tests.
57
+
58
+ .. toctree:: pykoala.plotting
59
+ :maxdepth: 1
@@ -0,0 +1,138 @@
1
+ # Configuration file for the Sphinx documentation builder.
2
+ #
3
+ # This file only contains a selection of the most common options. For a full
4
+ # list see the documentation:
5
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html
6
+
7
+ # -- Path setup --------------------------------------------------------------
8
+
9
+ # If extensions (or modules to document with autodoc) are in another directory,
10
+ # add these directories to sys.path here. If the directory is relative to the
11
+ # documentation root, use os.path.abspath to make it absolute, like shown here.
12
+ #
13
+ import os
14
+ import sys
15
+ sys.path.insert(0, os.path.abspath('../src'))
16
+
17
+
18
+ # Avoid build failures on read the docs
19
+ try:
20
+ import numpy
21
+ except ImportError:
22
+ from mock import MagicMock
23
+
24
+ MOCK_MODULES = [
25
+ 'numpy',
26
+ 'astropy',
27
+ 'astropy.convolution',
28
+ 'astropy.io',
29
+ 'astropy.wcs',
30
+ 'matplotlib',
31
+ 'matplotlib.colors',
32
+ 'matplotlib.pyplot',
33
+ 'synphot',
34
+ 'scipy',
35
+ 'scipy.ndimage',
36
+ 'scipy.ndimage.interpolation',
37
+ 'scipy.optimize',
38
+ 'scipy.signal',
39
+ "past",
40
+ "past.utils"
41
+ ]
42
+ sys.modules.update((mod_name, MagicMock()) for mod_name in MOCK_MODULES)
43
+
44
+
45
+ # -- Project information -----------------------------------------------------
46
+
47
+ project = 'pykoala'
48
+ copyright = u'2024, Pablo Corcho-Caballero'
49
+ author = u'Pablo Corcho-Caballero'
50
+
51
+ # The full version, including alpha/beta/rc tags
52
+ import pykoala
53
+ version = '.'.join(pykoala.__version__.split(".")[0:2])
54
+ # The full version, including alpha/beta/rc tags.
55
+ release = pykoala.__version__
56
+
57
+
58
+
59
+ source_suffix = '.rst'
60
+
61
+ # The encoding of source files.
62
+ #source_encoding = 'utf-8-sig'
63
+
64
+ # The master toctree document.
65
+ master_doc = 'index'
66
+
67
+
68
+
69
+ # -- General configuration ---------------------------------------------------
70
+
71
+ # Add any Sphinx extension module names here, as strings. They can be
72
+ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
73
+ # ones.
74
+ extensions = [
75
+ 'sphinx.ext.autodoc',
76
+ 'sphinx.ext.doctest',
77
+ 'sphinx.ext.intersphinx',
78
+ 'sphinx.ext.todo',
79
+ 'sphinx.ext.coverage',
80
+ 'sphinx.ext.imgmath',
81
+ 'sphinx.ext.viewcode',
82
+ 'sphinx.ext.napoleon',
83
+
84
+ ]
85
+
86
+ # Add any paths that contain templates here, relative to this directory.
87
+ templates_path = ['_templates']
88
+
89
+ # List of patterns, relative to source directory, that match files and
90
+ # directories to ignore when looking for source files.
91
+ # This pattern also affects html_static_path and html_extra_path.
92
+ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
93
+
94
+
95
+ # -- Options for HTML output -------------------------------------------------
96
+
97
+ # The theme to use for HTML and HTML Help pages. See the documentation for
98
+ # a list of builtin themes.
99
+ #
100
+ html_theme = 'sphinx_rtd_theme'
101
+
102
+ # Add any paths that contain custom static files (such as style sheets) here,
103
+ # relative to this directory. They are copied after the builtin static files,
104
+ # so a file named "default.css" will overwrite the builtin "default.css".
105
+ html_static_path = ['_static']
106
+
107
+
108
+ # -- Extension configuration -------------------------------------------------
109
+
110
+ # -- Options for intersphinx extension ---------------------------------------
111
+
112
+ # Example configuration for intersphinx: refer to the Python standard library.
113
+ intersphinx_mapping = {'python': ('https://docs.python.org/3/', None),
114
+ 'astropy': ('https://docs.astropy.org/en/stable/', None),
115
+ 'numpy': ('https://numpy.org/doc/stable/', None),
116
+ 'scipy': ('https://docs.scipy.org/doc/scipy/', None)}
117
+
118
+ # -- Options for todo extension ----------------------------------------------
119
+
120
+ # If true, `todo` and `todoList` produce output, else they produce nothing.
121
+ todo_include_todos = False
122
+ autodoc_member_order = 'bysource'
123
+
124
+ # Napoleon settings
125
+ napoleon_google_docstring = False
126
+ napoleon_numpy_docstring = True
127
+ napoleon_include_init_with_doc = True
128
+ napoleon_include_private_with_doc = True
129
+ napoleon_include_special_with_doc = True
130
+ napoleon_use_admonition_for_examples = False
131
+ napoleon_use_admonition_for_notes = False
132
+ napoleon_use_admonition_for_references = False
133
+ napoleon_use_ivar = False
134
+ napoleon_use_param = False
135
+ napoleon_use_rtype = False
136
+ napoleon_preprocess_types = False
137
+ napoleon_type_aliases = None
138
+ napoleon_attr_annotations = True
@@ -0,0 +1,25 @@
1
+ Forking PyKOALA
2
+ ===============
3
+
4
+ Working on a fork enables you to develop your own copy of PyKOALA, contributing your code back to the main repository through a "pull request."
5
+
6
+ How to fork
7
+ -----------
8
+ First, click “Fork this repository” on the main PyKOALA repository in github. You then have your own copy of PyKOALA in github.com/USERNAME/koala
9
+
10
+ .. figure:: ../_static/figures/fork_buttom.png
11
+
12
+ How to work on your fork
13
+ ------------------------
14
+ Clone a copy of your fork onto a local machine:
15
+ ::
16
+
17
+ git clone git@github.com:USERNAME/koala
18
+
19
+ This gets a copy of the entire repository. Here replace USERNAME with your GitHub username.
20
+
21
+
22
+ How to update your fork from the main PyKOALA repo
23
+ --------------------------------------------------
24
+
25
+ Make a
@@ -0,0 +1,13 @@
1
+ Developer guide
2
+ ===============
3
+
4
+ Here is the PyKOALA developer guide.
5
+
6
+ Contents
7
+ --------
8
+
9
+ .. toctree::
10
+ :maxdepth: 1
11
+
12
+
13
+ fork
@@ -0,0 +1,55 @@
1
+ Working with PyKOALA and git
2
+ =============================
3
+
4
+ Getting a copy
5
+ --------------
6
+
7
+ To get PyKOALA, clone the repository, using git:
8
+
9
+ ::
10
+
11
+ git clone https://github.com/pykoala/koala.git
12
+
13
+
14
+ Setting username and email address
15
+ ----------------------------------
16
+
17
+ Before pushing changes, make sure your name and email address are set as follows:
18
+
19
+ ::
20
+
21
+ cd koala
22
+ git config --global user.name "Ben Kenobi"
23
+ git config --global user.email "obi.wan@mq.edu.au"
24
+
25
+
26
+
27
+ Please use your full name in the specified format, as it will appear in the commit logs and the AUTHORS file.
28
+
29
+ Getting updates from your fork
30
+ ------------------------------
31
+
32
+ If the main repository has been updated, you may want to get those in your local version of the code. If so, your version will be in on of these cases:
33
+
34
+ - If you have not made changes in your local version, enter in the ``koala`` directory and use:
35
+
36
+ ::
37
+
38
+ git pull
39
+
40
+ - If you have made modifications that you do not wish to keep, use this instead:
41
+
42
+ ::
43
+
44
+ git stash
45
+ git pull
46
+
47
+ - In the case you want to keep the changes, type:
48
+
49
+ ::
50
+
51
+ git stash
52
+ git pull
53
+ git stash pop
54
+
55
+
@@ -0,0 +1,21 @@
1
+ Getting started
2
+ ===============
3
+
4
+ Quickstart
5
+ -----------
6
+
7
+ 1. :doc:`Get a copy <get-copy>` of the code.
8
+
9
+ 2. Installation of a :doc:`Python environment <virtual-environment>` for PyKoala.
10
+
11
+ 3. Running jupyter tutorials in a Python environment.
12
+
13
+
14
+ Contents
15
+ --------
16
+
17
+ .. toctree::
18
+ :maxdepth: 1
19
+
20
+ get-copy
21
+ virtual-environment