open-space-toolkit-physics 11.2.1__py313-none-manylinux2014_x86_64.whl → 12.0.0__py313-none-manylinux2014_x86_64.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. {open_space_toolkit_physics-11.2.1.dist-info → open_space_toolkit_physics-12.0.0.dist-info}/METADATA +3 -3
  2. {open_space_toolkit_physics-11.2.1.dist-info → open_space_toolkit_physics-12.0.0.dist-info}/RECORD +35 -13
  3. {open_space_toolkit_physics-11.2.1.dist-info → open_space_toolkit_physics-12.0.0.dist-info}/WHEEL +1 -1
  4. ostk/physics/OpenSpaceToolkitPhysicsPy.cpython-313-x86_64-linux-gnu.so +0 -0
  5. ostk/physics/__init__.pyi +488 -0
  6. ostk/physics/coordinate/__init__.pyi +1002 -0
  7. ostk/physics/coordinate/frame/__init__.pyi +30 -0
  8. ostk/physics/coordinate/frame/provider/__init__.pyi +77 -0
  9. ostk/physics/coordinate/frame/provider/iau.pyi +64 -0
  10. ostk/physics/coordinate/frame/provider/iers.pyi +584 -0
  11. ostk/physics/coordinate/spherical.pyi +421 -0
  12. ostk/physics/data/__init__.pyi +459 -0
  13. ostk/physics/data/provider.pyi +21 -0
  14. ostk/physics/environment/__init__.pyi +108 -0
  15. ostk/physics/environment/atmospheric/__init__.pyi +181 -0
  16. ostk/physics/environment/atmospheric/earth.pyi +552 -0
  17. ostk/physics/environment/gravitational/__init__.pyi +559 -0
  18. ostk/physics/environment/gravitational/earth.pyi +56 -0
  19. ostk/physics/environment/magnetic/__init__.pyi +171 -0
  20. ostk/physics/environment/magnetic/earth.pyi +56 -0
  21. ostk/physics/environment/object/__init__.pyi +430 -0
  22. ostk/physics/environment/object/celestial/__init__.pyi +248 -0
  23. ostk/physics/environment/object/celestial/moon.pyi +2 -0
  24. ostk/physics/environment/object/celestial/sun.pyi +2 -0
  25. ostk/physics/{libopen-space-toolkit-physics.so.11 → libopen-space-toolkit-physics.so.12} +0 -0
  26. ostk/physics/test/coordinate/frame/provider/iers/conftest.py +2 -5
  27. ostk/physics/test/coordinate/frame/provider/iers/test_bulletin_a.py +1 -4
  28. ostk/physics/test/coordinate/frame/provider/iers/test_finals_2000a.py +1 -4
  29. ostk/physics/test/coordinate/spherical/test_lla.py +24 -0
  30. ostk/physics/test/coordinate/test_position.py +129 -134
  31. ostk/physics/test/environment/atmospheric/earth/test_cssi_space_weather.py +11 -8
  32. ostk/physics/time.pyi +1744 -0
  33. ostk/physics/unit.pyi +1590 -0
  34. {open_space_toolkit_physics-11.2.1.dist-info → open_space_toolkit_physics-12.0.0.dist-info}/top_level.txt +0 -0
  35. {open_space_toolkit_physics-11.2.1.dist-info → open_space_toolkit_physics-12.0.0.dist-info}/zip-safe +0 -0
@@ -0,0 +1,421 @@
1
+ from __future__ import annotations
2
+ import numpy
3
+ import ostk.core.type
4
+ import ostk.physics.unit
5
+ import typing
6
+ __all__ = ['AER', 'LLA']
7
+ class AER:
8
+ """
9
+
10
+ Azimuth - Elevation - Range (AER).
11
+
12
+ """
13
+ __hash__: typing.ClassVar[None] = None
14
+ @staticmethod
15
+ def _pybind11_conduit_v1_(*args, **kwargs):
16
+ ...
17
+ @staticmethod
18
+ def from_position_to_position(from_position: typing.Any, to_position: typing.Any, is_z_negative: bool = True) -> AER:
19
+ """
20
+ Construct AER from position to position.
21
+
22
+ Args:
23
+ from_position (Position): From position.
24
+ to_position (Position): To position.
25
+ is_z_negative (bool): True if Z is negative.
26
+
27
+ Returns:
28
+ AER: AER.
29
+ """
30
+ @staticmethod
31
+ def undefined() -> AER:
32
+ """
33
+ Undefined AER.
34
+
35
+ Returns:
36
+ AER: Undefined AER.
37
+ """
38
+ @staticmethod
39
+ def vector(vector: numpy.ndarray[numpy.float64[3, 1]]) -> AER:
40
+ """
41
+ Construct AER from vector.
42
+
43
+ Args:
44
+ vector (np.ndarray): Vector.
45
+
46
+ Returns:
47
+ AER: AER.
48
+ """
49
+ def __eq__(self, arg0: AER) -> bool:
50
+ """
51
+ Equality operator.
52
+
53
+ Args:
54
+ other (AER): Other AER.
55
+
56
+ Returns:
57
+ bool: True if equal.
58
+ """
59
+ def __init__(self, azimuth: ostk.physics.unit.Angle, elevation: ostk.physics.unit.Angle, range: ostk.physics.unit.Length) -> None:
60
+ """
61
+ Construct an AER instance.
62
+
63
+ Args:
64
+ azimuth (Angle): Azimuth.
65
+ elevation (Angle): Elevation.
66
+ range (Length): Range.
67
+ """
68
+ def __ne__(self, arg0: AER) -> bool:
69
+ """
70
+ Inequality operator.
71
+
72
+ Args:
73
+ other (AER): Other AER.
74
+
75
+ Returns:
76
+ bool: True if not equal.
77
+ """
78
+ def __repr__(self) -> str:
79
+ ...
80
+ def __str__(self) -> str:
81
+ ...
82
+ def get_azimuth(self) -> ostk.physics.unit.Angle:
83
+ """
84
+ Get azimuth.
85
+
86
+ Returns:
87
+ Angle: Azimuth.
88
+ """
89
+ def get_elevation(self) -> ostk.physics.unit.Angle:
90
+ """
91
+ Get elevation.
92
+
93
+ Returns:
94
+ Angle: Elevation.
95
+ """
96
+ def get_range(self) -> ostk.physics.unit.Length:
97
+ """
98
+ Get range.
99
+
100
+ Returns:
101
+ Length: Range.
102
+ """
103
+ def is_defined(self) -> bool:
104
+ """
105
+ Check if defined.
106
+
107
+ Returns:
108
+ bool: True if defined.
109
+ """
110
+ def to_string(self) -> ostk.core.type.String:
111
+ """
112
+ Convert to string.
113
+
114
+ Returns:
115
+ String: String representation.
116
+ """
117
+ def to_vector(self) -> numpy.ndarray[numpy.float64[3, 1]]:
118
+ """
119
+ Convert to vector.
120
+
121
+ Returns:
122
+ np.ndarray: Vector.
123
+ """
124
+ class LLA:
125
+ """
126
+
127
+ Geodetic Latitude - Longitude - Altitude (LLA).
128
+
129
+ :reference: https://en.wikipedia.org/wiki/Latitude
130
+ :reference: https://en.wikipedia.org/wiki/Longitude
131
+
132
+ """
133
+ __hash__: typing.ClassVar[None] = None
134
+ @staticmethod
135
+ def _pybind11_conduit_v1_(*args, **kwargs):
136
+ ...
137
+ @staticmethod
138
+ def azimuth_between(lla_1: LLA, lla_2: LLA, ellipsoid_equatorial_radius: ostk.physics.unit.Length = ..., ellipsoid_flattening: ostk.core.type.Real = ...) -> tuple[ostk.physics.unit.Angle, ostk.physics.unit.Angle]:
139
+ """
140
+ Calculate the azimuth angles between two LLA coordinates.
141
+ If ellipsoid parameters are not provided, values from the global Environment central celestial are used.
142
+
143
+ Args:
144
+ lla_1 (LLA): First LLA coordinate.
145
+ lla_2 (LLA): Second LLA coordinate.
146
+ ellipsoid_equatorial_radius (Length): Equatorial radius of the ellipsoid.
147
+ ellipsoid_flattening (float): Flattening of the ellipsoid.
148
+
149
+ Returns:
150
+ Angle: Azimuth.
151
+ """
152
+ @staticmethod
153
+ def cartesian(cartesian_coordinates: numpy.ndarray[numpy.float64[3, 1]], ellipsoid_equatorial_radius: ostk.physics.unit.Length = ..., ellipsoid_flattening: ostk.core.type.Real = ...) -> LLA:
154
+ """
155
+ Construct LLA from Cartesian.
156
+ If ellipsoid parameters are not provided, values from the global Environment central celestial are used.
157
+
158
+ Args:
159
+ cartesian_coordinates (np.ndarray): Cartesian coordinates.
160
+ ellipsoid_equatorial_radius (Length): Equatorial radius of the ellipsoid.
161
+ ellipsoid_flattening (float): Flattening of the ellipsoid.
162
+
163
+ Returns:
164
+ LLA: LLA.
165
+ """
166
+ @staticmethod
167
+ def distance_between(lla_1: LLA, lla_2: LLA, ellipsoid_equatorial_radius: ostk.physics.unit.Length = ..., ellipsoid_flattening: ostk.core.type.Real = ...) -> ostk.physics.unit.Length:
168
+ """
169
+ Calculate the distance between two LLA coordinates.
170
+ If ellipsoid parameters are not provided, values from the global Environment central celestial are used.
171
+
172
+ Args:
173
+ lla_1 (LLA): First LLA coordinate.
174
+ lla_2 (LLA): Second LLA coordinate.
175
+ ellipsoid_equatorial_radius (Length): Equatorial radius of the ellipsoid.
176
+ ellipsoid_flattening (float): Flattening of the ellipsoid.
177
+
178
+ Returns:
179
+ Length: Distance.
180
+ """
181
+ @staticmethod
182
+ def forward(lla: LLA, azimuth: ostk.physics.unit.Angle, distance: ostk.physics.unit.Length, ellipsoid_equatorial_radius: ostk.physics.unit.Length = ..., ellipsoid_flattening: ostk.core.type.Real = ...) -> LLA:
183
+ """
184
+ Propagate an LLA coordinate in provided direction and distance.
185
+ If ellipsoid parameters are not provided, values from the global Environment central celestial are used.
186
+
187
+ Args:
188
+ lla (LLA): LLA coordinate.
189
+ azimuth (Angle): Azimuth.
190
+ distance (Length): Distance.
191
+ ellipsoid_equatorial_radius (Length): Equatorial radius of the ellipsoid.
192
+ ellipsoid_flattening (float): Flattening of the ellipsoid.
193
+
194
+ Returns:
195
+ LLA: Propagated LLA coordinate.
196
+ """
197
+ @staticmethod
198
+ def from_position(position: typing.Any, celestial: typing.Any = None) -> LLA:
199
+ """
200
+ Construct LLA from position.
201
+
202
+ Args:
203
+ position (Position): Position.
204
+ celestial (Celestial): Celestial object. Defaults to None, in which case, values from the global Environment central celestial are used.
205
+
206
+ Returns:
207
+ LLA: LLA.
208
+ """
209
+ @staticmethod
210
+ def intermediate_between(lla_1: LLA, lla_2: LLA, ratio: ostk.core.type.Real, ellipsoid_equatorial_radius: ostk.physics.unit.Length = ..., ellipsoid_flattening: ostk.core.type.Real = ...) -> LLA:
211
+ """
212
+ Calculate a point between two LLA coordinates.
213
+ If ellipsoid parameters are not provided, values from the global Environment central celestial are used.
214
+
215
+ Args:
216
+ lla_1 (LLA): First LLA coordinate.
217
+ lla_2 (LLA): Second LLA coordinate.
218
+ ratio (Real): Ratio.
219
+ ellipsoid_equatorial_radius (Length): Equatorial radius of the ellipsoid.
220
+ ellipsoid_flattening (float): Flattening of the ellipsoid.
221
+
222
+ Returns:
223
+ LLA: A point between the two LLA coordinates.
224
+ """
225
+ @staticmethod
226
+ def linspace(lla_1: LLA, lla_2: LLA, number_of_points: int, ellipsoid_equatorial_radius: ostk.physics.unit.Length = ..., ellipsoid_flattening: ostk.core.type.Real = ...) -> list[LLA]:
227
+ """
228
+ Generate LLAs between two LLA coordinates at a given interval.
229
+ If ellipsoid parameters are not provided, values from the global Environment central celestial are used.
230
+
231
+ Args:
232
+ lla_1 (LLA): First LLA coordinate.
233
+ lla_2 (LLA): Second LLA coordinate.
234
+ number_of_points (Size): Number of points.
235
+ ellipsoid_equatorial_radius (Length): Equatorial radius of the ellipsoid.
236
+ ellipsoid_flattening (float): Flattening of the ellipsoid.
237
+
238
+ Returns:
239
+ list[LLA]: List of LLA coordinates.
240
+ """
241
+ @staticmethod
242
+ def undefined() -> LLA:
243
+ """
244
+ Undefined LLA.
245
+
246
+ Returns:
247
+ LLA: Undefined LLA.
248
+ """
249
+ @staticmethod
250
+ def vector(vector: numpy.ndarray[numpy.float64[3, 1]]) -> LLA:
251
+ """
252
+ Construct LLA from vector.
253
+
254
+ Args:
255
+ vector (np.ndarray): Vector.
256
+
257
+ Returns:
258
+ LLA: LLA.
259
+ """
260
+ def __eq__(self, arg0: LLA) -> bool:
261
+ """
262
+ Equality operator.
263
+
264
+ Args:
265
+ other (LLA): Other LLA.
266
+
267
+ Returns:
268
+ bool: True if equal.
269
+ """
270
+ def __init__(self, latitude: ostk.physics.unit.Angle, longitude: ostk.physics.unit.Angle, altitude: ostk.physics.unit.Length) -> None:
271
+ """
272
+ Construct an LLA instance.
273
+
274
+ Args:
275
+ latitude (Angle): Latitude.
276
+ longitude (Angle): Longitude.
277
+ altitude (Length): Altitude.
278
+ """
279
+ def __ne__(self, arg0: LLA) -> bool:
280
+ """
281
+ Inequality operator.
282
+
283
+ Args:
284
+ other (LLA): Other LLA.
285
+
286
+ Returns:
287
+ bool: True if not equal.
288
+ """
289
+ def __repr__(self) -> str:
290
+ ...
291
+ def __str__(self) -> str:
292
+ ...
293
+ def calculate_azimuth_to(self, lla: LLA, ellipsoid_equatorial_radius: ostk.physics.unit.Length = ..., ellipsoid_flattening: ostk.core.type.Real = ...) -> tuple[ostk.physics.unit.Angle, ostk.physics.unit.Angle]:
294
+ """
295
+ Calculate the azimuth angles between this LLA coordinate and another LLA coordinate.
296
+ If ellipsoid parameters are not provided, values from the global Environment central celestial are used.
297
+
298
+ Args:
299
+ lla (LLA): Another LLA coordinate.
300
+ ellipsoid_equatorial_radius (Length): Equatorial radius of the ellipsoid.
301
+ ellipsoid_flattening (float): Flattening of the ellipsoid.
302
+
303
+ Returns:
304
+ Angle: Azimuth.
305
+ """
306
+ def calculate_distance_to(self, lla: LLA, ellipsoid_equatorial_radius: ostk.physics.unit.Length = ..., ellipsoid_flattening: ostk.core.type.Real = ...) -> ostk.physics.unit.Length:
307
+ """
308
+ Calculate the distance between this LLA coordinate and another LLA coordinate.
309
+ If ellipsoid parameters are not provided, values from the global Environment central celestial are used.
310
+
311
+ Args:
312
+ lla (LLA): Another LLA coordinate.
313
+ ellipsoid_equatorial_radius (Length): Equatorial radius of the ellipsoid.
314
+ ellipsoid_flattening (float): Flattening of the ellipsoid.
315
+
316
+ Returns:
317
+ Length: Distance.
318
+ """
319
+ def calculate_forward(self, azimuth: ostk.physics.unit.Angle, distance: ostk.physics.unit.Length, ellipsoid_equatorial_radius: ostk.physics.unit.Length = ..., ellipsoid_flattening: ostk.core.type.Real = ...) -> LLA:
320
+ """
321
+ Propagate this LLA coordinate in provided direction and distance.
322
+ If ellipsoid parameters are not provided, values from the global Environment central celestial are used.
323
+
324
+ Args:
325
+ azimuth (Angle): Azimuth.
326
+ distance (Length): Distance.
327
+ ellipsoid_equatorial_radius (Length): Equatorial radius of the ellipsoid.
328
+ ellipsoid_flattening (float): Flattening of the ellipsoid.
329
+
330
+ Returns:
331
+ LLA: Propagated LLA coordinate.
332
+ """
333
+ def calculate_intermediate_to(self, lla: LLA, ratio: ostk.core.type.Real, ellipsoid_equatorial_radius: ostk.physics.unit.Length = ..., ellipsoid_flattening: ostk.core.type.Real = ...) -> LLA:
334
+ """
335
+ Calculate a point between this LLA coordinate and another LLA coordinate.
336
+ If ellipsoid parameters are not provided, values from the global Environment central celestial are used.
337
+
338
+ Args:
339
+ lla (LLA): Another LLA coordinate.
340
+ ratio (Real): Ratio.
341
+ ellipsoid_equatorial_radius (Length): Equatorial radius of the ellipsoid.
342
+ ellipsoid_flattening (float): Flattening of the ellipsoid.
343
+
344
+ Returns:
345
+ LLA: A point between the two LLA coordinates.
346
+ """
347
+ def calculate_linspace_to(self, lla: LLA, number_of_points: int, ellipsoid_equatorial_radius: ostk.physics.unit.Length = ..., ellipsoid_flattening: ostk.core.type.Real = ...) -> list[LLA]:
348
+ """
349
+ Generate LLAs between this LLA coordinate and another LLA coordinate at a given interval.
350
+ If ellipsoid parameters are not provided, values from the global Environment central celestial are used.
351
+
352
+ Args:
353
+ lla (LLA): Another LLA coordinate.
354
+ number_of_points (Size): Number of points.
355
+ ellipsoid_equatorial_radius (Length): Equatorial radius of the ellipsoid.
356
+ ellipsoid_flattening (float): Flattening of the ellipsoid.
357
+
358
+ Returns:
359
+ list[LLA]: List of LLA coordinates.
360
+ """
361
+ def get_altitude(self) -> ostk.physics.unit.Length:
362
+ """
363
+ Get altitude.
364
+
365
+ Returns:
366
+ Length: Altitude.
367
+ """
368
+ def get_latitude(self) -> ostk.physics.unit.Angle:
369
+ """
370
+ Get latitude.
371
+
372
+ Returns:
373
+ Angle: Latitude.
374
+ """
375
+ def get_longitude(self) -> ostk.physics.unit.Angle:
376
+ """
377
+ Get longitude.
378
+
379
+ Returns:
380
+ Angle: Longitude.
381
+ """
382
+ def is_defined(self) -> bool:
383
+ """
384
+ Check if defined.
385
+
386
+ Returns:
387
+ bool: True if defined.
388
+ """
389
+ def on_surface(self) -> LLA:
390
+ """
391
+ Get LLA on surface (Altitude is 0.0).
392
+
393
+ Returns:
394
+ LLA: LLA on surface.
395
+ """
396
+ def to_cartesian(self, ellipsoid_equatorial_radius: ostk.physics.unit.Length = ..., ellipsoid_flattening: ostk.core.type.Real = ...) -> numpy.ndarray[numpy.float64[3, 1]]:
397
+ """
398
+ Convert to Cartesian.
399
+ If ellipsoid parameters are not provided, values from the global Environment central celestial are used.
400
+
401
+ Args:
402
+ ellipsoid_equatorial_radius (Length): Equatorial radius of the ellipsoid.
403
+ ellipsoid_flattening (float): Flattening of the ellipsoid.
404
+
405
+ Returns:
406
+ np.ndarray: Cartesian.
407
+ """
408
+ def to_string(self) -> ostk.core.type.String:
409
+ """
410
+ Convert to string.
411
+
412
+ Returns:
413
+ String: String representation.
414
+ """
415
+ def to_vector(self) -> numpy.ndarray[numpy.float64[3, 1]]:
416
+ """
417
+ Convert to vector.
418
+
419
+ Returns:
420
+ np.ndarray: Vector.
421
+ """