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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mpilot-1.2.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b833599e86d59735e14ca6dacb1597c45169812bc64ccadb449c4b4f8e75429 |
|
MD5 | a1794e5ea095e1c532f3d02cba966320 |
|
BLAKE2b-256 | 5ca419733497506a355f86d203c7a0200abdcc46632507b434a079046c67fa84 |