Input and Output Files 



112. The interpolation program reads input data from two files, INTDEPO 

 and INTPGRD. Old grid bathymetry is contained in INTDEPO. The procedure for 

 reading bathymetry into this program is the same as that used in RCPWAVE. The 

 row of depths corresponding to 1=1 are read first in "10F8.2" format. A row 

 includes values from J=1 to J=N. The row-by-row procedure is repeated until 

 the offshore row (I=M) has been read. An example of a depth file in this for- 

 mat was shown in Figure 9. 



113. Input data contained in INTPGRD are geometric parameters which de- 

 fine the grid characteristics of the old and new grids. The format used by 

 the program to read this information and a description of each parameter are 

 given here. The value for each input parameter, taken from the sample input 

 file shown in Figure 14, is also given in parentheses after the description. 



35 30 50 40. 10.0 0.5 0.5 

 

 0.20 0.20 

 0.14 0.15 



Figure 14. Sample input data file 

 for grid interpolation 



a. CARD 1 - FORMAT (415, 3F10.5). 



M - Number of grid cells in the x-direction for (35) 

 the old grid 



N - Number of grid cells in the y-direction for (30) 

 the old grid 



N2 - Number of grid cells in the x-direction for (50) 

 the new grid 



M2 - Number of grid cells in the y-direction for (40) 

 the new grid 



ANG - Angle of rotation measured from the old grid (10.0) 

 to the new grid (positive angles are meas- 

 ured counterclockwise, negative angles are 

 measured clockwise) 



XSHIFT - Offset from the old grid to the new grid in (0.5) 

 the x-direction (positive offsets indicate 

 that the new grid origin is below the old 

 origin, negative offsets indicate that the 

 new grid origin is above the old grid origin) 



62 



