ostk.physics.environment.magnetic.earth.Manager¶
- class Manager¶
Bases:
Manager
Earth magnetic model data manager
Fetches and manages necessary magnetic model data files.
The following environment variables can be defined:
"OSTK_PHYSICS_ENVIRONMENT_MAGNETIC_EARTH_MANAGER_ENABLED" will override "DefaultEnabled"
"OSTK_PHYSICS_ENVIRONMENT_MAGNETIC_EARTH_MANAGER_LOCAL_REPOSITORY" will override "DefaultLocalRepository"
Methods
Clear the local repository.
Fetch data file from remote
Get manager singleton
Get the local repository.
Get the local repository lock timeout.
Get the manager mode.
Check if data files are available for the given type
Get local data files for the given type
Reset the manager.
Set the local repository.
Set the manager mode.
- class Mode(self: ostk.physics.Manager.Mode, value: int)¶
Bases:
pybind11_object
Members:
Manual
Automatic
- property name¶
- clear_local_repository(self: ostk.physics.Manager) None ¶
Clear the local repository.
- fetch_data_files_for_type(
- self: ostk.physics.environment.magnetic.earth.Manager,
- model_type: ostk.physics.environment.magnetic.Earth.Type,
Fetch data file from remote
- Parameters:
model_type (EarthMagneticModel.Type) -- Model type
- static get() ostk.physics.environment.magnetic.earth.Manager ¶
Get manager singleton
- Returns:
Reference to manager
- Return type:
- get_local_repository(
- self: ostk.physics.Manager,
Get the local repository.
- Returns:
Local repository.
- Return type:
Directory
- get_local_repository_lock_timeout(
- self: ostk.physics.Manager,
Get the local repository lock timeout.
- Returns:
Local repository lock timeout.
- Return type:
- get_mode(self: ostk.physics.Manager) ostk.physics.Manager.Mode ¶
Get the manager mode.
- Returns:
Manager mode.
- Return type:
- has_data_files_for_type(
- self: ostk.physics.environment.magnetic.earth.Manager,
- model_type: ostk.physics.environment.magnetic.Earth.Type,
Check if data files are available for the given type
- Parameters:
model_type (EarthMagneticModel.Type) -- Model type
- Returns:
True if data files are available for the given type
- Return type:
- local_data_files_for_type(
- self: ostk.physics.environment.magnetic.earth.Manager,
- model_type: ostk.physics.environment.magnetic.Earth.Type,
Get local data files for the given type
- Parameters:
model_type (EarthMagneticModel.Type) -- Model type
- Returns:
Local data files
- Return type:
list[File]
- reset(self: ostk.physics.Manager) None ¶
Reset the manager.
- set_local_repository(
- self: ostk.physics.Manager,
- directory: ostk.core.filesystem.Directory,
Set the local repository.
- Parameters:
directory (Directory) -- Local repository.
- set_mode(self: ostk.physics.Manager, mode: ostk.physics.Manager.Mode) None ¶
Set the manager mode.
- Parameters:
mode (Mode) -- Manager mode.