Hi,

This package provides source, libraries and binaries for fes2004.
Fes2004 is a solution for the tide from the mogd2D barotropic model
developped at LEGOS (Toulouse). This package is oriented to be used 
under windows XP for the MOHID software developed at MARETEC 
(Lisbon).

Cheers!
G.R. 2006-02-10 

MANUAL

0 WHAT'S IN THIS PACKAGE?

 + a bunch of .h, .c and .cpp source files
 + a bunch of .lib and .a files
 + netcdf and WinGsl .dll files
 + fes2004 and mohid-tide of .exe files
 + sample input files (.xyz, .dat)
 + netcdf datafile tide.nc (nearly 600 MB!)
 Original netcdf datafiles are found at LEGOS:

http://www.legos.obs-mip.fr/en/soa/cgi/getarc/v0.0/index.pl.cgi?donnees=maree&produit=modele_fes

REMEMBER!!!!
->The binaries are already included in this package, so you can
just skip chapter 1 of this manual ;)
->Better read the important notes in chapter 3!

1 BUILDING THE BINARIES

1.1 COMPILE FES2004LIB.A

->In order to compile fes2004lib.a from this package under WinXP just make sure that:

-You create a new C static library project.
-You add all the source files (except mohid-tide.cpp and fes2004_main.c)
contained in the source directory (.\src) of this package to your project.
-".\inc" is added in the Include paths.
-".\lib" is added in the Libraries paths.
-"netcdf.lib" and "WinGsl.lib" are added in the library dependencies.
-"netcdf.dll" and "WinGsl.dll" exist in ".\bin".

Build it, and you should have no problem.

1.2 COMPILE FES2004.EXE 

->In order to compile the original fes2004.exe executable

-create a new C console application project.
-add "fes2004_main.c" in the source directory (./src) of this package to your project.
-".\inc" is added in the Include paths.
-".\lib" is added in the Libraries paths.
-"fes2004lib.a" or "fes2004lib.lib", "netcdf.lib" and "WinGsl.lib" are added 
in the library dependencies.
-"fes2004lib.a" or "fes2004lib.lib" exist in ".\lib".
-"netcdf.dll" and "WinGsl.dll" exist in ".\bin".

Hit it! (The build button I mean)

Hint: A typical command line for a C compiler like bcc32.exe would be:

 CC -Iinc -Llib -eFES2004.exe fes2004lib.a netcdf.lib WinGsl.lib src\mohid_main.c

1.3 COMPILE MOHID-TIDE.EXE

->In order to compile mohid-tide.exe executable
-create a new C++ console application project.
-add "mohid-tide.cpp" in the source directory (./src) of this package to your project.
-".\inc" is added in the Include paths.
-".\lib" is added in the Libraries paths.
-"fes2004lib.a" or "fes2004lib.lib", "netcdf.lib" and "WinGsl.lib" are added 
in the library dependencies.
-"fes2004lib.a" or "fes2004lib.lib" exist in ".\lib".
-"netcdf.dll" and "WinGsl.dll" exist in ".\bin".

Just build it!

2 USING THE BINARIES

2.1 FES2004.EXE
manual:
 Its in the README.txt file of this package.
Syntax:
 execute fes2004.exe for instructions!

2.2 MOHID-TIDE.EXE
manual:
 This one ;)
Syntax:
 execute mohid-tide.exe for instructions!

3 IMPORTANT NOTES
 *mohid-tide longitude input should come in (-180, 180) format!
 *fes2004 longitude input should come in (0, 360) format!
 *When you hit land with your coordinates, the results will show
 "-9999.00" in mohid-tide and "MASK" in fes2004. 
That's All.

4 CREDITS

greets goes to:
 > Guillaume Riflet (MARETEC) for this doc and for the mohid-tide source code.
 > Thierry Letellier (from POC-LEGOS) for ALL the rest!