Skip to main content

MPilot is a plugin-based, environmental modeling framework

Project description

MPilot

MPilot is a plugin-based, environmental modeling framework based on a bottom-up, many-to-many workflow that can be represented by a directed (not iterating) graph. MPilot is descended from the Environmental Evaluation Modeling System (EEMS), which was initially a fuzzy logic modeling package based on EMDS.

MPilot Documentation

Installing

MPilot with EEMS can be installed with pip:

$ pip install mpilot

In order to run MPilot with NetCDF datasets, you'll need to install the NetCDF variant:

$ pip install mpilot[netcdf]

Creating models

MPilot models are contained in "command files", using a simple scripting language. Here is an example model, which loads two columns of integer data from a CSV file, sums them, and writes the result to a second CSV file.

A = EEMSRead(
    InFileName = "input.csv",
    InFieldName = "A",
    DataType = "Integer"
)
B = EEMSRead(
    InFileName = "input.csv",
    InFieldName = "B",
    DataType = "Integer"
)
APlusB = Sum(
    InFieldNames = [A, B]
)
Out = EEMSWrite(
    OutFileName = "output.csv",
    OutFieldNames = [A, B, APlusB]
)

Running models

Models are run using the included mpilot program. The following commands will run a model using the EEMS CSV library and using the EEMS NetCDF library respectively:

$ mpilot eems-csv model.mpt
$ mpilot eems-netcdf model.mpt

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

mpilot-1.2.6.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

mpilot-1.2.6-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

File details

Details for the file mpilot-1.2.6.tar.gz.

File metadata

  • Download URL: mpilot-1.2.6.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.9.20 Linux/6.5.0-1025-azure

File hashes

Hashes for mpilot-1.2.6.tar.gz
Algorithm Hash digest
SHA256 cb21be02f4c0e789a4031ea51c51955dba4d3f884ee16ef1c059dcb15af25b01
MD5 2d8fbd0890af288af914d14980d09b13
BLAKE2b-256 69e72d61dfe574b9ec4073047c6248690f49ae6054045153b62e50cf422b357d

See more details on using hashes here.

File details

Details for the file mpilot-1.2.6-py3-none-any.whl.

File metadata

  • Download URL: mpilot-1.2.6-py3-none-any.whl
  • Upload date:
  • Size: 29.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.9.20 Linux/6.5.0-1025-azure

File hashes

Hashes for mpilot-1.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 829e078bdf9d415f604fe463872c68ceeb7849a4441cbac462d0d0ccc35225a1
MD5 ef28c002f5cc146750aecba6df637276
BLAKE2b-256 762f676a83b9946c3c535262a9c133e288f22c15cb00838c885cb2178e9e8499

See more details on using hashes here.

Supported by

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