qpoint 1.13.0__cp313-cp313-macosx_10_13_universal2.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.
qpoint/tools.py ADDED
@@ -0,0 +1,35 @@
1
+ import numpy as np
2
+ from ._libqpoint import libqp as qp
3
+
4
+ __all__ = ["refraction"]
5
+
6
+
7
+ def refraction(el, temp, press, hum, freq=150.0):
8
+ """
9
+ Standalone function for calculating the refraction correction without
10
+ storing any parameters. Useful for testing, numpy-vectorized.
11
+
12
+ Arguments
13
+ ---------
14
+ el : array_like
15
+ Observer elevation angle, degrees
16
+ temperature : array_like
17
+ Ambient temperature, Celcius
18
+ pressure : array_like
19
+ Ambient pressure, mbar
20
+ humidity : array_like
21
+ Relative humidity, fraction
22
+ frequency : array_like
23
+ Observing frequency, GHz
24
+
25
+ Returns
26
+ -------
27
+ delta : array_like
28
+ Refraction correction, in degrees
29
+ """
30
+
31
+ fvec = np.vectorize(qp.qp_refraction, [np.double])
32
+ delta = fvec(el, temp, press, hum, freq)
33
+ if delta.shape == ():
34
+ return delta[()]
35
+ return delta
@@ -0,0 +1,95 @@
1
+ Metadata-Version: 2.4
2
+ Name: qpoint
3
+ Version: 1.13.0
4
+ Summary: A lightweight quaternion-based library for efficient telescope pointing
5
+ Author-email: Alexandra Rahlin <arahlin@users.noreply.github.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2017 Alexandra Rahlin
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Project-URL: source, https://github.com/arahlin/qpoint
29
+ Requires-Python: >=3.8
30
+ Description-Content-Type: text/markdown
31
+ License-File: LICENSE
32
+ Requires-Dist: numpy>1.10.0
33
+ Requires-Dist: scipy
34
+ Requires-Dist: astropy
35
+ Dynamic: license-file
36
+
37
+ # qpoint
38
+
39
+ [![](https://badge.fury.io/py/qpoint.svg)](https://badge.fury.io/py/qpoint)
40
+ [![](https://github.com/arahlin/qpoint/actions/workflows/documentation.yaml/badge.svg)](https://github.com/arahlin/qpoint/actions/workflows/documentation.yaml)
41
+ [![](https://github.com/arahlin/qpoint/actions/workflows/release.yaml/badge.svg)](https://github.com/arahlin/qpoint/actions/workflows/release.yaml)
42
+ [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/arahlin/qpoint/master.svg)](https://results.pre-commit.ci/latest/github/arahlin/qpoint/master)
43
+
44
+ A lightweight quaternion-based library for telescope pointing. This library is
45
+ forked from the `libactpol` pointing library, originally written by M. Nolta.
46
+
47
+ Written and maintained by Alexandra Rahlin.
48
+
49
+ Documentation can be found [here](https://arahlin.github.io/qpoint/).
50
+
51
+ Other Contributors:
52
+
53
+ * Steve Benton
54
+ * Anne Gambrel
55
+ * Carlo Contaldi
56
+ * Ivan Padilla
57
+ * Matthew Hasselfield
58
+
59
+ ### Requirements
60
+
61
+ * GNU, Intel or LLVM C compiler
62
+ * Python 2.7, Python 3+
63
+ * `numpy` library, version 1.10.0 or newer (for python bindings)
64
+ * `astropy` library, version 1.2 or newer (optional, for baking in IERS-A data)
65
+ * [ERFA C library](https://github.com/liberfa/erfa) (version 2.0.0, based on
66
+ SOFA issue 2021-05-12 bundled with this package)
67
+ * [HEALPix C library](http://healpix.sourceforge.net/) (v. 3.31 bundled with
68
+ this package)
69
+
70
+ ### Installation
71
+
72
+ For most users, it should be sufficient to install the python library from PyPI:
73
+
74
+ ```
75
+ pip install qpoint
76
+ ```
77
+
78
+ This will install the python bindings and library code compiled with OpenMP
79
+ support, if possible (only available with GCC or Intel compilers).
80
+
81
+ ### Usage
82
+
83
+ To use the pointing library, initialize a `qpoint.QPoint` instance. When
84
+ installed from PyPI, the internal IERS table is left empty. Use the
85
+ `update_iers` argument to update the internal IERS-A table using the IERS
86
+ utilities provided by `astropy` (this of course assumes that you have `astropy`
87
+ installed on your system):
88
+
89
+ ```
90
+ >>> import qpoint as qp
91
+ >>> Q = qp.QPoint(update_iers=True)
92
+ ```
93
+
94
+ See the [documentation](https://arahlin.github.io/qpoint/) for more details.
95
+ See also some example Python code in `examples/`.
@@ -0,0 +1,12 @@
1
+ qpoint/libqpoint.cpython-313-darwin.so,sha256=UQWDv9AXLBm5I60Xk-QEQ7XPXLn5As1DuZH8St0zLEk,1191440
2
+ qpoint/qpoint_class.py,sha256=aMY-pGa4peKejD0HG4_Tly4Oi_tPCcQ7qt_sQ7ySDVA,63607
3
+ qpoint/_version.py,sha256=_92sihGiAvpfrQTPpqRZRLYxzi4pV34_20_5-zjuIWo,714
4
+ qpoint/tools.py,sha256=ZV5rgX_PJ-XwX4v9q_XLoF9TeMXBTRDd1NA-1I0heIY,885
5
+ qpoint/__init__.py,sha256=47h93pDOmxFuAmbO0HUjH5SqoGA606EuJMrkgkQ4_w0,261
6
+ qpoint/qmap_class.py,sha256=qNHM-vubsKtsR7V0M61ekXOVh0LAw3Yjx_6C6CgX0f8,49032
7
+ qpoint/_libqpoint.py,sha256=iqGHuD0DmbQi8_LoRz2he43z_PcYFn7QQ2ccm27lv8g,31912
8
+ qpoint-1.13.0.dist-info/RECORD,,
9
+ qpoint-1.13.0.dist-info/WHEEL,sha256=YOKbiIEZep2WTRrpKV0dvEfsSeIOVH2NqduVxoKQt6I,142
10
+ qpoint-1.13.0.dist-info/top_level.txt,sha256=2WdPHRmw7PsqXAkBfuhZW_pEvF3b1QBIk5g7PdFyBAo,7
11
+ qpoint-1.13.0.dist-info/METADATA,sha256=hN8ed1dFgB7HbsKhcskkqmDXHIoiGOZIDTcDrV8EbOo,3868
12
+ qpoint-1.13.0.dist-info/licenses/LICENSE,sha256=VWcyvfLaS0xSicGRJis99WPZHtAUtBXbIebD_ml_-Xg,1073
@@ -0,0 +1,6 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313-macosx_10_13_universal2
5
+ Generator: delocate 0.13.0
6
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Alexandra Rahlin
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
+ qpoint