Skip to main content

MPilot is a plugin-based, environmental modeling framework

Project description

MPilot (beta)

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.0.0b14.tar.gz (21.6 kB view details)

Uploaded Source

File details

Details for the file mpilot-1.0.0b14.tar.gz.

File metadata

  • Download URL: mpilot-1.0.0b14.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.9.2 Linux/5.4.0-1041-azure

File hashes

Hashes for mpilot-1.0.0b14.tar.gz
Algorithm Hash digest
SHA256 0fc39915ff223ca79f71dd4ae04fb0c6d707e10c9b6e19f10364c680a964c760
MD5 bb3f68fa8da33a53a7e2bd55814dfead
BLAKE2b-256 456fe882e5409929c0adc4aebcec25a2384bc1fdeda4fcd700a9febd4193f9bf

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