Actions

Time Series Analyses with Mathematica

From BAWiki

Revision as of 10:23, 17 June 2010 by imported>BAWiki 1

Für das Programm Mathematica ist im Laufe der Zeit eine Funktionssammlung (Stand Dez. 2009: 80 Funktionen) entstanden, die in Form einer Bibliothek /eines Paketes in die Software eingebunden werden kann. Diese historisch gewachsene Funktionsbibliothek ist im Rahmen der Beweissicherung Elbe entstanden und wurde in der laufenden Projektarbeit aktualisiert und angepasst. Das Paket nutzt die Methoden der Version 7 von Mathematica und ist deshalb auch nur mit dieser Version vollständig einsetzbar. Folgende Themengebiete können den Funktionen zugeordnet werden:

Data Import / Export

For data exchange with our own data format (BOE) the package provides import and export functions. Moreover Mathematica provides itself a lot of standard file formats and support SQL to access databases.

Time Series Functions

There are a lot of functions doing the following: check time series, deliver meta-data about time series, extract parts of time series, calculates statistics and trends, doing interpolation, calculate mean time series, ...

Drawings / Figures

With the function TSListPlotArray figures can be build up which contains one or more time series. The function ListPlotSpektrum does the same but for spectral information. Both functions provide a lot of options for the design of figures.

Interactive Applications

The functions TSListPlotArrayI and ListPlotSpektrumI build up an interactive application. Most of the options from the functions TSListPlotArray and ListPlotSpektrum can be manipulated interactively.
TSListPlotArrayI and the generated interactive application

Zeitreihe.png

TSListPlotArrayI and the generated interactive application

Spektrum.png

Tidal Characteristic Values

For determine the high and low water three functions are available. These functions are tested at many tide gauge water level time series and work quite good. Other functions calculate the tide level, half tide level and the mean water.

Spectral Analysis and Filtering

One function calculates the spectrum out of the time series. This function supports different window function and zero padding. A lot of window functions are also accessible. Filtering can be done with a moving window or a low-pass (butterworth) filter.

Partial Tides

Workshop partial tides

Determing the amplitudes and phases of partial tides one can use different functions: some are based on spectral methods and one base on regression/fitting. Furhermore there are functions caculating the frequency out of a doodson-number and compose a synthetic time series out of a set of partial tides (amplitudes and phases).

Some Special Functions for Vector Data (f.ex. currents)

The main direction of a current time series can be determined, current time series can be normalised to their main direction (´vector to scalar) and slack water time as well as the maximum between two slack water events can be determined.

A more detailed description of the functions and some applications can be found in the pdf document "time series analyses with mathematica with the package MKToolsMM7.m" (in german only).


Workshop Partial Tides

The pdf documents (in german only) of the mathematica notebooks from the workshop "determing amplitudes and phases of partial tides" (14.Dec.2009):


back to Mathematica