processing_components/imaging/primary_beams.py
def mosaic_pb(model, telescope, pointingcentres, use_local=True):
    """ Create a mosaic primary beam by adding primary beams for a set of pointing centres
    
    Note that the addition is root sum of squares
    
    :param model:  Template image
    :param telescope:
    :param pointingcentres:  list of pointing centres
    :return:
    """
    assert isinstance(pointingcentres, collections.Iterable), "Need a list of pointing centres"
    sumpb = create_empty_image_like(model)
    for pc in pointingcentres:
        pb = create_pb(model, telescope, pointingcentre=pc, use_local=use_local)
        sumpb.data += pb.data ** 2
    sumpb.data = numpy.sqrt(sumpb.data)
    return sumpb
 Create a mosaic primary beam by adding primary beams for a set of pointing centres
    
    Note that the addition is root sum of squares
    
    :param model:  Template image
    :param telescope:
    :param pointingcentres:  list of pointing centres
    :return:
    
Create a mosaic primary beam by adding primary beams for a set of pointing centres
Note that the addition is root sum of squares
Create a mosaic primary beam by adding primary beams for a set of pointing centres Note that the addition is root sum of squares
def mosaic_pb(model, telescope, pointingcentres, use_local=True):
    assert isinstance(pointingcentres, collections.Iterable), "Need a list of pointing centres"
    sumpb = create_empty_image_like(model)
    for pc in pointingcentres:
        pb = create_pb(model, telescope, pointingcentre=pc, use_local=use_local)
        sumpb.data += pb.data ** 2
    sumpb.data = numpy.sqrt(sumpb.data)
    return sumpb
def mosaic_pb ( model , telescope , pointingcentres , use_local = True ) : assert isinstance ( pointingcentres , collections . Iterable ) , "Need a list of pointing centres" sumpb = create_empty_image_like ( model ) for pc in pointingcentres : pb = create_pb ( model , telescope , pointingcentre = pc , use_local = use_local ) sumpb . data += pb . data ** 2 sumpb . data = numpy . sqrt ( sumpb . data ) return sumpb
Create a mosaic primary beam by adding primary beams for a set of pointing centres
Note that the addition is root sum of squares
Create a mosaic primary beam by adding primary beams for a set of pointing centres Note that the addition is root sum of squares
""" Create a mosaic primary beam by adding primary beams for a set of pointing centres
    
    Note that the addition is root sum of squares
    
    :param model:  Template image
    :param telescope:
    :param pointingcentres:  list of pointing centres
    :return:
    """
None
model
None
telescope
None
pointingcentres
list of pointing centres
list of pointing centres
use_local