nwcsaf_region2slice¶
-
nawdex_analysis.io.reproj.nwcsaf_region2slice(icenter, ndims)¶ The region defintion of the NWCSAF (based on size and center coordinates) is converted to a region slice.
Parameters: - icenter (tuple of int) – center index of the region cutout
- ndims (tuple of int) – dimensions ( size ) of the region (nrows, ncols)
Returns: region – region slice (row1, row2), (col1, col2)
Return type: tuple of tuples of int