<jupyter_start><jupyter_text>Open Space Toolkit ▸ Physics ▸ Environment ▸ Gravitational  Setup<jupyter_code>import numpy

import ostk.core as core
import ostk.io as io
import ostk.physics as physics
Path = core.filesystem.Path
Directory = core.filesystem.Directory

URL = io.URL

Instant = physics.time.Instant
Earth = physics.environment.objects.celestial_bodies.Earth
SphericalGravitationalModel = physics.environment.gravitational.Spherical
EarthGravitationalModel = physics.environment.gravitational.Earth
EarthGravitationalModelManager = physics.environment.gravitational.earth.Manager<jupyter_output><empty_output><jupyter_text>---  Spherical **Constructors**<jupyter_code>spherical_gravitational_model = SphericalGravitationalModel(Earth.Models.WGS84.gravitational_parameter)<jupyter_output><empty_output><jupyter_text>**Methods**<jupyter_code>spherical_gravitational_model.get_field_value_at(numpy.array([6400e3, 0.0, 0.0]), Instant.J2000()) ;<jupyter_output><empty_output><jupyter_text>Earth **Constructors**<jupyter_code>earth_gravitational_model = EarthGravitationalModel(EarthGravitationalModel.Type.WGS84)
earth_gravitational_model = EarthGravitationalModel(EarthGravitationalModel.Type.EGM84)
earth_gravitational_model = EarthGravitationalModel(EarthGravitationalModel.Type.EGM96)
earth_gravitational_model = EarthGravitationalModel(EarthGravitationalModel.Type.EGM2008)<jupyter_output><empty_output><jupyter_text>**Methods**<jupyter_code>earth_gravitational_model.get_type() ;
earth_gravitational_model.get_field_value_at(numpy.array([6400e3, 0.0, 0.0]), Instant.J2000()) ;<jupyter_output><empty_output><jupyter_text>Earth ▸ Manager **Constructors**<jupyter_code>manager = EarthGravitationalModelManager.get() ;<jupyter_output><empty_output><jupyter_text>**Methods**<jupyter_code>manager.is_enabled() ;
manager.has_data_file_for_type(EarthGravitationalModel.Type.WGS84) ;
manager.get_local_repository() ;
manager.get_remote_url() ;
manager.fetch_data_file_for_type(EarthGravitationalModel.Type.WGS84) ;
manager.set_local_repository(Directory.path(Path.parse('./directory'))) ;
manager.set_remote_url(EarthGravitationalModelManager.default_remote_url()) ;
manager.enable() ;
manager.disable() ;<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10857908847184987, 'fraction_numerical': 0.01876675603217158, 'mean_word_length': 12.248520710059172, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '7', 'dir': 'jupyter-structured-clean-dedup', 'id': '238017', 'license': 'Apache-2.0', 'n_tokens_mistral': 801, 'n_tokens_neox': 754, 'n_words': 73, 'path': 'bindings/python/docs/Reference/Environment/Gravitational.ipynb', 'repo_name': 'robinpdm/open-space-toolkit-physics', 'size': '2238'}