This notebook shows how to create FVCOM forcing data for an unstructured grid.
We need an SMS unstructured grid (.2dm file) in which we have defined some nodestrings to act as open boundaries.
We’ll be making the following files:
casename_grd.dat
casename_dep.dat
sigma.dat
casename_obc.dat
casename_cor.dat
casename_elevtide.nc
%matplotlib inline
from datetime import datetime
import PyFVCOM as pf
# Define a start, end and sampling interval for the tidal data
start = datetime.strptime('2018-04-01', '%Y-%m-%d')
end = datetime.strptime('2018-05-01', '%Y-%m-%d')
interval = 1 / 24 # 1 hourly in units of days
model = pf.preproc.Model