/fvcom-toolbox

Fork of the fvcom-toolbox (original available at https://github.com/GeoffCowles/fvcom-toolbox)

Primary LanguageMATLABMIT LicenseMIT

fvcom-toolbox

The fvcom-toolbox is a collection of MATLAB and some FORTRAN90 scripts for the purpose of preparing and postprocessing data from the Finite Volume Community Ocean Model (FVCOM). These include:

  1. Scripts for preparing input files for FVCOM (wind forcing, open boundary forcing, river forcing, etc.)
  2. Scripts for converting meshes from SMS to FVCOM
  3. Scripts for postprocessing FVCOM data using MATLAB
  4. Scripts for preparing data for the unstructured SWAN model

Notes:

(0) Some third-party MATLAB toolboxes are required for some functions:

(1) The html based documentation is generated using m2html and is available with the download (see doc/index.html)

(2) The code was originally maintained at a Google Code repository (http://code.google.com/p/fvcom-toolbox/). This repository was used between Sep, 2010 (initial commit) and July, 2013 when it was moved to github (https://github.com/GeoffCowles/fvcom-toolbox). Commit history was not maintained during the move as substantial revisions had been made to the code by Plymouth Marine Laboratory members outside of version control. The github trunk includes most of these changes noted in the file headers and noted in the file PML_ChangeLog.txt. Although the development from the version included in FVCOM (github.com/GeoffCowles/fvcom-toolbox) is discontinuous from the version worked on by PML (and NOC and others), a commit history is available at http://gitlab.ecosystem-modelling.pml.ac.uk/fvcom/fvcom-toolbox or https://github.com/pwcazenave/fvcom-toolbox.

The PML version of the toolbox includes tagged releases, which can be downloaded as standalone (and thus relatively stable) versions. See the PML_ChangeLog.txt for details. Links to the direct downloads are:

To download the version included in the FVCOM source code, go to https://github.com/GeoffCowles/fvcom-toolbox.

There are examples of how to use the toolbox in the examples subdirectory.

TODO:

If you are stuck for something to get started with on the toolbox, there are some parts which are in need of some attention:

(0) The original MATLAB code used a third-party netCDF toolbox to write FVCOM input files. This library is largely redundant as recent versions of MATLAB include this functionality by default. Some functions in the toolbox still use the old toolbox:

  • examples:
    • example_FVCOM_wind_ts.m
  • fvcom_prepro:
    • add_sigma_forDT.m
    • wrf2fvcom_U10V10.m
  • swan_scripts:
    • calc_tauw.m
    • swan2netcdf.m
  • utilities:
    • calc_tauw.m
    • gridvecs.m

(1) We need more tests in the tests subdirectory!

(2) Port the few FORTRAN codes to MATLAB to make this a more portable toolbox.