code: def kernel_pixelsize_change(kernel, deltaPix_in, deltaPix_out):
      
      numPix = len(kernel)
      numPix_new = int(round(numPix * deltaPix_in/deltaPix_out))
      if numPix_new % 2 == 0:
          numPix_new -= 1
      x_in = np.linspace(-(numPix-1)/2*deltaPix_in, (numPix-1)/2*deltaPix_in, numPix)
      x_out = np.linspace(-(numPix_new-1)/2*deltaPix_out, (numPix_new-1)/2*deltaPix_out, numPix_new)
      kernel_out = image_util.re_size_array(x_in, x_in, kernel, x_out, x_out)
      kernel_out = kernel_norm(kernel_out)
      return kernel_out
docs: change the pixel size of a given kernel
      :param kernel:
      :param deltaPix_in:
      :param deltaPix_out:
      :return: