Giter VIP home page Giter VIP logo

mitt's Introduction

MITT

Multi-Instrument Turbulence Toolbox (Matlab)

For full description of toolbox, please "MacVicar, B.J., S. Dilling, and R.W.J. Lacey, (accepted) Multi-Instrument Turbulence Toolbox (MITT): Open-source MATLAB algorithms for the analysis of high-frequency flow velocity time series datasets Computers and Geosciences.

Description

MITT is designed to: i) organize the data output from multiple instruments into a common format; ii) present the data in a variety of interactive figures for visualization; iii) clean the data by removing data spikes and noise; and iv) classify data quality. The scope of the toolbox is currently limited to high frequency (≥ 20 Hz) instruments that are commonly used in field and lab experiments of open-channel flow.

A common data format, modeled after the output format of the Nortek Vectrino II (VII)™ velocity profiling instrument, is used to save the output from MITT. Two structure arrays called Data and Config store the recorded data and configuration parameters, respectively.

MITT is capable of handling instruments that sample either a single volume (called a ‘cell’) or multiple cells in parallel (i.e. simultaneously or quasi-simultaneously) or in series (i.e. one after another). Single cell instruments for which Organize algorithms have been created include the Sontek Acoustic Doppler Velocimeter ™ (ADV), the Nortek Vectrino™, and the Marsh-McBirney Electomagnetic Current Meter (ECM). These instruments can be linked to record multiple cells in parallel. Multiple cell instruments for which Organize algorithms have been created include the VII and the Metflow Ultrasonic Doppler Velocity Profiler (UDVP). Multiple UDVP probes can be multiplexed but the software records data from different probes in series. Within the appropriate subfields, single cell time series are stored in single columns while multiple cells in parallel are stored in a matrix with the rows and columns representing the time interval and the cell number, respectively. Multiple cells recorded in series are stored in separate files with their own Data and Config structure arrays.

Four figures have been designed to visualize recorded data and aid in the assessment of data quality. The available figures are:

  1. The interactive quality control window - profile statistics can be displayed and the effect of different quality control classifications can be visualized,
  2. The time series plot - full recorded velocity time series along with signal correlation data, box plots, and frequency spectra
  3. The time-space velocity matrix plot; and
  4. The sampling cell locations plot.

Getting Started

Before the master program (MITT) is started, the user must create a CSVcontrol file using the format specified in Table 1 and containing, at a minimum, the parameters specified in Table 2. Care should be taken to ensure that the file names included in the CSVcontrol file match the instrument output file names. The CSVcontrol file and instrument output files must be located in the same directory/folder.

To begin using MITT:

  1. Open MATLAB and open the directory where the MITT programs are located.
  2. From the command line run MITT. The MITT launch window opens (Figure 1).
  3. Click the ‘Select File’ box. This opens a browser window to search for the CSVcontrol file.

To upload and organize the raw data into MATLAB format:

  1. Click the ‘Organize raw Data and Config array’ tick box. A set of tick boxes appears allowing the user define the channel geometry and custom sampling locations if desired.
  2. Click the ‘Run Analysis’ button. The structured arrays Data and Config are created in a *.MAT file named after each raw data time series.

To clean the time series:

  1. Click the ‘Clean raw time series’ tick box. The ‘Clean block options’ tick boxes are displayed. The ‘reset despiked and/or filtered time series’ should be ticked if the cleaning algorithms are being rerun.
  2. Clicking ‘Plot all time series’ will generate a time series plot for each series (e.g., Figure 4). This is recommended as a first quality control measure. Alternatively, the time series plots can be created from the Interactive Quality Control window (Figure 2).
  3. Click the ‘Despike’ tick box to clean the data. Four de-spiking methods appear and the user has the option to tick one or more to clean the data.
  4. Click the ‘Frequency filter’ tick box to filter the data series. The only filter option is a low pass 3rd order Butterworth filter.
  5. Click the ‘Run Analysis’ button. The cleaned and filtered data series are stored in the Data array.

To classify the quality of the time series

  1. Click the ‘Classify quality of time series’ tick box. The ‘Classify block options’ tick boxes are displayed along with the classification parameters. The ‘reset classifications with listed parameters’ should be ticked if the classification is being rerun.
  2. Click the ‘Interactive quality control GUI’ tick box to obtain the interactive plotting figure (Figure 2). Otherwise the classification is done automatically for all files listed in CSVcontrol.
  3. Click the ‘Plot classification results in tables’ tick box to obtain a popup window output of classification results for each time series.
  4. Click the ‘Run Analysis’ button. The classification parameter results are stored in Config.Qdat and the results of the analysis (1 = good data, 0 = poor data) are stored in Config.goodCells.

Table 1 - csvcontrol file format example. Probe elevations should be entered as true elevations (i.e. not relative to the bed). Columns may be in any order and additional columns may be used to save additional parameters as subfields in Config. For example, the discharge ‘Q’ would be saved as Config.Q.

instrument filename zpos xpos ypos waterDepth bedElevation Q
%s %s %f %f %f %f %f %f
Vectrino Example1 0.2 0.5 0.4 1 0 .054
Vectrino Example2 0.4 0.5 0.4 1 0 .054

Table 2 - Variables required for analysis and visualization algorithms. These variables can be input directly using the CSVcontrol file (Table 1) or can be calculated using custom subprograms

Parameter Description
instrument Instrument type. Current options are ‘ECM’, ’ADV’, ’Vectrino’, ’VectrinoII’, or ’UDVP’
filename File where raw data is stored. File should be located in same directory as the control file.
waterDepth Depth of water at measurement location (m)
bedElevation Bed elevation at measurement location (m)
xpos Streamwise position of sampling volume (m)
ypos Lateral position of sampling volume (m)
zpos Vertical position of sampling volume (m)

mitt's People

Contributors

macvicab avatar

Watchers

Jeffrey A. Tuhtan avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.