| 6 |  |  | 
| 7 | Steps  to add tide boundary conditions  to regional MITgcm | Steps  to add tide boundary conditions  to regional MITgcm | 
| 8 | 0) Download the Circum-Antarctic Tide (CATS) Solution (Padman et al. 2002) | 0) Download the Circum-Antarctic Tide (CATS) Solution (Padman et al. 2002) | 
| 9 | from Earth and Space Research, http://www.esr.org. | from Earth and Space Research,   http://www.esr.org/~padman/cats2008b/ | 
| 10 | Modify CAT directory in test_tide_bc.m | Modify CATS directory in test_tide_bc.m | 
| 11 |  | Download the TMD2.03 software for extracting the tidal solution from | 
| 12 |  | http://www.esr.org. | 
| 13 |  | Modifications  are needed in the original /TMD2.03/tmd_extract_HC.m in order | 
| 14 |  | to have the correct path of tidal solution as shown in the sample_tmd_extract_HC.m. | 
| 15 |  |  | 
| 16 | 1) use create_bc_grid.m (test_bc_grid.m) to generate bc grid files. |  | 
| 17 |  | 1) use create_bc_grid.m (called by test_bc_grid.m) to generate bc grid files. | 
| 18 | create_bc_grid.m will generate files with names like | create_bc_grid.m will generate files with names like | 
| 19 | bdry_grid_[snwe].mat for south, north, west, and east boundary. | bdry_grid_[snwe].mat for south, north, west, and east boundary. | 
| 20 | This script needs a directory path for MITgcm domain related files, | This script needs a directory path for MITgcm domain related files, | 
| 21 | especially YC.data, XC.data, hFacC.data, AngleCS.data, AngleSN.data. | specifically  YC.data, XC.data, hFacC.data, AngleCS.data, AngleSN.data. | 
| 22 |  |  | 
| 23 | 2) use test_tide_bc.m to generate tidal bc files which calls | 2) use test_tide_bc.m to generate tidal bc files which calls | 
| 24 | create_tide_bc_4bdry.m | create_tide_bc_second.m | 
| 25 | or dummy tidal bc files (zero amplitde and phase) for land boundary | or dummy tidal bc files (zero amplitude and phase, tide_bc_empty.m) | 
| 26 | if there is such a need. | for land boundary if there is such a need. | 
| 27 |  |  | 
| 28 | create_tide_bc_second.m will generate tidal bounday files with names | create_tide_bc_second.m will generate tidal boundary files with names | 
| 29 | like OB[SNWE]{am ph}.seaice_obcs. | like OB[SNWE]{am ph}.seaice_obcs. | 
| 30 | The tidal current and phase will be used in  obcs_add_tides.F. | The tidal current and phase will be used in  obcs_add_tides.F. | 
| 31 |  |  |