Parker MacCready, UW Physical Oceanography


PM_tools

These are tools for the preparation of ROMS configuration and forcing files, currently focused on the RISE ROMS 2.2 simulations. In general these are NetCDF files.

most recently edited 9/17/07

OVERVIEW: These are designed to work in MATLAB, and live in a directory called "PM_tools." They are in part based on the ROMS-AGRIF Roms_Tools created by Perrick Peneven, particularly the code that begins with "ZPP." The overall idea is that we are creating the grid file, forcing files (atmospheric, tides, and rivers), and climatology files (climatology, initial, and boundary). All are NetCDF files, so you need to have the netcdf toolbox installed so it works in MATLAB. These files almost completely define a ROMS run, and you need only edit a few other ROMS files, as described at the end. We avoid the use of analytical.F here. Work in MATLAB, in the PM_tools directory. All files that begin with "Z" live in the Functions directory.

The files are stored on our server.

STEP 1. Create the grid file

STEP 2. Edit the landmask by hand, if desired

STEP 3 (any order). Make the tidal forcing

STEP 3 (any order). Make the river forcing

STEP 3 (any order). Make the atmospheric surface forcing

STEP 4 (THREE PARTS!). Make the climatology, boundary, and initial files

THEN YOU'RE DONE! A useful tool is the low resolution test run whose basename is cr6. You can make the forcing files for this in just a few minutes, and it runs for 3 months of model time in just ~30 minutes on my laptop. The cppdefs.h flag for this run is TPLUME, and suitable Include/cppdefs.h and External/ocean_tplume.in files are included in the directory cr6_ROMS_files. There you will also find a copy of the only other two files that (I think) have to be edited differently from the release version of ROMS 2.2). One is Utility/set_nudgcof.F where we set the region and strength of the region of nudging to climatology. The other is Modules/mod_param.F where you have to set the grid size. Note that if your basic rho-grid has size [R,C] e.g. as reported by the tool nc_info.m, then in mod_param.F you have to set Lm = C-2 and Rm = R-2.