Matlab Exchange Thread

by Tyson Hilmer last modified Dec 02, 2008 10:52 AM
Up to Software

Matlab Exchange Thread

Posted by Tyson Hilmer at May 31. 2006
I spend quite a bit of time using Matlab, usually writing scripts someone else has already done.  To prevent further re-invention of the wheel, I thought it might be usefull to have a place to exchange matlab scripts/functions/etc. for working with Nortek data.  

To start things off, I'm attaching a script for converting Aquadopp Profiler ASCII data to matlab .mat files.  The raw .prf file must first be converted using Nortek's AquaPro into ASCII format.  Do not check "include wave burst time" during AquaPro conversion.

Although bin2mat already provides a similar function, I wanted access to the raw data, and all of it.  The output is: **~Profile.mat : contains all the general information plus profiles
**_####.mat: each individual waveburst

Unfortunately I cannot offer tech support, but I will continue to post updated versions.
Current state: Being created

Matlab Exchange Thread

Posted by Tyson Hilmer at May 31. 2006
Here's another fun one.  Our Aquadopp Profilers are in extremely shallow water (~1.5m), and thus go dry during low tide.  This script shows why it is important to remove cells above water level, as the  velocity data is random and meaningless.
Current state: Being created

Matlab Exchange Thread

Posted by Tyson Hilmer at June 06. 2007
Here is a simple one for calculating the position of the profiler's measurement cells.  Distances are in along-beam direction, so multiply by cos(beam_angle) to get vertical depth.

We deploy in shallow water, where cells are sometimes out of the water.  Comparing this distance to the pressure reading allows me to discard cells above the water surface.
Current state: Being created

Re: Matlab Exchange Thread

Posted by Øistein Hurum at December 18. 2007

(Posted by NickMortimer Dec. 05 2007)

Hi All,

I've been getting into writing MEX files for matlab. Here is a mex file for converting *.vec files to matlab structures.

Please note that it is only compiled for windows. But could compile for Linux at a later date.

Note there seems to be a reduction of about 70% in file size.

I have tried to keep the original types where possible.

Just unzip to a directory on the path and type nortek_vconvert

It takes about 30 - 50 seconds on my old machine :p

It saves the .mat file in the same dir as the original file.

Have fun

I'd be interested to here from you

Nick

Current state: Being created
Attachments

Re: Matlab Exchange Thread

Posted by Mike McCann at December 01. 2008

I appreciate the the bin2mat software has been made available for Windows platforms; unfortunately, our data processing infrastructure is on Linux.

Can a Linux port or the source code be made available?

Re: Matlab Exchange Thread

Posted by Torstein Pedersen at December 02. 2008

 

 Hello Mike,

 

The source code was posted in another thread titled "Nortek to Matlab". If the following link works you will find it towards the bottom of the discussion.

Nortek to Matlab

 

You will also note that there a user, Nick Mortimer, has done is own MatLab tools for converting to MatLab format. It is better in the sense that it works ,-) I encourage you to try this or get in contact with him if you are looking to further develop this.

 

kind regards,

Torstein

 

Powered by Ploneboard
Document Actions
Log in


Forgot your password?
New user?