|
orog_mask_tools
1.6.0
|
Data Types | |
| type | nb_gp_idx |
| Neighboring cell descriptor. More... | |
| type | nb_tile_idx |
| Neighboring tile descriptor. More... | |
Public Member Functions | |
| INTEGER function | bndry (i, j) |
| Get boundary type from indices for global grid. More... | |
| INTEGER function | bndry_reg (i, j) |
| Get boundary type from indices for regional grid. More... | |
| subroutine | idx_init (cres_in) |
| Initialize inter-panel neighbor index for global grid. More... | |
| subroutine | idx_init_reg (xres_in, yres_in) |
| Initialize resolution module variables for regional grid. More... | |
| subroutine | neighbors (tile, i, j, nb) |
| Get neighbors of cell 'c' at (tile, i, j) for global grid. More... | |
| subroutine | neighbors_reg (i, j, nb) |
| Get neighbors of cell 'c' at (tile, i, j) for regional grid. More... | |
Data Fields | |
| integer | cres |
| Cubed sphere resolution. More... | |
| type(nb_tile_idx), dimension(4, 6) | nb_tile |
| Descriptor for each edge of each tile on the cubed sphere. More... | |
| integer | xres |
| x resolution of regional grid More... | |
| integer | yres |
| y resolution of regional grid More... | |
| type cs_nb::nb_gp_idx |
| type cs_nb::nb_tile_idx |
| INTEGER function cs_nb::bndry | ( | integer | i, |
| integer | j | ||
| ) |
Get boundary type from indices for global grid.
| [in] | i | cell index |
| [in] | j | cell index |
Definition at line 106 of file nb.F90.
Referenced by neighbors().
| INTEGER function cs_nb::bndry_reg | ( | integer | i, |
| integer | j | ||
| ) |
Get boundary type from indices for regional grid.
| [in] | i | cell index |
| [in] | j | cell index |
Definition at line 140 of file nb.F90.
Referenced by neighbors_reg().
| subroutine cs_nb::idx_init | ( | integer | cres_in | ) |
Initialize inter-panel neighbor index for global grid.
| [in] | cres_in | cubed sphere resolution (48, 96...) |
_______1_______
| | 1-upper, 2-bottom, 3-left, 4-right
| |
| |
3| |4
| |
| |
|_______________|
2
Figure 1. Boundary numbers
Definition at line 48 of file nb.F90.
Referenced by inland_mask(), and neighbors_reg().
| subroutine cs_nb::idx_init_reg | ( | integer, intent(in) | xres_in, |
| integer, intent(in) | yres_in | ||
| ) |
Initialize resolution module variables for regional grid.
| [in] | xres_in | x resolution |
| [in] | yres_in | y resolution |
Definition at line 91 of file nb.F90.
Referenced by inland_mask().
| subroutine cs_nb::neighbors | ( | integer | tile, |
| integer | i, | ||
| integer | j, | ||
| type(nb_gp_idx) | nb | ||
| ) |
Get neighbors of cell 'c' at (tile, i, j) for global grid.
______________
| | | | ________
| 5 | 1 | 6 | /\ 1 \ 6
|____|____|____| / \___\___
| | | | /\2 / c / 3 /
| 2 | c | 3 | / \/___/___/
|____|____|____| \7 / 4 / 8 /
| | | | \/___/___/
| 7 | 4 | 8 |
|____|____|____|
Figure 2. Eight neighbors of cell 'c' and special cases at upper left
cornner of the tile| [in] | tile | tile face |
| [in] | i | cell index |
| [in] | j | cell index |
| [out] | nb | neighbors |
Definition at line 192 of file nb.F90.
References bndry().
Referenced by mark_global_inland_rec_d(), and neighbors_reg().
| subroutine cs_nb::neighbors_reg | ( | integer | i, |
| integer | j, | ||
| type(nb_gp_idx) | nb | ||
| ) |
Get neighbors of cell 'c' at (tile, i, j) for regional grid.
| [in] | i | cell index |
| [in] | j | cell index |
| [out] | nb | neighbors |
Definition at line 393 of file nb.F90.
References bndry_reg(), idx_init(), and neighbors().
Referenced by mark_regional_inland_rec_d().
| type(nb_tile_idx), dimension(4,6) cs_nb::nb_tile |