pysteps.motion.vet.get_padding

Contents

pysteps.motion.vet.get_padding#

pysteps.motion.vet.get_padding(dimension_size, sectors)#

Get the padding at each side of the one dimensions of the image so the new image dimensions are divided evenly in the number of sectors specified.

Parameters:
  • dimension_size (int) – Actual dimension size.

  • sectors (int) – number of sectors over which the the image will be divided.

Returns:

pad_before , pad_after – Padding at each side of the image for the corresponding dimension.

Return type:

int, int