You are on page 1of 2

Notes on Using versatile_tidana.exe The executable versatile_tidana.exe should run on windows platforms.

The associated Fortran source code has also been placed on this directory and has been successfully compiled with Microsoft Visual Studio. The main shell program is web.f90, the main subroutine is flex_tidana_webpage.f, and all the remaining subroutines are in subs.f. It should be a relatively simple matter to change file input formats and filenames, all found in the main subroutine, from those described below. A reprint of the paper describing the program and its application to a few simple problems is in the *.pdf file. Sample input files: 1. tofino_jan2008_test.inp : master input file giving name of all other input and output files. Seven file names are requested: a. The main output file b. Input file listing constituents to be included in the analysis, the time period, and inference parameters c. Input file with astronomical argument information (should not have to be changed). d. The data to be analysed e. Output file for information on the SVD matrix fit (usually ignored) f. Output file with post-fit residuals & re-contructed tide-only signal g. As above but formatted for input to Excel. 2. tide14_tofino_jan2008_13con.dat : (file 1b above) a. first line reads mf, ndef, itrend where i. mf= number of consituents, excluding the linear trend. The constant term, Z0, should be first in the list. ii. ndef=1 if only a 1D field is to be analysed (eg., elevations) and =2 if a 2D field (e.g., velocity components, EW followed by NS) iii. itrend= 1 if a linear trend is included, otherwise if no trend. b. the next mf lines have constituent name and frequency (cycles/hour) of the constituents (not including those to be inferred) in the analysis. Format is (4x,A5,F16.10). c. the next line reads id1,im1,iy1,id2,im2,iy2,ic1,ic2 where id1, im1, and 100*ic1+iy1 are the day month and year when the analysis begins, id2, im2 and 100*ic2+iy2 are for when the analysis ends d. this line expects the station number, name, time zone, latitude (degrees), latitude (minutes), longitude(degrees), longitude (minutes) in format (I5,5A4,1X,A4,4I5). Note that only the latitude values are used in the calculations; the others are just echo printed for convenience. Southern latitudes are negative. e. Inference information: (After reading ii., the program returns to read i. until a blank line is encountered.) i. First line has reference constituent name, frequency, and number of constituents to be inferred from this reference in format (4X,A5,E16.10,i5).

ii. One line for each of the inferred constituents with the information constituent name, frequency, amplitude ratio (inferred/reference) and phase difference (degrees, reference-inferred) 3. tofino_2008_8con_25p-noise.dat: This is the file of 2008 hourly observations for Tofino, synthesized using 8 constituents and 25% noise, that is described in the manuscript. There is one line for each observation with the following information idd, imm, icc, iyy, ihh, imin, htt in the format (6i2, 2f10.4) when ndel=1. If ndef=2, htt2 follows htt. Idd, imm, icc, iyy, ihh, imin are the day, month, first two digits of the 4 digit year, last 2 digits of the 4 digit year, hour, and minute of the observation. Units for htt and htt2 will be preserved in the amplitudes (and semiaxes magnitudes) in the results. Most of the information in the main output file, tofino_jan2008_8con_25pnoise_13con.out, is self explanatory. Inferred constituent results are listed after the rest and only the largest 20 correlation coefficients are given. When ndef=2, results are given for each dimension (current component) and then combined into ellipse parameters. Contact Mike Foreman at mike.foreman@dfo-mpo.gc.ca if you have any problems or questions.

You might also like