pyMICA, Meteorological variable Interpolation basedon Clustered Analysis


License
MIT
Install
pip install pymica==0.0.38

Documentation

PyPI Anaconda-Server Badge Documentation Status Build Status Binder

Logo

(py)Meteorological variable Interpolation based on Clustered data Analysis

pyMICA is an interpolation system that combines multiple linear regressions and clustering. The philosophy of MICA is based on an iterative process to reduce the final error of the interpolated field.

The iterativeness of MICA is that there is not a defined number of clusters in which stations are grouped or divided but several number of clusters are considered and the one that performs the best, in terms of RMSE, is selected.

What is MICA and how it works

MICA spatially interpolates meteorological surface observations through multiple linear regressions (MLR) and residual corrections. Two options are available: using a simple MLR for all the surface observations or divide them in clusters.

The first option implies the calculation of a MLR considering all the observations at once and using explanatory variables, such as altitude, distance to coast, latitude and longitude. The second option uses clusters to classify stations in different groups. This allows to separate stations that may behave differently due to the presence of dissimilar weather conditions. For example, weather stations placed at a similar altitude, ones under the effects of fog and others with clear sky conditions.

A complete explanation of how it works and the idea behind MICA can be found in pyMICA documentation

If you use pyMICA, please cite us as:

Casellas, E., Bech, J., Veciana, R., Miró, J. R., Sairouni, A., & Pineda, N. (2020). A meteorological analysis interpolation scheme for high spatial-temporal resolution in complex terrain. Atmospheric Research, 246, 105103.

Installation

To install pyMICA you can have a look at pyMICA installation documentation.

Use

A set of examples were designed to explore the different possibilities of MICA.

Another repository was created to store sample data and the examples in jupyter notebooks pymica-examples

Try the demo | Read the docs