mapping api

lwa_antpos.mapping.ant_to_snap2loc(antname)[source]

Given antname, return snap2 (chassis, location) as tuple

lwa_antpos.mapping.antname_to_correlator(antname)[source]

Given antname, return correlator number

lwa_antpos.mapping.antpol_to_arx(antname, polname)[source]

Given antname and polname, return arx (address, channel) tuple

lwa_antpos.mapping.antpol_to_digitizer(antname, polname)[source]

Given antname and polname, return (snap2loc, digitizer) tuple. Digitizer is remapped to 0-63 (fmc=0 => 0-31, fmc=1 => 32-63).

lwa_antpos.mapping.antpol_to_fpga(antname, polname)[source]

Given antname and polname, return (snap2loc, fpga input) tuple.

lwa_antpos.mapping.correlator_to_antpol(corr_num)[source]

Given correlator number, return antname.

lwa_antpos.mapping.filter_df(columnname, value)[source]

Gets full DataFrame and filters by columnname == value. Returns new DataFrame

lwa_antpos.mapping.get_unique(df, columnname)[source]

Return unique values for columnname in DataFrame

lwa_antpos.mapping.snap2_to_antpol(snap2loc, inp)[source]

Given snap2loc and input number, return ant name.