prism_set_corners (grid_id, nc,
corner_actual_shape, corner_1st_array,
corner_2nd_array,
corner_3rd_array, ierror)
For geographical grids, the volume elements which discretise the computing domain covered locally by the process are defined by giving the geographical position of the corner (vertices) of those volume elements. The exchange and repartitioning between two coupled components of a field provided on a geographical grid will be based on this geographical description of the local partition.
The array corner_actual_shape is dimensioned (2,ndim) and gives, for each of the ndim dimensions (see table 5.8), the minimum and maximum local index values corresponding to the ``actual'' shapes of the corner_xxx_array arrays treated by the process including halo regions. corner_actual_shape is therefore greater or equal to the valid_shape (see section 5.3.1).
Shape of corner_xxx_shape
Table 5.10 gives the expected shape of the
corner_xxx_array for the various grid_type.
For
PRISM_irrlonlat_regvrt,
the corners must be given in an order such that when moving from one
corner to the next one, the grid cell interior must always be to the
left10. Furthermore,
the first corner must be the lower left one in the (i,j) space, as
illustrated in Figure 5.2 in the case nc
.
![]() |
Units of corner_xxx_array
Currently, the array corner_1st_array must be provided in degrees East in the interval -7*180 to 7*180; longitudes of the corners of one cell have to define the size of the cell (e.g. a cell with corners at 5 and 355 is a cell of 350 degrees, not a cell of 10 degrees). Currently, the array corner_2nd_array must be provided in degrees North (spherical coordinate system) in the interval -90 to 90. For corner_3rd_array, units must be the same on the source and target sides.