Skip to main content

Plate Model Manager

Project description

plate-model-manager

build workflow PyPI version anaconda_badge platforms downloads

This is a dataset manager for plate tectonic models. It is similar to NPM or Conda for software packages.

How to install

pip install plate-model-manager

How to use

Use the command line

  • pmm ls This command will list all available reconstruction models, such as
    • muller2019
    • muller2022
    • muller2016
    • merdith2021
    • matthews2016
    • matthews2016_mantle_ref
    • matthews2016_pmag_ref
    • domeier2014
    • golonka
    • pehrsson2015
    • paleomap
    • torsvikcocks2017
    • rodinia
    • seton2012
  • pmm ls Muller2019 This command will show the details of model 'Muller2019'.
  • pmm download Muller2019 plate-models-data-dir This command will download model "Muller2019" into a folder 'plate-models-data-dir'.
  • pmm download all This command will download all available models into the current working directory.

Use in Python script

The Python code below prints all available model names.

    # print all available model names
    from plate_model_manager import PlateModelManager

    m_manager = PlateModelManager()
    for name in pm_manager.get_available_model_names():
      print(name)

The Python code below downloads the "Muller2019" model into folder "plate-models-data-dir". The model.get_rotation_model() function returns the rotation file location.

    from plate_model_manager import PlateModelManager

    pm_manager = PlateModelManager()
    model = pm_manager.get_model("Muller2019",data_dir="plate-models-data-dir")
    model.download_all_layers()
    print(model.get_rotation_model())
['plate-models-data-dir/muller2019//Rotations/Muller2019-Young2019-Cao2020.rot']

Examples

This Python module is mostly used in GPlately, GPlates Web Service, PyGPlates Tutorials and GPlates Python Proxy.

A good example of using PlateModelManager with PyGPlates can be found here.

The examples of using PlateModelManager with GPlately:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plate-model-manager-1.1.0.tar.gz (30.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plate_model_manager-1.1.0-py3-none-any.whl (33.3 kB view details)

Uploaded Python 3

File details

Details for the file plate-model-manager-1.1.0.tar.gz.

File metadata

  • Download URL: plate-model-manager-1.1.0.tar.gz
  • Upload date:
  • Size: 30.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for plate-model-manager-1.1.0.tar.gz
Algorithm Hash digest
SHA256 d7507eb7f506e6252bc404e661466b4c699a0e3e8127a87a972316eee0e5c6fa
MD5 abd44c215a80f4ee4588f0a3b09bed06
BLAKE2b-256 a57671a91214cc1b13b912ac1d569db3e3653ba52b7906ef2bd8e334a28fdbdc

See more details on using hashes here.

File details

Details for the file plate_model_manager-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for plate_model_manager-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3d34a2ed96e2f8e59345d905513184d8a195fcc800ffd6f09235649e6cafa82
MD5 122893b43a5dcb8e8a79748836213776
BLAKE2b-256 d55f1306b94547b98fc93a465f5776c450d4a462dac0a471bde4b130bd966ef4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page