Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titlemesh2tides.m
collapsetrue
%Short script to add tides to your .14 and .15 using TPXO9 
%Author: Kenton Wu
%Date: Jan 23rd, 2023 
%In: .14, .14 &
.15 files
%Out: .15 file with 

clear; clc; 

addpath('..')
addpath(genpath('../utilities/'))
addpath(genpath('../datasets/'))

%Load mesh - option 'fname' is your mesh file datagenerallly, 'aux' is extras
mesh = msh('fname','datasets/fort.14','aux',{'original.15'}); 


%Write tidal information  
start_time = '13-Aug-2017 12:00'; 
final_time = '15-Sep-2017 00:00';  
mesh = Make_f15(mesh, start_time, final_time, 2, 'const', 'major8','tidal_database','datasets/Tpxo9/h_tpxo9.v1.nc');

%Write out 15 (control file 
write(mesh,'harvey2017_08_13_12','15')
 
 


Info
Remember to run adcprep on your 15 file after if you're doing a parallel run! 

...

Page Properties
hiddentrue


Related issues