geomodels.cli module¶
Command Line Interface (CLI) for the geomodels package.
-
class
geomodels.cli.
EInfoMode
[source]¶ Bases:
enum.Enum
An enumeration.
-
ALL
= 'all'¶
-
DATA
= 'data'¶
-
INFO
= 'info'¶
-
-
geomodels.cli.
import_igrf
(path: Union[str, os.PathLike], outpath: Union[str, os.PathLike, None] = None, force: bool = False)[source]¶ Import magnetic field data from IGRF text format.
Import Spherical Harmonics coefficients for the IGRF magnetic field model from text file in IGRF standard format.
-
geomodels.cli.
info
(mode=<EInfoMode.ALL: 'all'>, datadir=None)[source]¶ Provide information about the platform, library versions and installed data.
-
geomodels.cli.
install_data
(model, datadir=None, base_url=None, no_progress=False)[source]¶ Download and install the data necessary for models computation.
GeoModels uses external data to perform geoid, gravity and magnetic field computations.
It is possible to install different subsets of data:
Minimal: only data for the default model of each kind (geoid, gravity and magnetic field) are installed, Recommended: install the minimal set of data (see above) plus few additional and commonly used data (it is guaranteed that the recommended subset always includes all data that are necessary to run the test suite), All: install all available data (about 670MB of disk space required), Geoids: install data for all supported geoids, Gravity: install data for all supported gravity models, Magnetic: install data for all supported magnetic field models. Additionally the it is possible to install data for a single model.