This is a toolkit/collection of scripts, functions, bits of files that help to make the lab work go smoothly in the Geophysical Fluid Dynamics lab in Newcastle University.
The lab data primarily comes in 2 forms:
- image-type data from cameras, processed initially in DigiFlow
- density profile data from microconductivity probes (which run on an Arduino system) There is also metadata stored on paper record forms and in excel based index sheets.
The scripts contain the main functions to run the systems, read this data into MATLAB and analyse, as well as in places scripts that interface into other software (primarily here DigiFlow). A couple of the MATLAB scripts help in the basic day-to-day running of the lab.
First off:
git clone --recurse-submodules https://github.com/HartharnSam/ISWLabToolkit
Then you'll want to add this whole ordeal to your MATLAB path, which can be done:
- temporarily with
addpath(genpath('path/to/the/toolkit')); - permanently by adding the addpath... code to
startup.m. startup.m should be found in the file you find by typing userpath into the matlab command window - if it is not, create one.
| I want to: | Start Here |
|---|---|
| Read DigiFlow files | dfiread, dfdread, dfi_grid_read, dfsread, ptv2mat |
| Plot DigiFlow images | plot_timeslices, plot_dfi |
| Extract wave amplitude/wavelengths/speeds | LabWaveProperties |
| Compare to theory waves | calc_DJL, calc_kdv |
| Calculate dissipation and APE | calc_dissipation, dfi_ts2APE |
| Feature identification | find_boundaries |
| Day-to-day file management | setup, copycamfiles |
| Camera setup | camera_parallelisation, twocameras.dfc, UniqVision_ setup files |
| Run & Process probe data | ./src/probes |
Things I found useful in this code writing:
- MatPIV: A package which does the same PIV and PTV calculations in MATLAB. Helped me understand what's going on.
- ISW_ParticleTrackModel : A Package for tracking particles at the surface as part of the ISW in Ice Covered Waters Project (ONE Planet PhD Studentship)
Versioning Tool for GitHub is provided using the following guide