StaticEOPProvider¶
Built-in Earth Orientation Parameters for testing and offline use.
StaticEOPProvider
¶
Static Earth Orientation Parameter provider with constant values.
Provides EOP data using fixed values that don't change with time. Useful for testing or scenarios where time-varying EOP data is not needed.
Example
import brahe as bh
# Create static EOP provider with default values
eop = bh.StaticEOPProvider()
# Create static EOP provider with zero values
eop_zero = bh.StaticEOPProvider.from_zero()
# Create with custom values
eop_custom = bh.StaticEOPProvider.from_values(0.1, 0.0, 0.0, 0.0, 0.0, 0.0)
# Set as global provider
bh.set_global_eop_provider_from_static_provider(eop_custom)
Initialize instance.
__doc__
class-attribute
¶
__doc__ = "Static Earth Orientation Parameter provider with constant values.\n\nProvides EOP data using fixed values that don't change with time.\nUseful for testing or scenarios where time-varying EOP data is not needed.\n\nExample:\n ```python\n import brahe as bh\n\n # Create static EOP provider with default values\n eop = bh.StaticEOPProvider()\n\n # Create static EOP provider with zero values\n eop_zero = bh.StaticEOPProvider.from_zero()\n\n # Create with custom values\n eop_custom = bh.StaticEOPProvider.from_values(0.1, 0.0, 0.0, 0.0, 0.0, 0.0)\n\n # Set as global provider\n bh.set_global_eop_provider_from_static_provider(eop_custom)\n ```"
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to 'utf-8'. errors defaults to 'strict'.
__module__
class-attribute
¶
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to 'utf-8'. errors defaults to 'strict'.
__new__
builtin
¶
Create and return a new object. See help(type) for accurate signature.
eop_type
method descriptor
¶
eop_type() -> str
extrapolation
method descriptor
¶
extrapolation() -> str
from_values
builtin
¶
from_values(ut1_utc: float, pm_x: float, pm_y: float, dx: float, dy: float, lod: float) -> StaticEOPProvider
Create a static EOP provider with specified values.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ut1_utc
|
float
|
UT1-UTC time difference in seconds |
required |
pm_x
|
float
|
Polar motion x-component in radians |
required |
pm_y
|
float
|
Polar motion y-component in radians |
required |
dx
|
float
|
Celestial pole offset dx in radians |
required |
dy
|
float
|
Celestial pole offset dy in radians |
required |
lod
|
float
|
Length of day offset in seconds |
required |
Returns:
| Name | Type | Description |
|---|---|---|
StaticEOPProvider |
StaticEOPProvider
|
Provider with specified EOP values |
from_zero
builtin
¶
from_zero() -> StaticEOPProvider
Create a static EOP provider with all values set to zero.
Returns:
| Name | Type | Description |
|---|---|---|
StaticEOPProvider |
StaticEOPProvider
|
Provider with all EOP values set to zero |
get_dxdy
method descriptor
¶
get_eop
method descriptor
¶
get_lod
method descriptor
¶
get_pm
method descriptor
¶
get_ut1_utc
method descriptor
¶
interpolation
method descriptor
¶
interpolation() -> bool
Check if interpolation is enabled.
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if interpolation is enabled |
is_initialized
method descriptor
¶
is_initialized() -> bool
len
method descriptor
¶
len() -> int
mjd_last_dxdy
method descriptor
¶
mjd_last_dxdy() -> float
Get the last Modified Julian Date with dx/dy data.
Returns:
| Name | Type | Description |
|---|---|---|
float |
float
|
Last MJD with dx/dy data |
mjd_last_lod
method descriptor
¶
mjd_last_lod() -> float
Get the last Modified Julian Date with LOD data.
Returns:
| Name | Type | Description |
|---|---|---|
float |
float
|
Last MJD with LOD data |
Overview¶
StaticEOPProvider provides built-in historical EOP data that doesn't require external files. Useful for testing, examples, or when internet access is unavailable.
Module: brahe.eop
Use Cases: - Unit testing - Examples and tutorials - Offline applications - Quick prototyping
Limitations: - Fixed historical data (not updated) - Less accurate than file-based providers - Not suitable for production applications requiring current data
Creating a Provider¶
Zero Values¶
import brahe as bh
# All EOP values set to zero
provider = bh.StaticEOPProvider.from_zero()
# Set as global provider
bh.set_global_eop_provider(provider)
Custom Values¶
import brahe as bh
# Specify custom EOP values
provider = bh.StaticEOPProvider.from_values(
ut1_utc=0.1, # UT1-UTC offset (seconds)
pm_x=0.0001, # Polar motion X (radians)
pm_y=0.0001, # Polar motion Y (radians)
dx=0.00001, # Celestial pole offset dX (radians)
dy=0.00001, # Celestial pole offset dY (radians)
lod=0.001 # Length of day offset (seconds)
)
Default Values¶
Usage Example¶
import brahe as bh
# Set up static EOP for testing
bh.set_global_eop_provider(
bh.StaticEOPProvider.from_zero()
)
# Perform frame transformations
epoch = bh.Epoch.from_datetime(2024, 1, 1, 0, 0, 0.0, 0.0, bh.TimeSystem.UTC)
# ECI to ECEF transformation
pos_eci = [7000000.0, 0.0, 0.0] # meters in ECI
pos_ecef = bh.position_eci_to_ecef(epoch, pos_eci)
# ECEF to ECI transformation
vel_ecef = [0.0, 7500.0, 0.0] # m/s in ECEF
vel_eci = bh.position_ecef_to_eci(epoch, vel_ecef)
When to Use¶
✅ Use StaticEOPProvider for: - Unit tests - Documentation examples - Learning and prototyping - Applications where high accuracy isn't critical
❌ Don't use StaticEOPProvider for: - Production orbit determination - Precise tracking applications - Applications requiring current EOP data - High-accuracy simulations
See Also¶
- FileEOPProvider - File-based EOP for production use
- EOP Functions - Global EOP management
- Frames - Coordinate transformations