Hi,
We would like to define a SWAN grid exactly the same as our ROMS grid so that we can couple the two. Our ROMS grid is curvilinear. On reading the SWAN manual, I think I have to set COORDINATES CARTESIAN and CGRID CURVILINEAR followed by READGRID from a file generated from the lat-lon ROMS rho-grid converted to distances in m (using ArcGIS). When I run SWAN I get error messages like grid angles not between 0 and 180 degrees.
I was wondering if anyone has some tips on how to setup the SWAN input file to couple to curvilinear ROMS applications. Is the answer to use SCRIP to interpolate between a NAUTICAL SWAN grid and ROMS? This is not an easy option I think!
Thanks,
Marcel
Curvilinear SWAN coupling
-
- Posts: 9
- Joined: Fri Oct 22, 2004 8:32 pm
- Location: Numerics Warehouse Ltd.
Re: Curvilinear SWAN coupling
i suggest you use:
MODE NONSTATIONARY TWODIMENSIONAL
SET DEPMIN 0.10 INRHOG 1 NAUTICAL
COORDINATES SPHERICAL
CGRID CURVILINEAR ....
REDGRID COORDINATES ...
IF you sue coords spherical, then you can make your swan gridcocord file from the roms lon_rho and lat_rho values.
Here is an mfile that you can try to make the grid and bathy swan files from a roms netcdf grid file.
also see:
https://www.myroms.org/wiki/index.php/swan.in
about specific commands that you need to have in INPUT for the coupling to work correctly.
also see
MODE NONSTATIONARY TWODIMENSIONAL
SET DEPMIN 0.10 INRHOG 1 NAUTICAL
COORDINATES SPHERICAL
CGRID CURVILINEAR ....
REDGRID COORDINATES ...
IF you sue coords spherical, then you can make your swan gridcocord file from the roms lon_rho and lat_rho values.
Here is an mfile that you can try to make the grid and bathy swan files from a roms netcdf grid file.
also see:
https://www.myroms.org/wiki/index.php/swan.in
about specific commands that you need to have in INPUT for the coupling to work correctly.
also see
- Attachments
-
- roms2swan.txt
- (1.84 KiB) Downloaded 430 times