processing_library/fourier_transforms/convolutional_gridding.py
def coordinates2Offset(npixel: int, cx: int, cy: int, quadrant=False):
    """Two dimensional grids of coordinates centred on an arbitrary point.

    This is used for A and w beams.

    1. a step size of 2/npixel and
    2. (0,0) at pixel (cx, cy,floor(n/2))
    """
    if cx is None:
        cx = npixel // 2
    if cy is None:
        cy = npixel // 2
    if quadrant == False:
        mg = numpy.mgrid[0:npixel, 0:npixel]
    else:
        # If npixel is even, we should create a grid with npixel//2+1
        mg = numpy.mgrid[0:npixel//2+1, 0:npixel//2+1]
    return (mg[0] - cy) / npixel, (mg[1] - cx) / npixel
Two dimensional grids of coordinates centred on an arbitrary point.

    This is used for A and w beams.

    1. a step size of 2/npixel and
    2. (0,0) at pixel (cx, cy,floor(n/2))
    
Two dimensional grids of coordinates centred on an arbitrary point.
This is used for A and w beams.

1. a step size of 2/npixel and
2.
Two dimensional grids of coordinates centred on an arbitrary point . This is used for A and w beams . 1 . a step size of 2 / npixel and 2 .
def coordinates2Offset(npixel: int, cx: int, cy: int, quadrant=False):
    if cx is None:
        cx = npixel // 2
    if cy is None:
        cy = npixel // 2
    if quadrant == False:
        mg = numpy.mgrid[0:npixel, 0:npixel]
    else:
        mg = numpy.mgrid[0:npixel//2+1, 0:npixel//2+1]
    return (mg[0] - cy) / npixel, (mg[1] - cx) / npixel
def coordinates2Offset ( npixel : int , cx : int , cy : int , quadrant = False ) : if cx is None : cx = npixel // 2 if cy is None : cy = npixel // 2 if quadrant == False : mg = numpy . mgrid [ 0 : npixel , 0 : npixel ] else : mg = numpy . mgrid [ 0 : npixel // 2 + 1 , 0 : npixel // 2 + 1 ] return ( mg [ 0 ] - cy ) / npixel , ( mg [ 1 ] - cx ) / npixel
Two dimensional grids of coordinates centred on an arbitrary point.
Two dimensional grids of coordinates centred on an arbitrary point .
"""Two dimensional grids of coordinates centred on an arbitrary point.

    This is used for A and w beams.

    1. a step size of 2/npixel and
    2. (0,0) at pixel (cx, cy,floor(n/2))
    """ # If npixel is even, we should create a grid with npixel//2+1
npixel
int
cx
int
cy
int
quadrant