open-space-toolkit-physics 11.2.1__py311-none-manylinux2014_x86_64.whl → 12.0.0__py311-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-311-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,584 @@
1
+ from __future__ import annotations
2
+ import numpy
3
+ import ostk.core.filesystem
4
+ import ostk.core.type
5
+ import ostk.physics
6
+ import ostk.physics.time
7
+ __all__ = ['BulletinA', 'Finals2000A', 'Manager']
8
+ class BulletinA:
9
+ """
10
+
11
+ Contains rapid determinations for Earth orientation parameters:
12
+ x/y pole, UT1-UTC and their errors at daily intervals and predictions for 1 year into
13
+ the future.
14
+
15
+ The contents of IERS Bulletin A are divided into four sections:
16
+
17
+ 1. General information including key definitions and the most recently adopted values of
18
+ DUT1 and TAI-UTC.
19
+
20
+ 2. Quick-look daily estimates of the EOPs determined by smoothing the observed data.
21
+ This involves the application of systematic corrections and statistical weighting.
22
+ The results are published with a delay of about one to three days between the date of
23
+ publication and the last available date with estimated EOP.
24
+
25
+ 3. Predictions of x, y, and UT1-UTC, up to 365 days following the last day of data.
26
+ The predictions use similar algorithms based on seasonal filtering and autoregressive
27
+ processing for x, y, and UT1.
28
+
29
+ 4. The combination series for the celestial pole offsets.
30
+ Bulletin A contains celestial pole offsets with respect to the IAU1980 Nutation theory
31
+ (dpsi and deps) and the IAU 2000 Resolutions (dX and dY), beginning on 1 January 2003.
32
+
33
+ :reference: https://datacenter.iers.org/productMetadata.php?id=6
34
+
35
+
36
+ """
37
+ class Observation:
38
+ @staticmethod
39
+ def _pybind11_conduit_v1_(*args, **kwargs):
40
+ ...
41
+ @property
42
+ def day(self) -> ostk.core.type.Integer:
43
+ """
44
+ Day of month.
45
+ """
46
+ @property
47
+ def mjd(self) -> ostk.core.type.Real:
48
+ """
49
+ Modified Julian Day.
50
+ """
51
+ @property
52
+ def month(self) -> ostk.core.type.Integer:
53
+ """
54
+ Month number.
55
+ """
56
+ @property
57
+ def ut1_minus_utc(self) -> ostk.core.type.Real:
58
+ """
59
+ UT1-UTC [s].
60
+ """
61
+ @property
62
+ def ut1_minus_utc_error(self) -> ostk.core.type.Real:
63
+ """
64
+ UT1-UTC error [s].
65
+ """
66
+ @property
67
+ def x(self) -> ostk.core.type.Real:
68
+ """
69
+ PM-x [asec].
70
+ """
71
+ @property
72
+ def x_error(self) -> ostk.core.type.Real:
73
+ """
74
+ PM-x error [asec].
75
+ """
76
+ @property
77
+ def y(self) -> ostk.core.type.Real:
78
+ """
79
+ PM-y [asec].
80
+ """
81
+ @property
82
+ def y_error(self) -> ostk.core.type.Real:
83
+ """
84
+ PM-y error [asec].
85
+ """
86
+ @property
87
+ def year(self) -> ostk.core.type.Integer:
88
+ """
89
+ Year (to get true calendar year, add 1900 for MJD <= 51543 or add 2000 for MJD >= 51544).
90
+ """
91
+ class Prediction:
92
+ @staticmethod
93
+ def _pybind11_conduit_v1_(*args, **kwargs):
94
+ ...
95
+ @property
96
+ def day(self) -> ostk.core.type.Integer:
97
+ """
98
+ Day of month.
99
+ """
100
+ @property
101
+ def mjd(self) -> ostk.core.type.Real:
102
+ """
103
+ Modified Julian Day.
104
+ """
105
+ @property
106
+ def month(self) -> ostk.core.type.Integer:
107
+ """
108
+ Month number.
109
+ """
110
+ @property
111
+ def ut1_minus_utc(self) -> ostk.core.type.Real:
112
+ """
113
+ UT1-UTC [s].
114
+ """
115
+ @property
116
+ def x(self) -> ostk.core.type.Real:
117
+ """
118
+ PM-x [asec].
119
+ """
120
+ @property
121
+ def y(self) -> ostk.core.type.Real:
122
+ """
123
+ PM-y [asec].
124
+ """
125
+ @property
126
+ def year(self) -> ostk.core.type.Integer:
127
+ """
128
+ Year (to get true calendar year, add 1900 for MJD <= 51543 or add 2000 for MJD >= 51544).
129
+ """
130
+ @staticmethod
131
+ def _pybind11_conduit_v1_(*args, **kwargs):
132
+ ...
133
+ @staticmethod
134
+ def load(file: ostk.core.filesystem.File) -> BulletinA:
135
+ """
136
+ Load Bulletin A from a file.
137
+
138
+ Parameters:
139
+ file (File): The file.
140
+
141
+ Returns:
142
+ BulletinA: The Bulletin A object.
143
+ """
144
+ @staticmethod
145
+ def undefined() -> BulletinA:
146
+ """
147
+ Undefined factory function.
148
+
149
+ Returns:
150
+ BulletinA: An undefined Bulletin A object.
151
+ """
152
+ def __repr__(self) -> str:
153
+ ...
154
+ def __str__(self) -> str:
155
+ ...
156
+ def access_observation_interval(self) -> ostk.physics.time.Interval:
157
+ """
158
+ Access the observation interval.
159
+
160
+ Returns:
161
+ Interval: The observation Interval of Instants.
162
+ """
163
+ def access_prediction_interval(self) -> ostk.physics.time.Interval:
164
+ """
165
+ Access the prediction interval.
166
+
167
+ Returns:
168
+ Interval: The prediction Interval of Instants.
169
+ """
170
+ def access_release_date(self) -> ostk.physics.time.Date:
171
+ """
172
+ Access the release date.
173
+
174
+ Returns:
175
+ Date: The release date.
176
+ """
177
+ def access_tai_minus_utc(self) -> ostk.physics.time.Duration:
178
+ """
179
+ Access the TAI-UTC.
180
+
181
+ Returns:
182
+ Duration: The TAI-UTC.
183
+ """
184
+ def access_tai_minus_utc_epoch(self) -> ostk.physics.time.Instant:
185
+ """
186
+ Access the TAI-UTC epoch.
187
+
188
+ Returns:
189
+ Instant: The TAI-UTC epoch.
190
+ """
191
+ def get_observation_at(self, instant: ostk.physics.time.Instant) -> ...:
192
+ """
193
+ Get observation at a given instant.
194
+
195
+ Parameters:
196
+ instant (Instant): The instant.
197
+
198
+ Returns:
199
+ Observation: The observation.
200
+ """
201
+ def get_observation_interval(self) -> ostk.physics.time.Interval:
202
+ """
203
+ Get observation interval.
204
+
205
+ Returns:
206
+ Interval: Observation Interval of Instants.
207
+ """
208
+ def get_prediction_at(self, instant: ostk.physics.time.Instant) -> ...:
209
+ """
210
+ Get prediction at a given instant.
211
+
212
+ Parameters:
213
+ instant (Instant): The instant.
214
+
215
+ Returns:
216
+ Prediction: The prediction.
217
+ """
218
+ def get_prediction_interval(self) -> ostk.physics.time.Interval:
219
+ """
220
+ Get prediction interval.
221
+
222
+ Returns:
223
+ Interval: Prediction Interval of Instants.
224
+ """
225
+ def get_release_date(self) -> ostk.physics.time.Date:
226
+ """
227
+ Get release Date of Bulletin A.
228
+
229
+ Returns:
230
+ Date: Release Date of Bulletin A.
231
+ """
232
+ def get_tai_minus_utc(self) -> ostk.physics.time.Duration:
233
+ """
234
+ Get TAI-UTC.
235
+
236
+ Returns:
237
+ Duration: TAI-UTC.
238
+ """
239
+ def get_tai_minus_utc_epoch(self) -> ostk.physics.time.Instant:
240
+ """
241
+ Get TAI-UTC epoch.
242
+
243
+ Returns:
244
+ Instant: TAI-UTC epoch.
245
+ """
246
+ def is_defined(self) -> bool:
247
+ """
248
+ Returns true if the bulletin is defined.
249
+
250
+ Returns:
251
+ bool: True if the bulletin is defined.
252
+ """
253
+ class Finals2000A:
254
+ """
255
+
256
+ Standard Rapid EOP Data since 01. January 1992 (IAU2000)
257
+
258
+ This file (updated weekly) is the complete Earth orientation data set, since 1 January
259
+ 1992 with 1 year of predictions. The nutation series in dX and dY uses the IAU 2000A
260
+ Nutation Theory.
261
+
262
+ :reference: https://www.iers.org/IERS/EN/DataProducts/EarthOrientationData/eop.html -> finals.data
263
+
264
+
265
+ """
266
+ class Data:
267
+ @staticmethod
268
+ def _pybind11_conduit_v1_(*args, **kwargs):
269
+ ...
270
+ @property
271
+ def day(self) -> ostk.core.type.Integer:
272
+ """
273
+ Day of month.
274
+ """
275
+ @property
276
+ def dx_a(self) -> ostk.core.type.Real:
277
+ """
278
+ Bulletin A dX wrt IAU2000A Nutation, Free Core Nutation NOT Removed [amsec].
279
+ """
280
+ @property
281
+ def dx_b(self) -> ostk.core.type.Real:
282
+ """
283
+ Bulletin B dX wrt IAU2000A Nutation [amsec].
284
+ """
285
+ @property
286
+ def dx_error_a(self) -> ostk.core.type.Real:
287
+ """
288
+ Error in dX [amsec].
289
+ """
290
+ @property
291
+ def dy_a(self) -> ostk.core.type.Real:
292
+ """
293
+ Bulletin A dY wrt IAU2000A Nutation, Free Core Nutation NOT Removed [amsec].
294
+ """
295
+ @property
296
+ def dy_b(self) -> ostk.core.type.Real:
297
+ """
298
+ Bulletin B dY wrt IAU2000A Nutation [amsec].
299
+ """
300
+ @property
301
+ def dy_error_a(self) -> ostk.core.type.Real:
302
+ """
303
+ Error in dY [amsec].
304
+ """
305
+ @property
306
+ def lod_a(self) -> ostk.core.type.Real:
307
+ """
308
+ Bulletin A LOD (not always filled) [ms].
309
+ """
310
+ @property
311
+ def lod_error_a(self) -> ostk.core.type.Real:
312
+ """
313
+ Error in LOD (not always filled) [ms].
314
+ """
315
+ @property
316
+ def mjd(self) -> ostk.core.type.Real:
317
+ """
318
+ Modified Julian Date.
319
+ """
320
+ @property
321
+ def month(self) -> ostk.core.type.Integer:
322
+ """
323
+ Month number.
324
+ """
325
+ @property
326
+ def nutation_flag(self) -> str:
327
+ """
328
+ IERS (I) or Prediction (P) flag for Bulletin A nutation values.
329
+ """
330
+ @property
331
+ def polar_motionflag(self) -> str:
332
+ """
333
+ IERS (I) or Prediction (P) flag for Bulletin A polar motion values.
334
+ """
335
+ @property
336
+ def ut1_minus_utc_a(self) -> ostk.core.type.Real:
337
+ """
338
+ Bulletin A UT1-UTC [s].
339
+ """
340
+ @property
341
+ def ut1_minus_utc_b(self) -> ostk.core.type.Real:
342
+ """
343
+ Bulletin B UT1-UTC [s].
344
+ """
345
+ @property
346
+ def ut1_minus_utc_error_a(self) -> ostk.core.type.Real:
347
+ """
348
+ Error in UT1-UTC [s].
349
+ """
350
+ @property
351
+ def ut1_minus_utc_flag(self) -> str:
352
+ """
353
+ IERS (I) or Prediction (P) flag for Bulletin A UT1-UTC values.
354
+ """
355
+ @property
356
+ def x_a(self) -> ostk.core.type.Real:
357
+ """
358
+ Bulletin A PM-x [asec].
359
+ """
360
+ @property
361
+ def x_b(self) -> ostk.core.type.Real:
362
+ """
363
+ Bulletin B PM-x [asec].
364
+ """
365
+ @property
366
+ def x_error_a(self) -> ostk.core.type.Real:
367
+ """
368
+ Error in PM-x [asec].
369
+ """
370
+ @property
371
+ def y_a(self) -> ostk.core.type.Real:
372
+ """
373
+ Bulletin A PM-y [asec].
374
+ """
375
+ @property
376
+ def y_b(self) -> ostk.core.type.Real:
377
+ """
378
+ Bulletin B PM-y [asec].
379
+ """
380
+ @property
381
+ def y_error_a(self) -> ostk.core.type.Real:
382
+ """
383
+ Error in PM-y [asec].
384
+ """
385
+ @property
386
+ def year(self) -> ostk.core.type.Integer:
387
+ """
388
+ Year (to get true calendar year, add 1900 for MJD <= 51543 or add 2000 for MJD >= 51544).
389
+ """
390
+ @staticmethod
391
+ def _pybind11_conduit_v1_(*args, **kwargs):
392
+ ...
393
+ @staticmethod
394
+ def load(file: ostk.core.filesystem.File) -> Finals2000A:
395
+ """
396
+ Load data from file.
397
+
398
+ Args:
399
+ file (str): File.
400
+
401
+ Returns:
402
+ Finals2000A: Finals2000A object.
403
+ """
404
+ @staticmethod
405
+ def undefined() -> Finals2000A:
406
+ """
407
+ Undefined factory function.
408
+
409
+ Returns:
410
+ Finals2000A: Undefined Finals2000A object.
411
+ """
412
+ def __repr__(self) -> str:
413
+ ...
414
+ def __str__(self) -> str:
415
+ ...
416
+ def get_data_at(self, instant: ostk.physics.time.Instant) -> ...:
417
+ """
418
+ Get data at instant.
419
+
420
+ Args:
421
+ instant (Instant): Instant.
422
+
423
+ Returns:
424
+ Finals2000.Data: Data.
425
+ """
426
+ def get_interval(self) -> ostk.physics.time.Interval:
427
+ """
428
+ Get data interval.
429
+
430
+ Returns:
431
+ Interval: Data Interval of Instants.
432
+ """
433
+ def get_lod_at(self, instant: ostk.physics.time.Instant) -> ostk.core.type.Real:
434
+ """
435
+ Get LOD at instant.
436
+
437
+ Args:
438
+ instant (Instant): Instant.
439
+
440
+ Returns:
441
+ float: LOD.
442
+ """
443
+ def get_polar_motion_at(self, instant: ostk.physics.time.Instant) -> numpy.ndarray[numpy.float64[2, 1]]:
444
+ """
445
+ Get polar motion at instant.
446
+
447
+ Args:
448
+ instant (Instant): Instant.
449
+
450
+ Returns:
451
+ np.ndarray: Polar motion.
452
+ """
453
+ def get_ut1_minus_utc_at(self, instant: ostk.physics.time.Instant) -> ostk.core.type.Real:
454
+ """
455
+ Get UT1-UTC at instant.
456
+
457
+ Args:
458
+ instant (Instant): Instant.
459
+
460
+ Returns:
461
+ float: UT1-UTC.
462
+ """
463
+ def is_defined(self) -> bool:
464
+ """
465
+ Returns true if defined.
466
+
467
+ Returns:
468
+ bool: True if defined.
469
+ """
470
+ class Manager(ostk.physics.Manager):
471
+ """
472
+
473
+ IERS bulletins manager (thread-safe)
474
+
475
+ The following environment variables can be defined:
476
+
477
+ - "OSTK_PHYSICS_COORDINATE_FRAME_PROVIDER_IERS_MANAGER_MODE" will override
478
+ "DefaultMode"
479
+ - "OSTK_PHYSICS_COORDINATE_FRAME_PROVIDER_IERS_MANAGER_LOCAL_REPOSITORY" will override
480
+ "DefaultLocalRepository"
481
+ - "OSTK_PHYSICS_COORDINATE_FRAME_PROVIDER_IERS_MANAGER_LOCAL_REPOSITORY_LOCK_TIMEOUT"
482
+ will override "DefaultLocalRepositoryLockTimeout"
483
+
484
+ :reference: https://www.iers.org/IERS/EN/DataProducts/EarthOrientationData/eop.html
485
+
486
+
487
+ """
488
+ @staticmethod
489
+ def _pybind11_conduit_v1_(*args, **kwargs):
490
+ ...
491
+ @staticmethod
492
+ def get() -> Manager:
493
+ """
494
+ Get manager singleton.
495
+
496
+ Returns:
497
+ Manager: Reference to manager.
498
+ """
499
+ def fetch_latest_bulletin_a(self) -> ostk.core.filesystem.File:
500
+ """
501
+ Fetch latest Bulletin A file.
502
+
503
+ Returns:
504
+ File: Latest Bulletin A file.
505
+ """
506
+ def fetch_latest_finals_2000a(self) -> ostk.core.filesystem.File:
507
+ """
508
+ Fetch latest Finals 2000A file.
509
+
510
+ Returns:
511
+ File: Latest Finals 2000A file.
512
+ """
513
+ def get_bulletin_a(self) -> ...:
514
+ """
515
+ Get Bulletin A.
516
+
517
+ Returns:
518
+ BulletinA: Bulletin A.
519
+ """
520
+ def get_bulletin_a_directory(self) -> ostk.core.filesystem.Directory:
521
+ """
522
+ Get Bulletin A directory.
523
+
524
+ Returns:
525
+ Directory: Bulletin A directory.
526
+ """
527
+ def get_finals_2000a(self) -> ...:
528
+ """
529
+ Get Finals 2000A.
530
+
531
+ Returns:
532
+ Finals2000A: Finals 2000A.
533
+ """
534
+ def get_finals_2000a_directory(self) -> ostk.core.filesystem.Directory:
535
+ """
536
+ Get Finals 2000A directory.
537
+
538
+ Returns:
539
+ Directory: Finals 2000A directory.
540
+ """
541
+ def get_lod_at(self, instant: ostk.physics.time.Instant) -> ostk.core.type.Real:
542
+ """
543
+ Get length of day at instant.
544
+
545
+ Args:
546
+ instant (Instant): Instant.
547
+
548
+ Returns:
549
+ float: Length of day [ms].
550
+ """
551
+ def get_polar_motion_at(self, instant: ostk.physics.time.Instant) -> numpy.ndarray[numpy.float64[2, 1]]:
552
+ """
553
+ Get polar motion at instant.
554
+
555
+ Args:
556
+ instant (Instant): Instant.
557
+
558
+ Returns:
559
+ np.ndarray: Polar motion.
560
+ """
561
+ def get_ut1_minus_utc_at(self, instant: ostk.physics.time.Instant) -> ostk.core.type.Real:
562
+ """
563
+ Get UT1 - UTC at instant.
564
+
565
+ Args:
566
+ instant (Instant): Instant.
567
+
568
+ Returns:
569
+ float: UT1 - UTC [sec].
570
+ """
571
+ def load_bulletin_a(self, bulletin_a: typing.Any) -> None:
572
+ """
573
+ Load Bulletin A.
574
+
575
+ Returns:
576
+ bulletin_a (BulletinA): Bulletin A.
577
+ """
578
+ def load_finals_2000a(self, finals_2000a: typing.Any) -> None:
579
+ """
580
+ Load Finals 2000A.
581
+
582
+ Returns:
583
+ finals_2000a (Finals2000A): Finals 2000A.
584
+ """