deprecated_code/ffiwrappers/src/arlwrap_support.py
def cARLBlockVis(visin, nants, nchan):
    """
    Convert a const ARLVis * into the ARL BlockVisiblity structure
    """
    npol=visin.npol
    ntimes=visin.nvis
    #print (ARLDataVisSize(nvis, npol))
    desc = [('index', 'i8'),
            ('uvw', 'f8', (nants, nants, 3)),
            ('time', 'f8'),
            ('integration_time', 'f8'),
            ('vis', 'c16', (nants, nants, nchan, npol)),
            ('weight', 'f8', (nants, nants, nchan, npol))]
    r=numpy.frombuffer(ff.buffer(visin.data,
                                 ARLBlockDataVisSize(ntimes, nants, nchan, npol)),
                                 dtype=desc,
                                 count=ntimes)
    return r

    Convert a const ARLVis * into the ARL BlockVisiblity structure
    
Convert a const ARLVis * into the ARL BlockVisiblity structure
Convert a const ARLVis * into the ARL BlockVisiblity structure
def cARLBlockVis(visin, nants, nchan):
    npol=visin.npol
    ntimes=visin.nvis
    desc = [('index', 'i8'),
            ('uvw', 'f8', (nants, nants, 3)),
            ('time', 'f8'),
            ('integration_time', 'f8'),
            ('vis', 'c16', (nants, nants, nchan, npol)),
            ('weight', 'f8', (nants, nants, nchan, npol))]
    r=numpy.frombuffer(ff.buffer(visin.data,
                                 ARLBlockDataVisSize(ntimes, nants, nchan, npol)),
                                 dtype=desc,
                                 count=ntimes)
    return r
def cARLBlockVis ( visin , nants , nchan ) : npol = visin . npol ntimes = visin . nvis desc = [ ( 'index' , 'i8' ) , ( 'uvw' , 'f8' , ( nants , nants , 3 ) ) , ( 'time' , 'f8' ) , ( 'integration_time' , 'f8' ) , ( 'vis' , 'c16' , ( nants , nants , nchan , npol ) ) , ( 'weight' , 'f8' , ( nants , nants , nchan , npol ) ) ] r = numpy . frombuffer ( ff . buffer ( visin . data , ARLBlockDataVisSize ( ntimes , nants , nchan , npol ) ) , dtype = desc , count = ntimes ) return r
Convert a const ARLVis * into the ARL BlockVisiblity structure
Convert a const ARLVis * into the ARL BlockVisiblity structure
"""
    Convert a const ARLVis * into the ARL BlockVisiblity structure
    """ #print (ARLDataVisSize(nvis, npol))
visin
nants
nchan