%call otps2frc_v3_dcf

addpath /home/beach/guest/dafu8991/CALUS/TIDE/matlab/tidal_ellipse/
addpath /home/beach/guest/dafu8991/CALUS/TIDE/matlab/tides/
addpath /home/beach/guest/dafu8991/CALUS/TIDE/matlab/tri/
addpath /home/beach/guest/dafu8991/CALUS/TIDE/M_FILES/


% OTPX tidal model output.
data = './DATA/Model_Mex';
%data='/home/beach/guest/dafu8991/TIDES/DATA/Model_Mex';


t=datenum(2008,1,1); %reference starting date, same as TIDE_Start
tpred=datenum(2008,1,1); %?  set same as start
gfile='/home/beach/guest/dafu8991/CALUS/FORCING/GRID/swf_grid4.nc'; 
%  otps2frc_v3_dcf(gfile,t,tpred,'tide_interp2.nc', ...
%      '/home/beach/guest/dafu8991/TIDES/DATA/Model_Mex') 

otps2frc_v3_dcf(gfile,t,tpred,'tide_interp2.nc',data) 
