-
Notifications
You must be signed in to change notification settings - Fork 0
/
wavewatch.html
72 lines (59 loc) · 3.88 KB
/
wavewatch.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<html>
<head>
<title>Wavewatch Install</title>
<style>
h1 {text-align: center; color: tomato; font-size:60px;}
h2 {text-align: left; color: black; font-size:40px;}
h2 {text-align: left; color: black; font-size:30px;}
h3 {text-align: center; color: black; font-size:18px;}
p {text-align: left; color: black; font-size:18px;}
img {display: block; margin-left: auto; margin-right: auto;}
footer {text-align: center; color: grey;}
</style>
</head>
<body>
<h1>Wavewatch III and relevant appliacations</h1>
<h3>Create date: May 6 2024</h3>
<p>Go back to the main page <a href="index.html" target="_self">View</a></p>
<h2> Wavewatch III </h2>
<p> Download Wavewatch III (WW3) source code: </p>
<p style="background-color:grey;">git clone https://github.com/NOAA-EMC/WW3</p>
<p> This will create a folder named as 'WW3'. Go to the 'WW3' directory, and run following command: </p>
<p style="background-color:grey;"> ./model/bin/ww3_from_ftp.sh </p>
<p> This will download the binary and large files used for WW3 test cases in 'regtest' directory. These are large files that are not sotred in the git repository. Go to the 'WW3' directory, and start setting up: </p>
<p style="background-color:grey;"> ./model/bin/w3_setup model </p>
<p> This will compile auxiliary programs and setup the environment file wwatch3.env</p>
<p>WAVEWATCH III allows the results obtained to be exported in NetCDF-4 format. For this, the versions of the installed NETCDF library must be verified, add following command in '.bashrc' file:</p>
<p style="background-color:grey;"> PATH=$PATH:/proj/snic2021-23-400/users/x_zhach/envi/WW3/WW3/model/bin </p>
<p style="background-color:grey;"> WWATCH3_NETCDF=NC4 </p>
<p style="background-color:grey;"> NETCDF_CONFIG=/software/sse/manual/netcdf/4.4.1.1/HDF5-1.8.19-nsc1-intel-2018a-eb/bin/nc-config </p>
<p style="background-color:grey;"> OASISDIR=/proj/snic2021-23-400/users/x_zhach/envi/WW3/oasis3-mct </p>
<p> All WW3 executable commands are stored in bin for its compilation. After previous commands, WW3 is ready to be compiled under the configuration required by the user. For any compilation, write the following command from the bin directory</p>
<p style="background-color:grey;"> w3_setup /home/user/WW3/model -c comp -s switch </p>
<p> the comp keyword can be mpt, intel, gfortran, pgi, and the switch keyword can be the suffix of a provided switch file in the 'bin' folder.</p>
<p> Make wwatch3.env accessible</p>
<p style="background-color:grey;"> chmod +rwx wwatch3.env </p>
<p> Go back to WW3 folder, create a file named 'build', go to this file. Run following command: </p>
<p style="background-color:grey;"> cmake .. -DSWITCH=switchname -DCMAKE_INSTALL_PREFIX=install </p>
<p> The last steps are: </p>
<p style="background-color:grey;"> make </p>
<p style="background-color:grey;"> make install </p>
<p> It will create a new folder in '/build/bin', where stores WW3 functions. </p>
<img src="IMG/bin.jpg" alt="airsea" style="width:800px;">
<footer>Subprograms in the bin folder</footer>
<img src="IMG/ww3func.png" alt="airsea" style="width:800px;">
<footer>Functions of subprograms</footer>
<h2> Gridgen </h2>
<p> Gridgen is a MATLAB program to create files that contain bathimethric information to be used in WW3. Download Gridgen: </p>
<p style="background-color:grey;"> git clone https://github.com/NOAA-EMC/gridgen </p>
<p> Run the 'setup_gridgen.m' function, automatically downloading bathimethric data: </p>
<p style="background-color:grey;"> matlab setup_gridgen.m </p>
<h2> OASIS-MCT </h2>
<p> In order to couple WW3 with other climate models (ice, ocean or atmosphere model), OASIS-MCT needs to be installed: </p>
<p style="background-color:grey;"> git clone https://gitlab.com/cerfacs/oasis3-mct.git </p>
<h2> Further read </h2>
<p>1. Latest version of WW3 manual. </p>
<p>2. WW3 tutorial </p>
<embed src="DOC/WW3tutorial.pdf" width="100%" height="1000px" />
</body>
</html>