processing_components/simulation/configurations.py
def limit_rmax(antxyz, diameters, names, mounts, rmax):
    """ Select antennas with radius from centre < rmax
    
    :param antxyz:
    :param diameters:
    :param names:
    :param mounts:
    :param rmax:
    :return:
    """
    if rmax is not None:
        lantxyz = antxyz - numpy.average(antxyz, axis=0)
        r = numpy.sqrt(lantxyz[:, 0] ** 2 + lantxyz[:, 1] ** 2 + lantxyz[:, 2] ** 2)
        antxyz = antxyz[r < rmax]
        log.debug('create_configuration_from_file: Maximum radius %.1f m includes %d antennas/stations' %
                  (rmax, antxyz.shape[0]))
        diameters = diameters[r < rmax]
        names = numpy.array(names)[r < rmax]
        mounts = numpy.array(mounts)[r<rmax]
    else:
        log.debug('create_configuration_from_file: %d antennas/stations' % (antxyz.shape[0]))
    return antxyz, diameters, names, mounts
 Select antennas with radius from centre < rmax
    
    :param antxyz:
    :param diameters:
    :param names:
    :param mounts:
    :param rmax:
    :return:
    
Select antennas with radius from centre < rmax
Select antennas with radius from centre < rmax
def limit_rmax(antxyz, diameters, names, mounts, rmax):
    if rmax is not None:
        lantxyz = antxyz - numpy.average(antxyz, axis=0)
        r = numpy.sqrt(lantxyz[:, 0] ** 2 + lantxyz[:, 1] ** 2 + lantxyz[:, 2] ** 2)
        antxyz = antxyz[r < rmax]
        log.debug('create_configuration_from_file: Maximum radius %.1f m includes %d antennas/stations' %
                  (rmax, antxyz.shape[0]))
        diameters = diameters[r < rmax]
        names = numpy.array(names)[r < rmax]
        mounts = numpy.array(mounts)[r<rmax]
    else:
        log.debug('create_configuration_from_file: %d antennas/stations' % (antxyz.shape[0]))
    return antxyz, diameters, names, mounts
def limit_rmax ( antxyz , diameters , names , mounts , rmax ) : if rmax is not None : lantxyz = antxyz - numpy . average ( antxyz , axis = 0 ) r = numpy . sqrt ( lantxyz [ : , 0 ] ** 2 + lantxyz [ : , 1 ] ** 2 + lantxyz [ : , 2 ] ** 2 ) antxyz = antxyz [ r < rmax ] log . debug ( 'create_configuration_from_file: Maximum radius %.1f m includes %d antennas/stations' % ( rmax , antxyz . shape [ 0 ] ) ) diameters = diameters [ r < rmax ] names = numpy . array ( names ) [ r < rmax ] mounts = numpy . array ( mounts ) [ r < rmax ] else : log . debug ( 'create_configuration_from_file: %d antennas/stations' % ( antxyz . shape [ 0 ] ) ) return antxyz , diameters , names , mounts
Select antennas with radius from centre < rmax
Select antennas with radius from centre < rmax
""" Select antennas with radius from centre < rmax
    
    :param antxyz:
    :param diameters:
    :param names:
    :param mounts:
    :param rmax:
    :return:
    """
None
antxyz
None
diameters
None
names
None
mounts
None
rmax
None