open-space-toolkit-physics 11.3.0__py312-none-manylinux2014_aarch64.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. open_space_toolkit_physics-11.3.0.dist-info/METADATA +29 -0
  2. open_space_toolkit_physics-11.3.0.dist-info/RECORD +104 -0
  3. open_space_toolkit_physics-11.3.0.dist-info/WHEEL +5 -0
  4. open_space_toolkit_physics-11.3.0.dist-info/top_level.txt +1 -0
  5. open_space_toolkit_physics-11.3.0.dist-info/zip-safe +1 -0
  6. ostk/__init__.py +1 -0
  7. ostk/physics/OpenSpaceToolkitPhysicsPy.cpython-312-aarch64-linux-gnu.so +0 -0
  8. ostk/physics/__init__.py +6 -0
  9. ostk/physics/__init__.pyi +488 -0
  10. ostk/physics/coordinate/__init__.pyi +1002 -0
  11. ostk/physics/coordinate/frame/__init__.pyi +30 -0
  12. ostk/physics/coordinate/frame/provider/__init__.pyi +77 -0
  13. ostk/physics/coordinate/frame/provider/iau.pyi +64 -0
  14. ostk/physics/coordinate/frame/provider/iers.pyi +584 -0
  15. ostk/physics/coordinate/spherical.pyi +421 -0
  16. ostk/physics/data/__init__.pyi +459 -0
  17. ostk/physics/data/provider.pyi +21 -0
  18. ostk/physics/environment/__init__.pyi +108 -0
  19. ostk/physics/environment/atmospheric/__init__.pyi +181 -0
  20. ostk/physics/environment/atmospheric/earth.pyi +552 -0
  21. ostk/physics/environment/gravitational/__init__.pyi +559 -0
  22. ostk/physics/environment/gravitational/earth.pyi +56 -0
  23. ostk/physics/environment/magnetic/__init__.pyi +171 -0
  24. ostk/physics/environment/magnetic/earth.pyi +56 -0
  25. ostk/physics/environment/object/__init__.pyi +430 -0
  26. ostk/physics/environment/object/celestial/__init__.pyi +248 -0
  27. ostk/physics/environment/object/celestial/moon.pyi +2 -0
  28. ostk/physics/environment/object/celestial/sun.pyi +2 -0
  29. ostk/physics/libopen-space-toolkit-physics.so.11 +0 -0
  30. ostk/physics/py.typed +0 -0
  31. ostk/physics/test/__init__.py +1 -0
  32. ostk/physics/test/coordinate/__init__.py +1 -0
  33. ostk/physics/test/coordinate/frame/__init__.py +1 -0
  34. ostk/physics/test/coordinate/frame/provider/__init__.py +1 -0
  35. ostk/physics/test/coordinate/frame/provider/iers/__init__.py +1 -0
  36. ostk/physics/test/coordinate/frame/provider/iers/conftest.py +38 -0
  37. ostk/physics/test/coordinate/frame/provider/iers/data/finals2000A.data +10953 -0
  38. ostk/physics/test/coordinate/frame/provider/iers/data/ser7.dat +524 -0
  39. ostk/physics/test/coordinate/frame/provider/iers/test_bulletin_a.py +108 -0
  40. ostk/physics/test/coordinate/frame/provider/iers/test_finals_2000a.py +93 -0
  41. ostk/physics/test/coordinate/frame/provider/iers/test_manager.py +205 -0
  42. ostk/physics/test/coordinate/spherical/__init__.py +1 -0
  43. ostk/physics/test/coordinate/spherical/test_aer.py +143 -0
  44. ostk/physics/test/coordinate/spherical/test_lla.py +514 -0
  45. ostk/physics/test/coordinate/test_axes.py +116 -0
  46. ostk/physics/test/coordinate/test_frame.py +107 -0
  47. ostk/physics/test/coordinate/test_position.py +201 -0
  48. ostk/physics/test/coordinate/test_transform.py +294 -0
  49. ostk/physics/test/coordinate/test_velocity.py +180 -0
  50. ostk/physics/test/data/conftest.py +34 -0
  51. ostk/physics/test/data/data/manifest.json +22 -0
  52. ostk/physics/test/data/provider/test_provider.py +34 -0
  53. ostk/physics/test/data/test_direction.py +40 -0
  54. ostk/physics/test/data/test_manifest.py +43 -0
  55. ostk/physics/test/data/test_manifest_manager.py +62 -0
  56. ostk/physics/test/data/test_scalar.py +54 -0
  57. ostk/physics/test/data/test_vector.py +70 -0
  58. ostk/physics/test/environment/__init__.py +1 -0
  59. ostk/physics/test/environment/atmospheric/__init__.py +1 -0
  60. ostk/physics/test/environment/atmospheric/earth/__init__.py +1 -0
  61. ostk/physics/test/environment/atmospheric/earth/conftest.py +67 -0
  62. ostk/physics/test/environment/atmospheric/earth/data/SW-Last5Years.test.csv +22 -0
  63. ostk/physics/test/environment/atmospheric/earth/data/SpaceWeather-All-v1.2.test.txt +811 -0
  64. ostk/physics/test/environment/atmospheric/earth/test_cssi_space_weather.py +126 -0
  65. ostk/physics/test/environment/atmospheric/earth/test_exponential.py +34 -0
  66. ostk/physics/test/environment/atmospheric/earth/test_manager.py +173 -0
  67. ostk/physics/test/environment/atmospheric/earth/test_nrlmsise00.py +34 -0
  68. ostk/physics/test/environment/atmospheric/test_earth.py +141 -0
  69. ostk/physics/test/environment/gravitational/__init__.py +1 -0
  70. ostk/physics/test/environment/gravitational/earth/__init__.py +1 -0
  71. ostk/physics/test/environment/gravitational/earth/test_manager.py +76 -0
  72. ostk/physics/test/environment/gravitational/test_earth.py +103 -0
  73. ostk/physics/test/environment/gravitational/test_moon.py +55 -0
  74. ostk/physics/test/environment/gravitational/test_spherical.py +36 -0
  75. ostk/physics/test/environment/gravitational/test_sun.py +53 -0
  76. ostk/physics/test/environment/magnetic/__init__.py +1 -0
  77. ostk/physics/test/environment/magnetic/earth/test_manager.py +64 -0
  78. ostk/physics/test/environment/magnetic/test_earth.py +38 -0
  79. ostk/physics/test/environment/object/__init__.py +1 -0
  80. ostk/physics/test/environment/object/celestial/__init__ .py +1 -0
  81. ostk/physics/test/environment/object/celestial/test_earth.py +174 -0
  82. ostk/physics/test/environment/object/celestial/test_moon.py +17 -0
  83. ostk/physics/test/environment/object/celestial/test_sun.py +17 -0
  84. ostk/physics/test/environment/object/test_celestial.py +12 -0
  85. ostk/physics/test/test_environment.py +97 -0
  86. ostk/physics/test/test_import.py +25 -0
  87. ostk/physics/test/time/__init__.py +1 -0
  88. ostk/physics/test/time/test_date.py +136 -0
  89. ostk/physics/test/time/test_date_time.py +230 -0
  90. ostk/physics/test/time/test_duration.py +215 -0
  91. ostk/physics/test/time/test_instant.py +103 -0
  92. ostk/physics/test/time/test_interval.py +432 -0
  93. ostk/physics/test/time/test_scale.py +11 -0
  94. ostk/physics/test/time/test_time.py +114 -0
  95. ostk/physics/test/unit/__init__.py +1 -0
  96. ostk/physics/test/unit/derived/__init__.py +1 -0
  97. ostk/physics/test/unit/derived/test_angle.py +368 -0
  98. ostk/physics/test/unit/test_derived.py +152 -0
  99. ostk/physics/test/unit/test_electric_current.py +5 -0
  100. ostk/physics/test/unit/test_length.py +297 -0
  101. ostk/physics/test/unit/test_mass.py +141 -0
  102. ostk/physics/test/unit/test_time.py +101 -0
  103. ostk/physics/time.pyi +1744 -0
  104. ostk/physics/unit.pyi +1590 -0
@@ -0,0 +1,559 @@
1
+ from __future__ import annotations
2
+ import numpy
3
+ import ostk.core.filesystem
4
+ import ostk.core.type
5
+ import ostk.physics.time
6
+ import ostk.physics.unit
7
+ import typing
8
+ from . import earth
9
+ __all__ = ['Earth', 'GravitationalParameters', 'Model', 'Moon', 'Spherical', 'Sun', 'earth']
10
+ class Earth(Model):
11
+ """
12
+
13
+ Earth gravitational model.
14
+
15
+ The gravitational potential is expanded as sum of spherical harmonics.
16
+
17
+ :reference: https://en.wikipedia.org/wiki/Spherical_harmonics
18
+ :reference: https://geographiclib.sourceforge.io/html/gravity.html
19
+
20
+ """
21
+ class Type:
22
+ """
23
+ Members:
24
+
25
+ Undefined :
26
+ Undefined.
27
+
28
+
29
+ Spherical :
30
+ The spherical gravity originating from a point source at the center of the Earth.
31
+
32
+
33
+ WGS84 :
34
+ The normal gravitational field for the reference ellipsoid. This includes the zonal coefficients up to order 20.
35
+
36
+
37
+ EGM84 :
38
+ The Earth Gravity Model 1984, which includes terms up to degree 180.
39
+
40
+
41
+ WGS84_EGM96 :
42
+ The normal gravitational field for the reference ellipsoid plus the Earth Gravity Model 1996,
43
+ which includes terms up to degree 360.
44
+
45
+
46
+ EGM96 :
47
+ The Earth Gravity Model 1996, which includes terms up to degree 360.
48
+
49
+
50
+ EGM2008 :
51
+ The Earth Gravity Model 2008, which includes terms up to degree 2190.
52
+
53
+ """
54
+ EGM2008: typing.ClassVar[Earth.Type] # value = <Type.EGM2008: 6>
55
+ EGM84: typing.ClassVar[Earth.Type] # value = <Type.EGM84: 3>
56
+ EGM96: typing.ClassVar[Earth.Type] # value = <Type.EGM96: 5>
57
+ Spherical: typing.ClassVar[Earth.Type] # value = <Type.Spherical: 1>
58
+ Undefined: typing.ClassVar[Earth.Type] # value = <Type.Undefined: 0>
59
+ WGS84: typing.ClassVar[Earth.Type] # value = <Type.WGS84: 2>
60
+ WGS84_EGM96: typing.ClassVar[Earth.Type] # value = <Type.WGS84_EGM96: 4>
61
+ __members__: typing.ClassVar[dict[str, Earth.Type]] # value = {'Undefined': <Type.Undefined: 0>, 'Spherical': <Type.Spherical: 1>, 'WGS84': <Type.WGS84: 2>, 'EGM84': <Type.EGM84: 3>, 'WGS84_EGM96': <Type.WGS84_EGM96: 4>, 'EGM96': <Type.EGM96: 5>, 'EGM2008': <Type.EGM2008: 6>}
62
+ @staticmethod
63
+ def _pybind11_conduit_v1_(*args, **kwargs):
64
+ ...
65
+ def __eq__(self, other: typing.Any) -> bool:
66
+ ...
67
+ def __getstate__(self) -> int:
68
+ ...
69
+ def __hash__(self) -> int:
70
+ ...
71
+ def __index__(self) -> int:
72
+ ...
73
+ def __init__(self, value: int) -> None:
74
+ ...
75
+ def __int__(self) -> int:
76
+ ...
77
+ def __ne__(self, other: typing.Any) -> bool:
78
+ ...
79
+ def __repr__(self) -> str:
80
+ ...
81
+ def __setstate__(self, state: int) -> None:
82
+ ...
83
+ def __str__(self) -> str:
84
+ ...
85
+ @property
86
+ def name(self) -> str:
87
+ ...
88
+ @property
89
+ def value(self) -> int:
90
+ ...
91
+ EGM2008: typing.ClassVar[GravitationalParameters] # value = -- Gravitational Model Parameters ------------------------------------------------------------------...
92
+ EGM84: typing.ClassVar[GravitationalParameters] # value = -- Gravitational Model Parameters ------------------------------------------------------------------...
93
+ EGM96: typing.ClassVar[GravitationalParameters] # value = -- Gravitational Model Parameters ------------------------------------------------------------------...
94
+ WGS84: typing.ClassVar[GravitationalParameters] # value = -- Gravitational Model Parameters ------------------------------------------------------------------...
95
+ WGS84_EGM96: typing.ClassVar[GravitationalParameters] # value = -- Gravitational Model Parameters ------------------------------------------------------------------...
96
+ gravity_constant: typing.ClassVar[float] = 9.80665
97
+ spherical: typing.ClassVar[GravitationalParameters] # value = -- Gravitational Model Parameters ------------------------------------------------------------------...
98
+ @staticmethod
99
+ def _pybind11_conduit_v1_(*args, **kwargs):
100
+ ...
101
+ @typing.overload
102
+ def __init__(self, type: ..., directory: ostk.core.filesystem.Directory) -> None:
103
+ """
104
+ Construct an Earth gravitational model.
105
+
106
+ Args:
107
+ type (Earth.Type): Earth model type.
108
+ directory (Directory): Directory containing the gravity model data files.
109
+ """
110
+ @typing.overload
111
+ def __init__(self, type: ...) -> None:
112
+ """
113
+ Construct an Earth gravitational model.
114
+
115
+ Args:
116
+ type (Earth.Type): Earth model type.
117
+ """
118
+ @typing.overload
119
+ def __init__(self, type: ..., directory: ostk.core.filesystem.Directory, gravitational_model_degree: ostk.core.type.Integer, gravitational_model_order: ostk.core.type.Integer) -> None:
120
+ """
121
+ Construct an Earth gravitational model.
122
+
123
+ Args:
124
+ type (Earth.Type): Earth model type.
125
+ directory (Directory): Directory containing the gravity model data files.
126
+ gravitational_model_degree (int): Degree of the gravitational model.
127
+ gravitational_model_order (int): Order of the gravitational model.
128
+ """
129
+ @typing.overload
130
+ def __init__(self, type: ..., gravitational_model_degree: ostk.core.type.Integer, gravitational_model_order: ostk.core.type.Integer) -> None:
131
+ """
132
+ Construct an Earth gravitational model.
133
+
134
+ Args:
135
+ type (Earth.Type): Earth model type.
136
+ gravitational_model_degree (int): Degree of the gravitational model.
137
+ gravitational_model_order (int): Order of the gravitational model.
138
+ """
139
+ def get_degree(self) -> ostk.core.type.Integer:
140
+ """
141
+ Get the Earth model degree.
142
+
143
+ Returns:
144
+ int: Earth model degree.
145
+ """
146
+ def get_field_value_at(self, position: numpy.ndarray[numpy.float64[3, 1]], instant: ostk.physics.time.Instant) -> numpy.ndarray[numpy.float64[3, 1]]:
147
+ """
148
+ Get the gravitational field value at a given position and instant.
149
+
150
+ Args:
151
+ position (Position): A position.
152
+ instant (Instant): An instant.
153
+
154
+ Returns:
155
+ np.ndarray: Gravitational field value [m.s^-2].
156
+ """
157
+ def get_order(self) -> ostk.core.type.Integer:
158
+ """
159
+ Get the Earth model order.
160
+
161
+ Returns:
162
+ int: Earth model order.
163
+ """
164
+ def get_type(self) -> ...:
165
+ """
166
+ Get the Earth model type.
167
+
168
+ Returns:
169
+ Earth.Type: Earth model type.
170
+ """
171
+ def is_defined(self) -> bool:
172
+ """
173
+ Check if the Earth model is defined.
174
+
175
+ Returns:
176
+ bool: True if the model is defined.
177
+ """
178
+ class GravitationalParameters:
179
+ """
180
+
181
+ Gravitational model parameters.
182
+
183
+
184
+ """
185
+ __hash__: typing.ClassVar[None] = None
186
+ @staticmethod
187
+ def _pybind11_conduit_v1_(*args, **kwargs):
188
+ ...
189
+ @staticmethod
190
+ def undefined() -> GravitationalParameters:
191
+ """
192
+ Get undefined parameters.
193
+
194
+ Returns:
195
+ GravitationalParameters: Undefined parameters.
196
+ """
197
+ def __eq__(self, arg0: GravitationalParameters) -> bool:
198
+ """
199
+ Equal to operator
200
+
201
+ Args:
202
+ other (GravitationalParameters): Other parameters.
203
+
204
+ Returns:
205
+ bool: True if equal
206
+ """
207
+ @typing.overload
208
+ def __init__(self, gravitational_parameter: ostk.physics.unit.Derived, equatorial_radius: ostk.physics.unit.Length, flattening: ostk.core.type.Real, C20: ostk.core.type.Real, C40: ostk.core.type.Real) -> None:
209
+ """
210
+ Constructor.
211
+
212
+ Args:
213
+ gravitational_parameter (Derived): Gravitational parameter [m^3/s^2].
214
+ equatorial_radius (Length): Equatorial radius [m].
215
+ flattening (Real): Flattening.
216
+ C20 (Real): C20.
217
+ C40 (Real): C40.
218
+ """
219
+ @typing.overload
220
+ def __init__(self, gravitational_parameter: ostk.physics.unit.Derived, equatorial_radius: ostk.physics.unit.Length, flattening: ostk.core.type.Real, C20: ostk.core.type.Real, C30: ostk.core.type.Real, C40: ostk.core.type.Real) -> None:
221
+ """
222
+ Constructor.
223
+
224
+ Args:
225
+ gravitational_parameter (Derived): Gravitational parameter [m^3/s^2].
226
+ equatorial_radius (Length): Equatorial radius [m].
227
+ flattening (Real): Flattening.
228
+ C20 (Real): C20.
229
+ C30 (Real): C30.
230
+ C40 (Real): C40.
231
+ """
232
+ def __ne__(self, arg0: GravitationalParameters) -> bool:
233
+ """
234
+ Not equal to operator
235
+
236
+ Args:
237
+ other (GravitationalParameters): Other parameters.
238
+
239
+ Returns:
240
+ bool: True if not equal
241
+ """
242
+ def __repr__(self) -> str:
243
+ ...
244
+ def __str__(self) -> str:
245
+ ...
246
+ def is_defined(self) -> bool:
247
+ """
248
+ Check if the parameters are defined.
249
+
250
+ Returns:
251
+ bool: True if defined.
252
+ """
253
+ @property
254
+ def C20(self) -> ostk.core.type.Real:
255
+ """
256
+ C20.
257
+ """
258
+ @C20.setter
259
+ def C20(self, arg0: ostk.core.type.Real) -> None:
260
+ ...
261
+ @property
262
+ def C30(self) -> ostk.core.type.Real:
263
+ """
264
+ C30.
265
+ """
266
+ @C30.setter
267
+ def C30(self, arg0: ostk.core.type.Real) -> None:
268
+ ...
269
+ @property
270
+ def C40(self) -> ostk.core.type.Real:
271
+ """
272
+ C40.
273
+ """
274
+ @C40.setter
275
+ def C40(self, arg0: ostk.core.type.Real) -> None:
276
+ ...
277
+ @property
278
+ def J2(self) -> ostk.core.type.Real:
279
+ """
280
+ J2.
281
+ """
282
+ @J2.setter
283
+ def J2(self, arg0: ostk.core.type.Real) -> None:
284
+ ...
285
+ @property
286
+ def J3(self) -> ostk.core.type.Real:
287
+ """
288
+ J3.
289
+ """
290
+ @J3.setter
291
+ def J3(self, arg0: ostk.core.type.Real) -> None:
292
+ ...
293
+ @property
294
+ def J4(self) -> ostk.core.type.Real:
295
+ """
296
+ J4.
297
+ """
298
+ @J4.setter
299
+ def J4(self, arg0: ostk.core.type.Real) -> None:
300
+ ...
301
+ @property
302
+ def equatorial_radius(self) -> ostk.physics.unit.Length:
303
+ """
304
+ Equatorial radius [m].
305
+ """
306
+ @equatorial_radius.setter
307
+ def equatorial_radius(self, arg0: ostk.physics.unit.Length) -> None:
308
+ ...
309
+ @property
310
+ def flattening(self) -> ostk.core.type.Real:
311
+ """
312
+ Flattening.
313
+ """
314
+ @flattening.setter
315
+ def flattening(self, arg0: ostk.core.type.Real) -> None:
316
+ ...
317
+ @property
318
+ def gravitational_parameter(self) -> ostk.physics.unit.Derived:
319
+ """
320
+ Gravitational parameter [m^3/s^2].
321
+ """
322
+ @gravitational_parameter.setter
323
+ def gravitational_parameter(self, arg0: ostk.physics.unit.Derived) -> None:
324
+ ...
325
+ class Model:
326
+ """
327
+
328
+ Earth Gravitational model.
329
+
330
+ """
331
+ @staticmethod
332
+ def _pybind11_conduit_v1_(*args, **kwargs):
333
+ ...
334
+ def get_parameters(self) -> ...:
335
+ ...
336
+ class Moon(Model):
337
+ """
338
+
339
+ Moon gravitational model.
340
+
341
+ The gravitational potential of the Moon for now is kept as a simple spherical model.
342
+
343
+ """
344
+ class Type:
345
+ """
346
+ Members:
347
+
348
+ Undefined :
349
+ Undefined Moon model type.
350
+
351
+
352
+ Spherical :
353
+ Spherical Moon model type.
354
+
355
+ """
356
+ Spherical: typing.ClassVar[Moon.Type] # value = <Type.Spherical: 1>
357
+ Undefined: typing.ClassVar[Moon.Type] # value = <Type.Undefined: 0>
358
+ __members__: typing.ClassVar[dict[str, Moon.Type]] # value = {'Undefined': <Type.Undefined: 0>, 'Spherical': <Type.Spherical: 1>}
359
+ @staticmethod
360
+ def _pybind11_conduit_v1_(*args, **kwargs):
361
+ ...
362
+ def __eq__(self, other: typing.Any) -> bool:
363
+ ...
364
+ def __getstate__(self) -> int:
365
+ ...
366
+ def __hash__(self) -> int:
367
+ ...
368
+ def __index__(self) -> int:
369
+ ...
370
+ def __init__(self, value: int) -> None:
371
+ ...
372
+ def __int__(self) -> int:
373
+ ...
374
+ def __ne__(self, other: typing.Any) -> bool:
375
+ ...
376
+ def __repr__(self) -> str:
377
+ ...
378
+ def __setstate__(self, state: int) -> None:
379
+ ...
380
+ def __str__(self) -> str:
381
+ ...
382
+ @property
383
+ def name(self) -> str:
384
+ ...
385
+ @property
386
+ def value(self) -> int:
387
+ ...
388
+ spherical: typing.ClassVar[GravitationalParameters] # value = -- Gravitational Model Parameters ------------------------------------------------------------------...
389
+ @staticmethod
390
+ def _pybind11_conduit_v1_(*args, **kwargs):
391
+ ...
392
+ @typing.overload
393
+ def __init__(self, type: ..., directory: ostk.core.filesystem.Directory) -> None:
394
+ """
395
+ Construct a Moon gravitational model.
396
+
397
+ Args:
398
+ type (Moon.Type): Moon model type.
399
+ directory (Directory): Directory containing the gravity model data files.
400
+ """
401
+ @typing.overload
402
+ def __init__(self, type: ...) -> None:
403
+ """
404
+ Construct a Moon gravitational model.
405
+
406
+ Args:
407
+ type (Moon.Type): Moon model type.
408
+ """
409
+ def get_field_value_at(self, position: numpy.ndarray[numpy.float64[3, 1]], instant: ostk.physics.time.Instant) -> numpy.ndarray[numpy.float64[3, 1]]:
410
+ """
411
+ Get the gravitational field value at a position.
412
+
413
+ Args:
414
+ position (np.ndarray): A position.
415
+ instant (Instant): An instant.
416
+
417
+ Returns:
418
+ np.ndarray: Gravitational field value.
419
+ """
420
+ def get_type(self) -> ...:
421
+ """
422
+ Get the Moon model type.
423
+
424
+ Returns:
425
+ Moon.Type: Moon model type.
426
+ """
427
+ def is_defined(self) -> bool:
428
+ """
429
+ Check if the Moon model is defined.
430
+
431
+ Returns:
432
+ bool: True if defined.
433
+ """
434
+ class Spherical(Model):
435
+ """
436
+
437
+ Spherical gravitational model.
438
+
439
+
440
+ """
441
+ @staticmethod
442
+ def _pybind11_conduit_v1_(*args, **kwargs):
443
+ ...
444
+ def __init__(self, gravitational_parameters: GravitationalParameters) -> None:
445
+ """
446
+ Construct a Spherical gravitational model.
447
+
448
+ Args:
449
+ gravitational_parameters (GravitationalParameters): Gravitational model parameters.
450
+ """
451
+ def get_field_value_at(self, position: numpy.ndarray[numpy.float64[3, 1]], instant: ostk.physics.time.Instant) -> numpy.ndarray[numpy.float64[3, 1]]:
452
+ """
453
+ Get the gravitational field value at a given position and instant.
454
+
455
+ Args:
456
+ position (np.ndarray): Position, expressed in the gravitational object frame [m].
457
+ instant (Instant): Instant.
458
+
459
+ Returns:
460
+ np.ndarray: Gravitational field value, expressed in the gravitational object frame [m.s-2].
461
+ """
462
+ def is_defined(self) -> bool:
463
+ """
464
+ Check if the Spherical gravitational model is defined.
465
+
466
+ Returns:
467
+ bool: True if the Spherical gravitational model is defined.
468
+ """
469
+ class Sun(Model):
470
+ """
471
+
472
+ Sun gravitational model.
473
+
474
+ The gravitational potential of the Sun for now is kept as a simple spherical model.
475
+
476
+ """
477
+ class Type:
478
+ """
479
+ Members:
480
+
481
+ Undefined :
482
+ Undefined.
483
+
484
+
485
+ Spherical :
486
+ The spherical gravity originating from a point source at the center of the Sun.
487
+
488
+ """
489
+ Spherical: typing.ClassVar[Sun.Type] # value = <Type.Spherical: 1>
490
+ Undefined: typing.ClassVar[Sun.Type] # value = <Type.Undefined: 0>
491
+ __members__: typing.ClassVar[dict[str, Sun.Type]] # value = {'Undefined': <Type.Undefined: 0>, 'Spherical': <Type.Spherical: 1>}
492
+ @staticmethod
493
+ def _pybind11_conduit_v1_(*args, **kwargs):
494
+ ...
495
+ def __eq__(self, other: typing.Any) -> bool:
496
+ ...
497
+ def __getstate__(self) -> int:
498
+ ...
499
+ def __hash__(self) -> int:
500
+ ...
501
+ def __index__(self) -> int:
502
+ ...
503
+ def __init__(self, value: int) -> None:
504
+ ...
505
+ def __int__(self) -> int:
506
+ ...
507
+ def __ne__(self, other: typing.Any) -> bool:
508
+ ...
509
+ def __repr__(self) -> str:
510
+ ...
511
+ def __setstate__(self, state: int) -> None:
512
+ ...
513
+ def __str__(self) -> str:
514
+ ...
515
+ @property
516
+ def name(self) -> str:
517
+ ...
518
+ @property
519
+ def value(self) -> int:
520
+ ...
521
+ spherical: typing.ClassVar[GravitationalParameters] # value = -- Gravitational Model Parameters ------------------------------------------------------------------...
522
+ @staticmethod
523
+ def _pybind11_conduit_v1_(*args, **kwargs):
524
+ ...
525
+ @typing.overload
526
+ def __init__(self, type: ..., directory: ostk.core.filesystem.Directory) -> None:
527
+ """
528
+ Construct a Sun gravitational model.
529
+
530
+ Args:
531
+ type (Sun.Type): Sun model type.
532
+ directory (Directory): Directory containing the gravity model data files.
533
+ """
534
+ @typing.overload
535
+ def __init__(self, type: ...) -> None:
536
+ """
537
+ Construct a Sun gravitational model.
538
+
539
+ Args:
540
+ type (Sun.Type): Sun model type.
541
+ """
542
+ def get_field_value_at(self, position: numpy.ndarray[numpy.float64[3, 1]], instant: ostk.physics.time.Instant) -> numpy.ndarray[numpy.float64[3, 1]]:
543
+ """
544
+ Get the gravitational field value at a given position and instant.
545
+ """
546
+ def get_type(self) -> ...:
547
+ """
548
+ Get the Sun model type.
549
+
550
+ Returns:
551
+ Sun.Type: Sun model type.
552
+ """
553
+ def is_defined(self) -> bool:
554
+ """
555
+ Check if the Sun model is defined.
556
+
557
+ Returns:
558
+ bool: True if defined.
559
+ """
@@ -0,0 +1,56 @@
1
+ from __future__ import annotations
2
+ import ostk.core.filesystem
3
+ import ostk.physics
4
+ import ostk.physics.environment.gravitational
5
+ __all__ = ['Manager']
6
+ class Manager(ostk.physics.Manager):
7
+ """
8
+
9
+ Earth gravitational model data manager.
10
+
11
+ Fetches and manages necessary gravity model data files.
12
+
13
+ The following environment variables can be defined:
14
+
15
+ - "OSTK_PHYSICS_ENVIRONMENT_GRAVITATIONAL_EARTH_MANAGER_MODE" will override "DefaultMode"
16
+ - "OSTK_PHYSICS_ENVIRONMENT_GRAVITATIONAL_EARTH_MANAGER_LOCAL_REPOSITORY" will override "DefaultLocalRepository"
17
+
18
+ """
19
+ @staticmethod
20
+ def _pybind11_conduit_v1_(*args, **kwargs):
21
+ ...
22
+ @staticmethod
23
+ def get() -> Manager:
24
+ """
25
+ Get manager singleton.
26
+
27
+ Returns:
28
+ Manager: Reference to manager.
29
+ """
30
+ def fetch_data_files_for_type(self, model_type: ostk.physics.environment.gravitational.Earth.Type) -> None:
31
+ """
32
+ Fetch data file from remote.
33
+
34
+ Args:
35
+ model_type (EarthGravitationalModel::Type): A model type.
36
+ """
37
+ def has_data_files_for_type(self, model_type: ostk.physics.environment.gravitational.Earth.Type) -> bool:
38
+ """
39
+ Returns true if manager has data file for the given model type.
40
+
41
+ Args:
42
+ model_type (EarthGravitationalModel::Type): A model type.
43
+
44
+ Returns:
45
+ bool: True if manager has data file for the given model type.
46
+ """
47
+ def local_data_files_for_type(self, model_type: ostk.physics.environment.gravitational.Earth.Type) -> list[ostk.core.filesystem.File]:
48
+ """
49
+ Returns list of file objects for the given type.
50
+
51
+ Args:
52
+ model_type (EarthGravitationalModel::Type): A model type.
53
+
54
+ Returns:
55
+ list[File]: list of Files.
56
+ """