... | ... | @@ -2,6 +2,8 @@ |
|
|
|
|
|
The easiest and often best way to install the Orekit Python Wrapper module in Python is to use pre-made packages for the conda package manager. [Mambaforge](https://github.com/conda-forge/miniforge). The Anaconda distribution is also compatible with these packages but that distribution may have license restrictions.
|
|
|
|
|
|
There are no pip packages for Orekit, which is due to the need of a well-controlled build and execute environment.
|
|
|
|
|
|
Orekit [packages](https://github.com/conda-forge/orekit-feedstock) is being continuously built in the conda-forge system and can then be installed using conda:
|
|
|
|
|
|
```shell
|
... | ... | @@ -21,11 +23,27 @@ Note that it is needed to active the conda environment to be used, this activati |
|
|
_Note:_ In recent versions of anaconda on Windows it seems like there are some issues if the conda is not "init'ed" on the machine. To do this, run "conda init" in the command prompt.
|
|
|
|
|
|
## Physical Data
|
|
|
The physical data is not included in the orekit library and needs to be provided. A starting package of data is available from https://gitlab.orekit.org/orekit/orekit-data and can be downloaded through the helper function `download_orekit_data_curdir()`.
|
|
|
The physical data is not included in the orekit library and needs to be provided.
|
|
|
|
|
|
### Download Orekit data Zip
|
|
|
|
|
|
A starting package of data is available from https://gitlab.orekit.org/orekit/orekit-data and can be downloaded through the helper function `download_orekit_data_curdir()`.
|
|
|
|
|
|
The python helper function setup_orekit_curdir() loads such file, default "orekit-data.zip" and sets up orekit to use it (you need to remove the "-master" from the filename if the repo download is used).
|
|
|
|
|
|
There are no pip packages for Orekit, which is due to the need of a well-controlled build and execute environment.
|
|
|
### Download Orekit data as a library using pip
|
|
|
|
|
|
Alternatively, the [Orekit data repo](https://gitlab.orekit.org/orekit/orekit-data) is now installable as a Python library using `pip`. You can do the following:
|
|
|
|
|
|
* In a terminal with the conda environment activated, type:
|
|
|
```bash
|
|
|
pip install git+https://gitlab.orekit.org/orekit/orekit-data.git
|
|
|
```
|
|
|
|
|
|
* In Python, load data from the `orekitdata` library using:
|
|
|
```python
|
|
|
setup_orekit_curdir(from_pip_library=True)
|
|
|
```
|
|
|
|
|
|
# From Source
|
|
|
|
... | ... | |