def crop_center(img,cropx,cropy):
    """
    Central cropping of array
    
    Params:
        img : np.ndarray
            Image to be centrally cropped
        cropx : int
            x size of cropping
            
    Returns: cropped image (np.ndarray)
    
    """
    
    y,x = img.shape
    startx = x//2-(cropx//2)
    starty = y//2-(cropy//2)    
    return img[starty:starty+cropy,startx:startx+cropx]