mlso-instruments 0.0.1__py3-none-any.whl
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.
- mlso/instruments/__init__.py +9 -0
- mlso/instruments/kcor.py +1 -0
- mlso/instruments/ucomp.py +17 -0
- mlso_instruments-0.0.1.dist-info/METADATA +97 -0
- mlso_instruments-0.0.1.dist-info/RECORD +8 -0
- mlso_instruments-0.0.1.dist-info/WHEEL +5 -0
- mlso_instruments-0.0.1.dist-info/licenses/LICENSE +21 -0
- mlso_instruments-0.0.1.dist-info/top_level.txt +1 -0
mlso/instruments/kcor.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
|
|
3
|
+
import astropy.io.fits as fits
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def display_hdu(hdu: fits.hdu.image.ImageHDU):
|
|
7
|
+
"""Display an extension of a UCoMP file.
|
|
8
|
+
"""
|
|
9
|
+
pass
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def display(filename: str, extension=None):
|
|
13
|
+
"""Display an extension of a UCoMP file.
|
|
14
|
+
"""
|
|
15
|
+
with fits.open(filename) as file:
|
|
16
|
+
# [TODO]: if needed, identify file type to get default extension
|
|
17
|
+
display_hdu(file[extension])
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mlso-instruments
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Python package providing a library of utlities for Mauna Loa Solar Observatory (MLSO) instruments
|
|
5
|
+
Author: Michael Galloy
|
|
6
|
+
Author-email: Michael Galloy <mgalloy@ucar.edu>
|
|
7
|
+
Maintainer: Michael Galloy
|
|
8
|
+
Maintainer-email: Michael Galloy <mgalloy@ucar.edu>
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
Project-URL: homepage, https://www2.hao.ucar.edu/mlso
|
|
11
|
+
Project-URL: repository, https://github.com/NCAR/mlso-instruments
|
|
12
|
+
Project-URL: documentation, https://mlso-instruments.readthedocs.io/en/latest/
|
|
13
|
+
Project-URL: issues, https://github.com/NCAR/mlso-instruments/issues
|
|
14
|
+
Project-URL: changelog, https://github.com/NCAR/mlso-instruments/blob/master/CHANGELOG.md
|
|
15
|
+
Keywords: Mauna Loa Solar Observatory,MLSO,solar
|
|
16
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
17
|
+
Classifier: Intended Audience :: Developers
|
|
18
|
+
Classifier: Intended Audience :: Science/Research
|
|
19
|
+
Classifier: Natural Language :: English
|
|
20
|
+
Classifier: Programming Language :: Python
|
|
21
|
+
Requires-Python: >=3.9
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
Requires-Dist: astropy
|
|
25
|
+
Requires-Dist: numpy
|
|
26
|
+
Provides-Extra: dev
|
|
27
|
+
Requires-Dist: build; extra == "dev"
|
|
28
|
+
Requires-Dist: pytest; extra == "dev"
|
|
29
|
+
Requires-Dist: pytest-cov; extra == "dev"
|
|
30
|
+
Requires-Dist: pre-commit; extra == "dev"
|
|
31
|
+
Requires-Dist: tox; extra == "dev"
|
|
32
|
+
Requires-Dist: wheel; extra == "dev"
|
|
33
|
+
Requires-Dist: watchdog; extra == "dev"
|
|
34
|
+
Requires-Dist: Sphinx; extra == "dev"
|
|
35
|
+
Requires-Dist: twine; extra == "dev"
|
|
36
|
+
Requires-Dist: coverage; extra == "dev"
|
|
37
|
+
Requires-Dist: flake8; extra == "dev"
|
|
38
|
+
Requires-Dist: pytest-runner; extra == "dev"
|
|
39
|
+
Requires-Dist: black; extra == "dev"
|
|
40
|
+
Requires-Dist: sphinx_rtd_theme; extra == "dev"
|
|
41
|
+
Requires-Dist: myst-parser; extra == "dev"
|
|
42
|
+
Dynamic: license-file
|
|
43
|
+
|
|
44
|
+
# mlso-instruments
|
|
45
|
+
|
|
46
|
+
This package contains Python utilities for analyzing and displaying data from
|
|
47
|
+
instruments at the Mauna Loa Solar Observatory (MLSO)
|
|
48
|
+
|
|
49
|
+
[](https://mlso-instruments.readthedocs.io/en/latest/)
|
|
50
|
+
[](https://dl.circleci.com/status-badge/redirect/gh/NCAR/mlso-instruments/tree/main)
|
|
51
|
+
[](https://pypi.org/project/mlso-instruments/)
|
|
52
|
+

|
|
53
|
+
|
|
54
|
+
## Installation
|
|
55
|
+
|
|
56
|
+
### Installing from PyPI
|
|
57
|
+
|
|
58
|
+
The easiest way to install the MLSO API client is via the released versions on
|
|
59
|
+
PyPI. This is the recommended method for most users.
|
|
60
|
+
|
|
61
|
+
```console
|
|
62
|
+
pip install mlso-instruments
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
If you want to upgrade an existing installation, do:
|
|
66
|
+
|
|
67
|
+
```console
|
|
68
|
+
pip install -U mlso-instruments
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Installing from source
|
|
72
|
+
|
|
73
|
+
The source code can be found on the [repo's GitHub page]. Use git or download
|
|
74
|
+
a ZIP file with contents of the source.
|
|
75
|
+
|
|
76
|
+
[repo's GitHub page]: https://github.com/NCAR/mlso-instruments
|
|
77
|
+
|
|
78
|
+
Once you have the source code, install the Python portion of the package:
|
|
79
|
+
|
|
80
|
+
```console
|
|
81
|
+
cd mlso-instruments
|
|
82
|
+
pip install .
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
If you intend to make changes to the code, install the dev requirements and
|
|
86
|
+
allow changes to the code to automatically be used:
|
|
87
|
+
|
|
88
|
+
```console
|
|
89
|
+
pip install -e .[dev]
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Usage
|
|
93
|
+
|
|
94
|
+
See the [documentation] for help on using the package, including the API
|
|
95
|
+
Endpoints, the bindings for Python and IDL, and the command-line interface.
|
|
96
|
+
|
|
97
|
+
[documentation]: https://mlso-instruments.readthedocs.io/en/latest/index.html
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
mlso/instruments/__init__.py,sha256=XFxKPa0Ki-kZ1czS5QpdOQQ_bIrAzh4oIl8xM5UW0f4,199
|
|
2
|
+
mlso/instruments/kcor.py,sha256=E2bdssT0GmZweJjZ-4N1cav440TE__rUvQLR3jARan8,18
|
|
3
|
+
mlso/instruments/ucomp.py,sha256=o0Ky8IpPChCfhOBFqDyNRDP6hMIRfgSK9ACesZzjZ7Y,408
|
|
4
|
+
mlso_instruments-0.0.1.dist-info/licenses/LICENSE,sha256=Uky6fiiVw7cakFVRtVpzg-mvqOQ-WcA_H8lHqhPRg58,1101
|
|
5
|
+
mlso_instruments-0.0.1.dist-info/METADATA,sha256=MO1Smn94MtSYT1HlIFr2hv5ciKvPblqlxg9KfjlBzW4,3482
|
|
6
|
+
mlso_instruments-0.0.1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
7
|
+
mlso_instruments-0.0.1.dist-info/top_level.txt,sha256=oenBdn5KKGUSTCJaHuHJ8xsNqkhg2lwpM63JJtY-prs,5
|
|
8
|
+
mlso_instruments-0.0.1.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 NSF National Center for Atmospheric Research
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
mlso
|