Mickaël Accensi
Lab. Ocean Physics & Satellite remote sensing (LOPS)
CNRS-Ifremer-IRD-UBO
Grid generation with gridgen
Short course on ocean waves
4 April 2023
Outline
1. gridgen
2. Reference data
3. Grid type and coordinate system
4. grid creation
5. boundary creation
6. multi-grid nesting
short course on ocean waves
gridgen
To run WAVEWATCH-III on a given domain, you need to provide 3 grid files :
gridgen tool is developed by NOAA/EMC https://github.com/NOAA-EMC/gridgen
the IFREMER version is based on NOAA/EMC version with some improvements :
short course on ocean waves
reference data
To run properly, gridgen need :
short course on ocean waves
grid type and coordinate system
gridgen handles either :
short course on ocean waves
grid type and coordinate system
gridgen handles either :
geostrophic coordinate system [deg] :
fixed resolution for latitudes and longitudes
projected coordinate system [m] :
Mercator Conformal Cylindrical projection
short course on ocean waves
grid type and coordinate system
gridgen handles either :
geostrophic coordinate system [deg] :
latitude-dependent resolution for longitudes and a fixed resolution for latitudes
projected coordinate system [m] :
Lambert Conformal Conic projection
short course on ocean waves
grid type and coordinate system
It’s all matter of your own grid type and coordinate system but …
… the convention for WAVEWATCH-III ® must be :
note : even if curvilinear grids, WW3 will use the same propagation routine, it will convert back and forth the curving space into straightened space to propagate the wave action density
note : curvilinear grids can also be used for rotated grids or shoreline-following grids with higher resolution near shore…
short course on ocean waves
grid creation
The grid creation is a four steps process :
Step 1: Build a bathymetric grid from
a high resolution base bathymetry
Step 2: Create an appropriate land / sea mask
to accurately depict coast lines
Step 3: Mask out unnecessary water bodies
Step 4: Generate obstruction grids
for unresolved islands
short course on ocean waves
grid creation
Step 1: Build a bathymetric grid from a high resolution base bathymetry
note : lim_bathy is usually set at 0.5. It provides the initial land-sea mask which will be refined at step2.
short course on ocean waves
grid creation
Step 1: Build a bathymetric grid from a high resolution base bathymetry
0.1
0.7
0.9
0.4
short course on ocean waves
grid creation
Step 2: Create an appropriate land / sea mask to accurately depict coast lines
note : boundary can be disabled with READ_BOUNDARY parameter.
note : for computation time efficiency, boundaries can be splitted. see MIN_DIST and SPLIT_LIM parameters
short course on ocean waves
grid creation
Step 2: Create an appropriate land / sea mask to accurately depict coast lines
note : dry cells can not be switched back to wet
note : an additional width around the boundaries can be added to check if wet cells are being crossed by the boundaries. see OFFSET parameter
note : additional coastal polygon can be added (lakes are missing in GSHHS…). see OPT_POLY parameter
grid cell at boundary
outside
inside
coastal
boundary
short course on ocean waves
grid creation
Step 2: Create an appropriate land / sea mask to accurately depict coast lines
depth (0.1)
depth (0.1) + land-sea mask
short course on ocean waves
grid creation
Step 3: Mask out unnecessary water bodies
short course on ocean waves
grid creation
Step 4: Generate obstruction grids for unresolved islands
note : also implemented for curvilinear grid.
see create_obstr_curv.m
obstruction ratio
wave energy
short course on ocean waves
boundary creation
The boundary creation can be done in 3 ways. see BOUND_SELECT parameter :
Option 1: Manually set active boundaries by clicking on the map
Option 2: Automatically set active boundaries at grid open sea boundaries
Option 3: define a polygon from google-earth
short course on ocean waves
output files
Parameters FNAME and FNAMEB define to filenames prefix of respectively the grid and the base grid. It is usually composed by gridname and resolution, for example :
The output of grid creation :
The output of boundary creation :
short course on ocean waves