satkit 0.16.2__tar.gz → 0.17.0__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 (131) hide show
  1. {satkit-0.16.2 → satkit-0.17.0}/Cargo.toml +6 -9
  2. satkit-0.17.0/LICENSE-APACHE +201 -0
  3. {satkit-0.16.2 → satkit-0.17.0}/MANIFEST.in +2 -1
  4. {satkit-0.16.2/python/satkit.egg-info → satkit-0.17.0}/PKG-INFO +15 -5
  5. {satkit-0.16.2 → satkit-0.17.0}/README.md +11 -2
  6. {satkit-0.16.2 → satkit-0.17.0}/pyproject.toml +3 -3
  7. {satkit-0.16.2 → satkit-0.17.0}/python/Cargo.toml +2 -2
  8. {satkit-0.16.2 → satkit-0.17.0}/python/satkit/frametransform.pyi +85 -0
  9. {satkit-0.16.2 → satkit-0.17.0}/python/satkit/satkit.pyi +48 -21
  10. {satkit-0.16.2 → satkit-0.17.0/python/satkit.egg-info}/PKG-INFO +15 -5
  11. {satkit-0.16.2 → satkit-0.17.0}/python/satkit.egg-info/SOURCES.txt +9 -1
  12. {satkit-0.16.2 → satkit-0.17.0}/python/src/lib.rs +10 -3
  13. {satkit-0.16.2 → satkit-0.17.0}/python/src/mod_utils.rs +3 -2
  14. {satkit-0.16.2 → satkit-0.17.0}/python/src/pyduration.rs +6 -11
  15. {satkit-0.16.2 → satkit-0.17.0}/python/src/pyframetransform.rs +164 -7
  16. {satkit-0.16.2 → satkit-0.17.0}/python/src/pygravity.rs +20 -10
  17. {satkit-0.16.2 → satkit-0.17.0}/python/src/pyinstant.rs +3 -3
  18. {satkit-0.16.2 → satkit-0.17.0}/python/src/pyitrfcoord.rs +29 -10
  19. {satkit-0.16.2 → satkit-0.17.0}/python/src/pyjplephem.rs +6 -7
  20. {satkit-0.16.2 → satkit-0.17.0}/python/src/pylpephem_sun.rs +8 -10
  21. {satkit-0.16.2 → satkit-0.17.0}/python/src/pypropresult.rs +17 -13
  22. {satkit-0.16.2 → satkit-0.17.0}/python/src/pyquaternion.rs +3 -1
  23. {satkit-0.16.2 → satkit-0.17.0}/python/src/pysatproperties.rs +18 -14
  24. {satkit-0.16.2 → satkit-0.17.0}/python/src/pysatstate.rs +16 -8
  25. {satkit-0.16.2 → satkit-0.17.0}/python/src/pysgp4.rs +6 -5
  26. {satkit-0.16.2 → satkit-0.17.0}/python/src/pythrust.rs +1 -4
  27. {satkit-0.16.2 → satkit-0.17.0}/python/src/pytle.rs +13 -14
  28. {satkit-0.16.2 → satkit-0.17.0}/python/src/pyutils.rs +5 -1
  29. {satkit-0.16.2 → satkit-0.17.0}/src/earth_orientation_params.rs +90 -25
  30. {satkit-0.16.2 → satkit-0.17.0}/src/earthgravity.rs +141 -17
  31. satkit-0.17.0/src/error.rs +92 -0
  32. {satkit-0.16.2 → satkit-0.17.0}/src/frames.rs +16 -4
  33. satkit-0.17.0/src/frametransform/dispatch.rs +826 -0
  34. satkit-0.17.0/src/frametransform/error.rs +73 -0
  35. {satkit-0.16.2 → satkit-0.17.0}/src/frametransform/ierstable.rs +11 -7
  36. {satkit-0.16.2 → satkit-0.17.0}/src/frametransform/mod.rs +67 -70
  37. {satkit-0.16.2 → satkit-0.17.0}/src/itrfcoord.rs +73 -54
  38. {satkit-0.16.2 → satkit-0.17.0}/src/jplephem.rs +56 -6
  39. {satkit-0.16.2 → satkit-0.17.0}/src/kepler.rs +15 -23
  40. {satkit-0.16.2 → satkit-0.17.0}/src/lambert.rs +4 -14
  41. {satkit-0.16.2 → satkit-0.17.0}/src/lib.rs +10 -2
  42. satkit-0.17.0/src/lpephem/mod.rs +47 -0
  43. {satkit-0.16.2 → satkit-0.17.0}/src/lpephem/planets.rs +7 -7
  44. {satkit-0.16.2 → satkit-0.17.0}/src/lpephem/sun.rs +2 -5
  45. satkit-0.17.0/src/nrlmsise.rs +5423 -0
  46. satkit-0.17.0/src/omm/error.rs +58 -0
  47. {satkit-0.16.2 → satkit-0.17.0}/src/omm/mod.rs +33 -17
  48. {satkit-0.16.2 → satkit-0.17.0}/src/omm/xml.rs +16 -23
  49. {satkit-0.16.2 → satkit-0.17.0}/src/orbitprop/drag.rs +13 -3
  50. satkit-0.17.0/src/orbitprop/error.rs +77 -0
  51. {satkit-0.16.2 → satkit-0.17.0}/src/orbitprop/mod.rs +2 -0
  52. {satkit-0.16.2 → satkit-0.17.0}/src/orbitprop/ode/gauss_jackson.rs +311 -226
  53. {satkit-0.16.2 → satkit-0.17.0}/src/orbitprop/ode/mod.rs +1 -1
  54. {satkit-0.16.2 → satkit-0.17.0}/src/orbitprop/point_gravity.rs +1 -2
  55. {satkit-0.16.2 → satkit-0.17.0}/src/orbitprop/precomputed.rs +8 -10
  56. {satkit-0.16.2 → satkit-0.17.0}/src/orbitprop/propagator.rs +84 -73
  57. {satkit-0.16.2 → satkit-0.17.0}/src/orbitprop/satproperties.rs +12 -2
  58. {satkit-0.16.2 → satkit-0.17.0}/src/orbitprop/satstate.rs +35 -42
  59. {satkit-0.16.2 → satkit-0.17.0}/src/orbitprop/settings.rs +3 -9
  60. {satkit-0.16.2 → satkit-0.17.0}/src/orbitprop/thrust.rs +6 -1
  61. {satkit-0.16.2 → satkit-0.17.0}/src/sgp4/dscom.rs +8 -2
  62. {satkit-0.16.2 → satkit-0.17.0}/src/sgp4/dspace.rs +70 -4
  63. satkit-0.17.0/src/sgp4/error.rs +36 -0
  64. {satkit-0.16.2 → satkit-0.17.0}/src/sgp4/initl.rs +9 -3
  65. {satkit-0.16.2 → satkit-0.17.0}/src/sgp4/mod.rs +3 -1
  66. {satkit-0.16.2 → satkit-0.17.0}/src/sgp4/sgp4_impl.rs +33 -27
  67. {satkit-0.16.2 → satkit-0.17.0}/src/sgp4/sgp4_lowlevel.rs +29 -51
  68. {satkit-0.16.2 → satkit-0.17.0}/src/solar_cycle_forecast.rs +69 -11
  69. {satkit-0.16.2 → satkit-0.17.0}/src/solarsystem.rs +1 -1
  70. {satkit-0.16.2 → satkit-0.17.0}/src/spaceweather.rs +50 -13
  71. {satkit-0.16.2 → satkit-0.17.0}/src/time/chrono.rs +39 -19
  72. {satkit-0.16.2 → satkit-0.17.0}/src/time/duration.rs +1 -5
  73. {satkit-0.16.2 → satkit-0.17.0}/src/time/instant.rs +9 -8
  74. satkit-0.17.0/src/time/instant_err.rs +41 -0
  75. {satkit-0.16.2 → satkit-0.17.0}/src/time/instantparse.rs +81 -62
  76. {satkit-0.16.2 → satkit-0.17.0}/src/time/timelike.rs +0 -1
  77. satkit-0.17.0/src/tle/error.rs +71 -0
  78. {satkit-0.16.2 → satkit-0.17.0}/src/tle/fitting.rs +22 -41
  79. {satkit-0.16.2 → satkit-0.17.0}/src/tle/mod.rs +72 -83
  80. {satkit-0.16.2 → satkit-0.17.0}/src/utils/datadir.rs +26 -5
  81. satkit-0.17.0/src/utils/download.rs +145 -0
  82. {satkit-0.16.2 → satkit-0.17.0}/src/utils/mod.rs +5 -3
  83. {satkit-0.16.2 → satkit-0.17.0}/src/utils/test.rs +1 -2
  84. {satkit-0.16.2 → satkit-0.17.0}/src/utils/update_data.rs +65 -27
  85. satkit-0.16.2/src/lpephem/mod.rs +0 -9
  86. satkit-0.16.2/src/nrlmsise.rs +0 -1331
  87. satkit-0.16.2/src/time/instant_err.rs +0 -25
  88. satkit-0.16.2/src/utils/download.rs +0 -60
  89. satkit-0.16.2/LICENSE → satkit-0.17.0/LICENSE-MIT +0 -0
  90. {satkit-0.16.2 → satkit-0.17.0}/python/build.rs +0 -0
  91. {satkit-0.16.2 → satkit-0.17.0}/python/satkit/__init__.py +0 -0
  92. {satkit-0.16.2 → satkit-0.17.0}/python/satkit/__init__.pyi +0 -0
  93. {satkit-0.16.2 → satkit-0.17.0}/python/satkit/density.pyi +0 -0
  94. {satkit-0.16.2 → satkit-0.17.0}/python/satkit/jplephem.pyi +0 -0
  95. {satkit-0.16.2 → satkit-0.17.0}/python/satkit/moon.pyi +0 -0
  96. {satkit-0.16.2 → satkit-0.17.0}/python/satkit/planets.pyi +0 -0
  97. {satkit-0.16.2 → satkit-0.17.0}/python/satkit/py.typed +0 -0
  98. {satkit-0.16.2 → satkit-0.17.0}/python/satkit/sun.pyi +0 -0
  99. {satkit-0.16.2 → satkit-0.17.0}/python/satkit/utils.pyi +0 -0
  100. {satkit-0.16.2 → satkit-0.17.0}/python/satkit.egg-info/dependency_links.txt +0 -0
  101. {satkit-0.16.2 → satkit-0.17.0}/python/satkit.egg-info/requires.txt +0 -0
  102. {satkit-0.16.2 → satkit-0.17.0}/python/satkit.egg-info/top_level.txt +0 -0
  103. {satkit-0.16.2 → satkit-0.17.0}/python/src/pyconsts.rs +0 -0
  104. {satkit-0.16.2 → satkit-0.17.0}/python/src/pydensity.rs +0 -0
  105. {satkit-0.16.2 → satkit-0.17.0}/python/src/pyframes.rs +1 -1
  106. {satkit-0.16.2 → satkit-0.17.0}/python/src/pykepler.rs +0 -0
  107. {satkit-0.16.2 → satkit-0.17.0}/python/src/pylambert.rs +0 -0
  108. {satkit-0.16.2 → satkit-0.17.0}/python/src/pylpephem_moon.rs +1 -1
  109. {satkit-0.16.2 → satkit-0.17.0}/python/src/pylpephem_planets.rs +2 -2
  110. {satkit-0.16.2 → satkit-0.17.0}/python/src/pynrlmsise.rs +0 -0
  111. {satkit-0.16.2 → satkit-0.17.0}/python/src/pyomm.rs +0 -0
  112. {satkit-0.16.2 → satkit-0.17.0}/python/src/pypropagate.rs +0 -0
  113. {satkit-0.16.2 → satkit-0.17.0}/python/src/pypropsettings.rs +0 -0
  114. {satkit-0.16.2 → satkit-0.17.0}/python/src/pysolarsystem.rs +0 -0
  115. {satkit-0.16.2 → satkit-0.17.0}/python/src/pytlefitstatus.rs +0 -0
  116. {satkit-0.16.2 → satkit-0.17.0}/python/src/pyukf.rs +0 -0
  117. {satkit-0.16.2 → satkit-0.17.0}/setup.cfg +0 -0
  118. {satkit-0.16.2 → satkit-0.17.0}/src/consts.rs +0 -0
  119. {satkit-0.16.2 → satkit-0.17.0}/src/frametransform/qcirs2gcrs.rs +0 -0
  120. {satkit-0.16.2 → satkit-0.17.0}/src/lpephem/moon.rs +0 -0
  121. {satkit-0.16.2 → satkit-0.17.0}/src/mathtypes.rs +0 -0
  122. {satkit-0.16.2 → satkit-0.17.0}/src/sgp4/dpper.rs +0 -0
  123. {satkit-0.16.2 → satkit-0.17.0}/src/sgp4/dsinit.rs +0 -0
  124. {satkit-0.16.2 → satkit-0.17.0}/src/sgp4/getgravconst.rs +0 -0
  125. {satkit-0.16.2 → satkit-0.17.0}/src/sgp4/satrec.rs +0 -0
  126. {satkit-0.16.2 → satkit-0.17.0}/src/sgp4/sgp4init.rs +0 -0
  127. {satkit-0.16.2 → satkit-0.17.0}/src/time/instant_ops.rs +0 -0
  128. {satkit-0.16.2 → satkit-0.17.0}/src/time/mod.rs +0 -0
  129. {satkit-0.16.2 → satkit-0.17.0}/src/time/tests.rs +0 -0
  130. {satkit-0.16.2 → satkit-0.17.0}/src/time/timescale.rs +0 -0
  131. {satkit-0.16.2 → satkit-0.17.0}/src/time/weekday.rs +0 -0
@@ -3,11 +3,11 @@ members = [".", "python"]
3
3
 
4
4
  [package]
5
5
  name = "satkit"
6
- version = "0.16.2"
6
+ version = "0.17.0"
7
7
  edition = "2021"
8
8
  description = "Satellite Toolkit"
9
9
  readme = "README.md"
10
- license = "MIT"
10
+ license = "MIT OR Apache-2.0"
11
11
  homepage = "https://satkit.dev"
12
12
  repository = "https://github.com/ssmichael1/satkit"
13
13
  documentation = "https://satkit.dev"
@@ -23,28 +23,25 @@ name = "satkit"
23
23
 
24
24
  [dependencies]
25
25
  numeris = { version = "0.5.7", features = ["serde", "estimate", "ode"] }
26
- num-traits = "0.2.19"
27
26
  thiserror = "2.0"
28
- ureq = "3.1.2"
27
+ ureq = { version = "3.1.2", optional = true }
29
28
  process_path = "0.1.4"
30
29
  serde = { version = "1.0", features = ["derive"] }
31
30
  serde_json = "1.0"
32
31
  quick-xml = { version = "0.38", features = ["serialize"], optional = true }
33
- anyhow = "1"
34
32
  chrono = { version = "0.4", optional = true }
35
33
 
36
- [build-dependencies]
37
- chrono = "0.4"
38
-
39
34
  [dev-dependencies]
35
+ anyhow = "1"
40
36
  rand = "0.9.2"
41
37
  approx = "0.5"
42
38
  rand_distr = "0.5.1"
43
39
 
44
40
  [features]
45
- default = ["omm-xml"]
41
+ default = ["omm-xml", "download"]
46
42
  omm-xml = ["dep:quick-xml"]
47
43
  chrono = ["dep:chrono"]
44
+ download = ["dep:ureq"]
48
45
 
49
46
  [workspace.metadata.release]
50
47
  pre-release-replacements = [
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for describing the origin of the Work and
141
+ reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Support. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or support.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2025 Steven Michael
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
200
+ implied. See the License for the specific language governing
201
+ permissions and limitations under the License.
@@ -1,6 +1,7 @@
1
1
  include Cargo.toml
2
2
  include Cargo.lock
3
- include LICENSE
3
+ include LICENSE-MIT
4
+ include LICENSE-APACHE
4
5
  include README.md
5
6
  include pyproject.toml
6
7
  recursive-include src *.rs
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: satkit
3
- Version: 0.16.2
3
+ Version: 0.17.0
4
4
  Summary: Satellite Orbital Dynamics Toolkit
5
5
  Author-email: Steven Michael <ssmichael@gmail.com>
6
6
  Maintainer-email: Steven Michael <ssmichael@gmail.com>
7
- License-Expression: MIT
7
+ License-Expression: MIT OR Apache-2.0
8
8
  Keywords: satellite,orbit,astrodynamics,SGP4,TLE,JPL,Ephemeris
9
9
  Classifier: Development Status :: 4 - Beta
10
10
  Classifier: Programming Language :: Python :: 3.10
@@ -14,7 +14,8 @@ Classifier: Programming Language :: Python :: 3.13
14
14
  Classifier: Programming Language :: Python :: 3.14
15
15
  Requires-Python: >=3.10
16
16
  Description-Content-Type: text/markdown
17
- License-File: LICENSE
17
+ License-File: LICENSE-MIT
18
+ License-File: LICENSE-APACHE
18
19
  Requires-Dist: numpy>=1.0.0
19
20
  Requires-Dist: satkit-data>=0.7.0
20
21
  Provides-Extra: test
@@ -28,7 +29,7 @@ Dynamic: license-file
28
29
 
29
30
  ![Build](https://github.com/ssmichael1/satkit/actions/workflows/build.yml/badge.svg)
30
31
  ![Release](https://github.com/ssmichael1/satkit/actions/workflows/release.yml/badge.svg)
31
- ![License: MIT](https://img.shields.io/github/license/ssmichael1/satkit)
32
+ ![License: MIT OR Apache-2.0](https://img.shields.io/github/license/ssmichael1/satkit)
32
33
 
33
34
  [![Crates.io](https://img.shields.io/crates/v/satkit)](https://crates.io/crates/satkit)
34
35
  [![Crates.io Downloads](https://img.shields.io/crates/dr/satkit)](https://crates.io/crates/satkit)
@@ -244,4 +245,13 @@ SATKIT_DATA=astro-data SATKIT_TESTVEC_ROOT=satkit-testvecs pytest python/test/
244
245
 
245
246
  ## License
246
247
 
247
- MIT
248
+ Licensed under either of
249
+
250
+ - Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or <http://www.apache.org/licenses/LICENSE-2.0>)
251
+ - MIT license ([LICENSE-MIT](LICENSE-MIT) or <http://opensource.org/licenses/MIT>)
252
+
253
+ at your option.
254
+
255
+ ### Contribution
256
+
257
+ Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
@@ -4,7 +4,7 @@
4
4
 
5
5
  ![Build](https://github.com/ssmichael1/satkit/actions/workflows/build.yml/badge.svg)
6
6
  ![Release](https://github.com/ssmichael1/satkit/actions/workflows/release.yml/badge.svg)
7
- ![License: MIT](https://img.shields.io/github/license/ssmichael1/satkit)
7
+ ![License: MIT OR Apache-2.0](https://img.shields.io/github/license/ssmichael1/satkit)
8
8
 
9
9
  [![Crates.io](https://img.shields.io/crates/v/satkit)](https://crates.io/crates/satkit)
10
10
  [![Crates.io Downloads](https://img.shields.io/crates/dr/satkit)](https://crates.io/crates/satkit)
@@ -220,4 +220,13 @@ SATKIT_DATA=astro-data SATKIT_TESTVEC_ROOT=satkit-testvecs pytest python/test/
220
220
 
221
221
  ## License
222
222
 
223
- MIT
223
+ Licensed under either of
224
+
225
+ - Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or <http://www.apache.org/licenses/LICENSE-2.0>)
226
+ - MIT license ([LICENSE-MIT](LICENSE-MIT) or <http://opensource.org/licenses/MIT>)
227
+
228
+ at your option.
229
+
230
+ ### Contribution
231
+
232
+ Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
@@ -9,8 +9,8 @@ requires-python = ">= 3.10"
9
9
  authors = [{ name = "Steven Michael", email = "ssmichael@gmail.com" }]
10
10
  maintainers = [{ name = "Steven Michael", email = "ssmichael@gmail.com" }]
11
11
  readme = "README.md"
12
- version = "0.16.2"
13
- license = "MIT"
12
+ version = "0.17.0"
13
+ license = "MIT OR Apache-2.0"
14
14
  description = "Satellite Orbital Dynamics Toolkit"
15
15
  keywords = [
16
16
  "satellite",
@@ -39,7 +39,7 @@ classifiers = [
39
39
  test = ["pytest", "xmltodict"]
40
40
 
41
41
  [tool.setuptools]
42
- license-files = ["LICENSE"]
42
+ license-files = ["LICENSE-MIT", "LICENSE-APACHE"]
43
43
 
44
44
  [tool.setuptools.packages.find]
45
45
  where = ["python"]
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "satkit-python"
3
- version = "0.16.2"
3
+ version = "0.17.0"
4
4
  edition = "2021"
5
5
  publish = false
6
6
 
@@ -9,7 +9,7 @@ name = "satkit"
9
9
  crate-type = ["cdylib"]
10
10
 
11
11
  [dependencies]
12
- satkit = { path = ".." }
12
+ satkit = { path = "..", features = ["download"] }
13
13
  pyo3 = { version = "0.28.2", features = ["extension-module", "anyhow"] }
14
14
  numpy = "0.28"
15
15
  numeris = { version = "0.5.6", features = ["serde", "estimate"] }
@@ -1029,3 +1029,88 @@ def disable_eop_time_warning() -> None:
1029
1029
  - If not disabled, warning will be shown only once per library load,
1030
1030
  """
1031
1031
  ...
1032
+
1033
+ # ── Frame-enum dispatch (new in 0.17.0) ─────────────────────────────────
1034
+
1035
+ def rotation(
1036
+ from_frame: frame,
1037
+ to_frame: frame,
1038
+ tm: time | datetime.datetime,
1039
+ ) -> quaternion:
1040
+ """Quaternion rotating a vector from ``from_frame`` to ``to_frame`` at
1041
+ ``tm``. Full IERS 2010 reduction.
1042
+
1043
+ Uses the shortest path through the frame graph for each pair (does not
1044
+ always pivot through GCRF). Pairs involving orbit-dependent frames
1045
+ (``LVLH``, ``RTN``, ``NTW``) require state and are not supported here —
1046
+ use :func:`to_gcrf` / :func:`from_gcrf` for those.
1047
+
1048
+ Args:
1049
+ from_frame: Source frame
1050
+ to_frame: Destination frame
1051
+ tm: Epoch
1052
+
1053
+ Returns:
1054
+ Rotation from ``from_frame`` to ``to_frame`` at ``tm``.
1055
+
1056
+ Raises:
1057
+ RuntimeError: if the pair involves LVLH / RTN / NTW.
1058
+ """
1059
+ ...
1060
+
1061
+ def rotation_approx(
1062
+ from_frame: frame,
1063
+ to_frame: frame,
1064
+ tm: time | datetime.datetime,
1065
+ ) -> quaternion:
1066
+ """Quaternion rotating a vector from ``from_frame`` to ``to_frame`` using
1067
+ the IAU-76/FK5 approximate reduction (~1 arcsec).
1068
+
1069
+ Only valid between ``ITRF`` and the inertial cluster (``GCRF``,
1070
+ ``EME2000``, ``ICRF``, ``TEME``). ``TIRS`` and ``CIRS`` are defined by
1071
+ the IERS 2010 reduction and have no FK5 analogue.
1072
+
1073
+ Raises:
1074
+ RuntimeError: if either frame is ``TIRS`` / ``CIRS``, or if the pair
1075
+ involves orbit-dependent frames.
1076
+ """
1077
+ ...
1078
+
1079
+ def transform_state(
1080
+ from_frame: frame,
1081
+ to_frame: frame,
1082
+ tm: time | datetime.datetime,
1083
+ pos: npt.ArrayLike,
1084
+ vel: npt.ArrayLike,
1085
+ ) -> tuple[npt.NDArray[np.float64], npt.NDArray[np.float64]]:
1086
+ """State (position + velocity) transform from ``from_frame`` to
1087
+ ``to_frame`` at ``tm``. Properly handles the Earth-rotation sweep term
1088
+ when transitioning between rotating (ITRF) and inertial frames.
1089
+
1090
+ Currently supported pairs: identity, ``ITRF``↔{``GCRF``, ``EME2000``,
1091
+ ``ICRF``, ``TEME``}, and within-inertial pairs. Other pairs raise
1092
+ ``RuntimeError`` in this version.
1093
+
1094
+ Args:
1095
+ from_frame: Source frame
1096
+ to_frame: Destination frame
1097
+ tm: Epoch
1098
+ pos: 3-element position vector [m]
1099
+ vel: 3-element velocity vector [m/s]
1100
+
1101
+ Returns:
1102
+ ``(pos, vel)`` in ``to_frame``.
1103
+ """
1104
+ ...
1105
+
1106
+ def transform_state_approx(
1107
+ from_frame: frame,
1108
+ to_frame: frame,
1109
+ tm: time | datetime.datetime,
1110
+ pos: npt.ArrayLike,
1111
+ vel: npt.ArrayLike,
1112
+ ) -> tuple[npt.NDArray[np.float64], npt.NDArray[np.float64]]:
1113
+ """State transform using the IAU-76/FK5 approximate reduction. Same
1114
+ supported-pair set as :func:`transform_state`.
1115
+ """
1116
+ ...
@@ -10,7 +10,8 @@ import numpy as np
10
10
 
11
11
  import datetime
12
12
 
13
- from typing import Any, ClassVar, Optional, Union
13
+ from collections.abc import Sequence
14
+ from typing import Any, ClassVar, Optional, Union, overload
14
15
 
15
16
  class TLE:
16
17
  """Two-Line Element Set (TLE) representing a satellite ephemeris
@@ -56,15 +57,30 @@ class TLE:
56
57
  """
57
58
  ...
58
59
 
60
+ @overload
59
61
  @staticmethod
60
- def from_lines(lines: list[str]) -> list[TLE] | TLE:
62
+ def from_lines(lines: tuple[str, str]) -> TLE: ...
63
+ @overload
64
+ @staticmethod
65
+ def from_lines(lines: tuple[str, str, str]) -> TLE: ...
66
+ @overload
67
+ @staticmethod
68
+ def from_lines(lines: Sequence[str]) -> list[TLE] | TLE: ...
69
+ @staticmethod
70
+ def from_lines(lines: Sequence[str]) -> list[TLE] | TLE:
61
71
  """Return a list of TLES loaded from input list of lines
62
72
 
63
73
  If the file contains lines only represent a single TLE, the TLE will
64
- be output, rather than a list with a single TLE element
74
+ be output, rather than a list with a single TLE element.
75
+
76
+ A fixed-length tuple of 2 or 3 strings (the 2-line or name+2-line
77
+ form) is statically known to return a single ``TLE``; any other
78
+ sequence may return either ``TLE`` or ``list[TLE]`` depending on
79
+ how many TLEs the input contains.
65
80
 
66
81
  Args:
67
- lines (list[str]): list of strings with lines for TLE(s) to load
82
+ lines (Sequence[str]): sequence of strings with lines for TLE(s) to load
83
+ (any sequence type is accepted, e.g. list or tuple)
68
84
 
69
85
  Returns:
70
86
  a list of TLE objects or a single TLE if lines for
@@ -72,12 +88,12 @@ class TLE:
72
88
 
73
89
  Example:
74
90
  ```python
75
- lines = [
91
+ lines = (
76
92
  "0 ISS (ZARYA)",
77
93
  "1 25544U 98067A 21264.51782528 .00002893 00000-0 58680-4 0 9991",
78
- "2 25544 51.6442 208.5856 0001458 47.2277 50.1624 15.48919419302878"
79
- ]
80
- tle = satkit.TLE.from_lines(lines)
94
+ "2 25544 51.6442 208.5856 0001458 47.2277 50.1624 15.48919419302878",
95
+ )
96
+ tle = satkit.TLE.from_lines(lines) # statically typed as TLE
81
97
  print(tle.name)
82
98
  # ISS (ZARYA)
83
99
  ```
@@ -2464,39 +2480,50 @@ class itrfcoord:
2464
2480
  """
2465
2481
  ...
2466
2482
 
2467
- def to_enu(self, refcoord: itrfcoord) -> npt.NDArray[np.float64]:
2468
- """Return vector from reference coordinate to this coordinate in East-North-Up (ENU) frame of the reference coordinate
2483
+ def to_enu(self, origin: itrfcoord) -> npt.NDArray[np.float64]:
2484
+ """East-North-Up (ENU) vector from `origin` to `self`, in `origin`'s local-tangent frame.
2485
+
2486
+ The ENU triad has its origin at ``origin``; ``self`` is the point being
2487
+ located. The ``Up`` component is positive when ``self`` is above ``origin``
2488
+ along ``origin``'s local normal (further from Earth's center) — i.e.
2489
+ "what direction is ``self`` from where I'm standing at ``origin``?"
2469
2490
 
2470
2491
  Args:
2471
- refcoord (itrfcoord): Reference ITRF coordinate representing origin of ENU frame
2492
+ origin (itrfcoord): ITRF coordinate at which the ENU frame is
2493
+ anchored (the observer / station / base of the local tangent plane).
2472
2494
 
2473
2495
  Returns:
2474
- 3-element numpy array representing vector from reference coordinate to this coordinate in East-North-Up (ENU) frame of reference at the reference coordinate
2496
+ 3-element ``[E, N, U]`` vector from ``origin`` to ``self``, in meters.
2475
2497
 
2476
2498
  Notes:
2477
- - This is equivalent to calling: refcoord.qenu2itrf.conj * (self - refcoord)
2499
+ - This is equivalent to calling: origin.qenu2itrf.conj * (self - origin)
2478
2500
 
2479
2501
  Example:
2480
2502
  ```python
2481
- station = satkit.itrfcoord(latitude_deg=42.36, longitude_deg=-71.06, altitude=0)
2482
- target = satkit.itrfcoord(latitude_deg=42.37, longitude_deg=-71.06, altitude=1000)
2483
- enu = target.to_enu(station)
2503
+ station = satkit.itrfcoord(latitude_deg=42.466, longitude_deg=-71.1516, altitude=0)
2504
+ satellite = satkit.itrfcoord(latitude_deg=42.466, longitude_deg=-71.1516, altitude=400_000)
2505
+ enu = satellite.to_enu(station) # satellite is overhead → Up ≈ +400_000 m
2484
2506
  print(f"East: {enu[0]:.1f} m, North: {enu[1]:.1f} m, Up: {enu[2]:.1f} m")
2485
2507
  ```
2486
2508
  """
2487
2509
  ...
2488
2510
 
2489
- def to_ned(self, refcoord: itrfcoord) -> npt.NDArray[np.float64]:
2490
- """Return vector from reference coordinate to this coordinate in North-East-Down (NED) at the reference coordinate
2511
+ def to_ned(self, origin: itrfcoord) -> npt.NDArray[np.float64]:
2512
+ """North-East-Down (NED) vector from `origin` to `self`, in `origin`'s local-tangent frame.
2513
+
2514
+ The NED triad has its origin at ``origin``; ``self`` is the point being
2515
+ located. The ``Down`` component is positive when ``self`` is below
2516
+ ``origin`` along ``origin``'s local normal (closer to Earth's center).
2491
2517
 
2492
2518
  Args:
2493
- refcoord (itrfcoord): Reference ITRF coordinate representing origin of NED frame
2519
+ origin (itrfcoord): ITRF coordinate at which the NED frame is
2520
+ anchored (the observer / station / base of the local tangent plane).
2494
2521
 
2495
2522
  Returns:
2496
- 3-element numpy array representing vector from reference coordinate to this coordinate in North-East-Down (NED) frame of reference at the reference coordinate
2523
+ 3-element ``[N, E, D]`` vector from ``origin`` to ``self``, in meters.
2497
2524
 
2498
2525
  Notes:
2499
- - This is equivalent to calling: refcoord.qned2itrf.conj * (self - refcoord)
2526
+ - This is equivalent to calling: origin.qned2itrf.conj * (self - origin)
2500
2527
 
2501
2528
  """
2502
2529
  ...
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: satkit
3
- Version: 0.16.2
3
+ Version: 0.17.0
4
4
  Summary: Satellite Orbital Dynamics Toolkit
5
5
  Author-email: Steven Michael <ssmichael@gmail.com>
6
6
  Maintainer-email: Steven Michael <ssmichael@gmail.com>
7
- License-Expression: MIT
7
+ License-Expression: MIT OR Apache-2.0
8
8
  Keywords: satellite,orbit,astrodynamics,SGP4,TLE,JPL,Ephemeris
9
9
  Classifier: Development Status :: 4 - Beta
10
10
  Classifier: Programming Language :: Python :: 3.10
@@ -14,7 +14,8 @@ Classifier: Programming Language :: Python :: 3.13
14
14
  Classifier: Programming Language :: Python :: 3.14
15
15
  Requires-Python: >=3.10
16
16
  Description-Content-Type: text/markdown
17
- License-File: LICENSE
17
+ License-File: LICENSE-MIT
18
+ License-File: LICENSE-APACHE
18
19
  Requires-Dist: numpy>=1.0.0
19
20
  Requires-Dist: satkit-data>=0.7.0
20
21
  Provides-Extra: test
@@ -28,7 +29,7 @@ Dynamic: license-file
28
29
 
29
30
  ![Build](https://github.com/ssmichael1/satkit/actions/workflows/build.yml/badge.svg)
30
31
  ![Release](https://github.com/ssmichael1/satkit/actions/workflows/release.yml/badge.svg)
31
- ![License: MIT](https://img.shields.io/github/license/ssmichael1/satkit)
32
+ ![License: MIT OR Apache-2.0](https://img.shields.io/github/license/ssmichael1/satkit)
32
33
 
33
34
  [![Crates.io](https://img.shields.io/crates/v/satkit)](https://crates.io/crates/satkit)
34
35
  [![Crates.io Downloads](https://img.shields.io/crates/dr/satkit)](https://crates.io/crates/satkit)
@@ -244,4 +245,13 @@ SATKIT_DATA=astro-data SATKIT_TESTVEC_ROOT=satkit-testvecs pytest python/test/
244
245
 
245
246
  ## License
246
247
 
247
- MIT
248
+ Licensed under either of
249
+
250
+ - Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or <http://www.apache.org/licenses/LICENSE-2.0>)
251
+ - MIT license ([LICENSE-MIT](LICENSE-MIT) or <http://opensource.org/licenses/MIT>)
252
+
253
+ at your option.
254
+
255
+ ### Contribution
256
+
257
+ Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.