Skip to main content

Python package to perform timeseries analysis of multiplehydrological time series using a dynamic factor model.

Project description

[![metran](https://github.com/pastas/metran/actions/workflows/ci.yml/badge.svg)](https://github.com/pastas/metran/actions/workflows/ci.yml) [![Documentation Status](https://readthedocs.org/projects/metran/badge/?version=latest)](https://metran.readthedocs.io/en/latest/?badge=latest) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/43056ec3f22341fa992fff4e7b2eeb73)](https://www.codacy.com/gh/pastas/metran/dashboard?utm_source=github.com&utm_medium=referral&utm_content=pastas/metran&utm_campaign=Badge_Grade) [![Codacy Badge](https://app.codacy.com/project/badge/Coverage/43056ec3f22341fa992fff4e7b2eeb73)](https://www.codacy.com/gh/pastas/metran/dashboard?utm_source=github.com&utm_medium=referral&utm_content=pastas/metran&utm_campaign=Badge_Coverage)

# Metran

Metran is a package for performing multivariate timeseries analysis using a technique called dynamic factor modelling. It can be used to describe the variation among many variables in terms of a few underlying but unobserved variables called factors.

## Installation

To install Metran, a working version of Python 3.7 or 3.8 has to be installed on your computer. We recommend using the Anaconda Distribution with Python 3.7 as it includes most of the python package dependencies and the Jupyter Notebook software to run the notebooks. However, you are free to install any Python distribution you want.

To install metran, type the following command

pip install metran

To install in development mode, clone the repository and type the following from the module root directory:

pip install -e .

## Dependencies

Metran has the following dependencies which are automatically installed if not already available:

  • numpy>=1.16.5

  • pandas>=1.0

  • scipy>=1.1

  • matplotlib>=3.0

  • pastas>=0.16.0

  • numba

## Examples

For a brief introduction of the theory behind Metran on multivariate timeseries analysis with dynamic factor modeling see the notebook:

A practical real-world example, as published in Stromingen (Van Geer, 2015), is given in the following notebook:

A notebook on how to use [Pastas](https://github.com/pastas/pastas) models output with Metran:

## References

  • Berendrecht, W.L. (2004). State space modeling of groundwater fluctuations.

  • Berendrecht, W.L., F.C. van Geer (2016). A dynamic factor modeling framework for analyzing multiple groundwater head series simultaneously, Journal of Hydrology, 536, pp. 50-60, doi:<http://dx.doi.org/10.1016/j.jhydrol.2016.02.028>.

  • Van Geer, F.C. en W.L. Berendrecht (2015) Meervoudige tijdreeksmodellen en de samenhang in stijghoogtereeksen. Stromingen 23 nummer 3, pp. 25-36.

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

metran-0.1.0.tar.gz (26.9 kB view details)

Uploaded Source

Built Distribution

metran-0.1.0-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

Details for the file metran-0.1.0.tar.gz.

File metadata

  • Download URL: metran-0.1.0.tar.gz
  • Upload date:
  • Size: 26.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for metran-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8f67f1d72f58ac2c739cac8678f32163dcf16d4691f2a0807967d7118a5f015e
MD5 a801adfe737c294060f581ed7d8c48a4
BLAKE2b-256 0665b655c4456b29962fa60fa30beb9db0326b8c17b3261a6bd822c391d95e17

See more details on using hashes here.

File details

Details for the file metran-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: metran-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 28.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for metran-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c02d6f7912e3e0ddaddd16bc63bbe8deb77972c658dbe58660c6b0d86c55083
MD5 9570ffeeb25ac9323730a825f4e9793d
BLAKE2b-256 7daafa520494737e14460dd16e73a7844f2e185eebb1a35c4b83f02d346921bd

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