processing_components/simulation/configurations.py
def create_LOFAR_configuration(antfile: str, location, rmax=1e6) -> Configuration:
    """ Define from the LOFAR configuration file

    :param antfile:
    :return: Configuration
    """
    antxyz = numpy.genfromtxt(antfile, skip_header=2, usecols=[1, 2, 3], delimiter=",")
    nants = antxyz.shape[0]
    assert antxyz.shape[1] == 3, "Antenna array has wrong shape %s" % antxyz.shape
    anames = numpy.genfromtxt(antfile, dtype='str', skip_header=2, usecols=[0], delimiter=",")
    mounts = numpy.repeat('XY', nants)
    diameters = numpy.repeat(35.0, nants)
    
    antxyz, diameters, mounts, anames = limit_rmax(antxyz, diameters, anames, mounts, rmax)

    fc = Configuration(location=location, names=anames, mount=mounts, xyz=antxyz,
                       diameter=diameters, name='LOFAR')
    return fc
 Define from the LOFAR configuration file

    :param antfile:
    :return: Configuration
    
Define from the LOFAR configuration file
Define from the LOFAR configuration file
def create_LOFAR_configuration(antfile: str, location, rmax=1e6) -> Configuration:
    antxyz = numpy.genfromtxt(antfile, skip_header=2, usecols=[1, 2, 3], delimiter=",")
    nants = antxyz.shape[0]
    assert antxyz.shape[1] == 3, "Antenna array has wrong shape %s" % antxyz.shape
    anames = numpy.genfromtxt(antfile, dtype='str', skip_header=2, usecols=[0], delimiter=",")
    mounts = numpy.repeat('XY', nants)
    diameters = numpy.repeat(35.0, nants)
    antxyz, diameters, mounts, anames = limit_rmax(antxyz, diameters, anames, mounts, rmax)
    fc = Configuration(location=location, names=anames, mount=mounts, xyz=antxyz,
                       diameter=diameters, name='LOFAR')
    return fc
def create_LOFAR_configuration ( antfile : str , location , rmax = 1e6 ) -> Configuration : antxyz = numpy . genfromtxt ( antfile , skip_header = 2 , usecols = [ 1 , 2 , 3 ] , delimiter = "," ) nants = antxyz . shape [ 0 ] assert antxyz . shape [ 1 ] == 3 , "Antenna array has wrong shape %s" % antxyz . shape anames = numpy . genfromtxt ( antfile , dtype = 'str' , skip_header = 2 , usecols = [ 0 ] , delimiter = "," ) mounts = numpy . repeat ( 'XY' , nants ) diameters = numpy . repeat ( 35.0 , nants ) antxyz , diameters , mounts , anames = limit_rmax ( antxyz , diameters , anames , mounts , rmax ) fc = Configuration ( location = location , names = anames , mount = mounts , xyz = antxyz , diameter = diameters , name = 'LOFAR' ) return fc
Define from the LOFAR configuration file
Define from the LOFAR configuration file
""" Define from the LOFAR configuration file

    :param antfile:
    :return: Configuration
    """
None
antfile
str
None
location
rmax