processing_components/griddata/gridding.py
def griddata_reweight(vis, griddata, cf):
    """Reweight Grid Visibility weight using the weights in griddata

    :param vis: Visibility to be reweighted
    :param griddata: GridData, sumwt
    :param kwargs:
    :return: GridData
    """
    pu_grid, pu_offset, pv_grid, pv_offset, pwg_grid, pwg_fraction, pwc_grid, pwc_fraction, pfreq_grid = \
        convolution_mapping(vis, griddata, cf)
    _, _, _, _, _, gv, gu = cf.shape
    coords = zip(vis.imaging_weight, pfreq_grid, pu_grid, pv_grid, pwg_grid)
    
    for vwt, chan, xx, yy, zzg in coords:
        if numpy.real(griddata.data[chan, :, zzg, yy, xx]).all() > 0.0:
            vwt /= numpy.real(griddata.data[chan, :, zzg, yy, xx])
    
    return vis
Reweight Grid Visibility weight using the weights in griddata

    :param vis: Visibility to be reweighted
    :param griddata: GridData, sumwt
    :param kwargs:
    :return: GridData
    
Reweight Grid Visibility weight using the weights in griddata
Reweight Grid Visibility weight using the weights in griddata
def griddata_reweight(vis, griddata, cf):
    pu_grid, pu_offset, pv_grid, pv_offset, pwg_grid, pwg_fraction, pwc_grid, pwc_fraction, pfreq_grid = \
        convolution_mapping(vis, griddata, cf)
    _, _, _, _, _, gv, gu = cf.shape
    coords = zip(vis.imaging_weight, pfreq_grid, pu_grid, pv_grid, pwg_grid)
    for vwt, chan, xx, yy, zzg in coords:
        if numpy.real(griddata.data[chan, :, zzg, yy, xx]).all() > 0.0:
            vwt /= numpy.real(griddata.data[chan, :, zzg, yy, xx])
    return vis
def griddata_reweight ( vis , griddata , cf ) : pu_grid , pu_offset , pv_grid , pv_offset , pwg_grid , pwg_fraction , pwc_grid , pwc_fraction , pfreq_grid = convolution_mapping ( vis , griddata , cf ) _ , _ , _ , _ , _ , gv , gu = cf . shape coords = zip ( vis . imaging_weight , pfreq_grid , pu_grid , pv_grid , pwg_grid ) for vwt , chan , xx , yy , zzg in coords : if numpy . real ( griddata . data [ chan , : , zzg , yy , xx ] ) . all ( ) > 0.0 : vwt /= numpy . real ( griddata . data [ chan , : , zzg , yy , xx ] ) return vis
Reweight Grid Visibility weight using the weights in griddata
Reweight Grid Visibility weight using the weights in griddata
"""Reweight Grid Visibility weight using the weights in griddata

    :param vis: Visibility to be reweighted
    :param griddata: GridData, sumwt
    :param kwargs:
    :return: GridData
    """
None
vis
Visibility to be reweighted
Visibility to be reweighted
griddata
None
cf
kwargs
None