Filtering inertia-gravity waves from the initial conditions of the linear shallow-water equations

A filter is developed that removes inertia-gravity waves from the initial conditions of the linear shallow-water equations.

These scripts implement the filtering procedure described in:
"Filtering inertia-gravity waves from the initial conditions of the linear shallow-water equations"
Alexander Barth, Jean-Marie Beckers, Aida Alvera-Azcárate, Robert H. Weisberg
In press at Ocean Modelling

Download

The latest version of this program can be obtained at http://ocgmod1.marine.usf.edu/WF/WaveFilter-1.1.tar.gz

This program is released under the terms of the GNU General Public License version 2 or later.

Requirements

The code is written for GNU Octave (http://www.octave.org) and for Matlab. If you don't have Matlab installed, I recommend you to use GNU Octave.

The code has been tested with Octave 2.9.12 and Matlab 2006a on Linux.

Octave users: make sure that Octave is compiled with sparse matrix support. The scripts won't probably work with Octave 2.1.x and older. Please use a more recent version of Octave.

Installation

Extract the archive and add the script directory to your path by:

addpath('/absolute/path/to/WaveFilter-1.1');

with obvious substitution. :-)

Testing

Run filter_test. You should see:

octave:1> filter_test
Testing filter_vort: OK
Testing filter_var:  OK

Documentation

See the paper:
"Filtering inertia-gravity waves from the initial conditions of the linear shallow-water equations"
Alexander Barth, Jean-Marie Beckers, Aida Alvera-Azcárate, Robert H. Weisberg
In press at Ocean Modelling
and "help filter_vort" and "help filter_var" in Octave or Matlab.

Changes log

version 1.0
Initial release. Support for curvilinear grids.
version 1.1
Several performance optimizations.

Troubleshooting

If you experience a problem with this code, you can contact me at abarth at marine dot usf dot edu or barth dot alexander at gmail dot com. Please provide me the following information:

Alexander Barth

Valid XHTML 1.0 Strict