Public Member Functions | |
def | __init__ |
def | reset |
def | is_empty |
def | set_polarisations |
def | set_ifs |
def | set_scans |
def | set_beams |
def | set_cycles |
def | set_name |
def | set_tsys |
def | set_query |
def | set_order |
def | set_rows |
def | set_types |
def | get_scans |
def | get_cycles |
def | get_beams |
def | get_ifs |
def | get_pols |
def | get_poltypes |
def | get_order |
def | get_types |
def | get_rows |
def | get_query |
def | get_name |
def | __str__ |
def | __add__ |
Static Public Attributes | |
list | fields |
set_polarizations | |
set_pols |
A selection object to be applied to scantables to restrict the scantables to specific rows.
Definition at line 5 of file selector.py.
def asap.selector.selector.__init__ | ( | self, | |
args, | |||
kw | |||
) |
Definition at line 12 of file selector.py.
References asap.selector.selector.fields.
def asap.selector.selector.__add__ | ( | self, | |
other | |||
) |
Merge two selections.
Definition at line 249 of file selector.py.
References asap.selector.selector.get_query(), asap.selector.selector.is_empty(), tests.test_imcontsub.list, and asap.utils.unique().
def asap.selector.selector.__str__ | ( | self | ) |
Definition at line 228 of file selector.py.
References asap.selector.selector.get_beams(), asap.selector.selector.get_cycles(), asap.selector.selector.get_ifs(), asap.selector.selector.get_order(), asap.selector.selector.get_pols(), asap.selector.selector.get_poltypes(), asap.selector.selector.get_query(), asap.selector.selector.get_rows(), asap.selector.selector.get_scans(), and asap.selector.selector.get_types().
def asap.selector.selector.get_beams | ( | self | ) |
Definition at line 206 of file selector.py.
References tests.test_imcontsub.list.
Referenced by asap.selector.selector.__str__().
def asap.selector.selector.get_cycles | ( | self | ) |
Definition at line 204 of file selector.py.
References tests.test_imcontsub.list.
Referenced by asap.selector.selector.__str__().
def asap.selector.selector.get_ifs | ( | self | ) |
Definition at line 208 of file selector.py.
References tests.test_imcontsub.list.
Referenced by asap.selector.selector.__str__().
def asap.selector.selector.get_name | ( | self | ) |
Definition at line 224 of file selector.py.
def asap.selector.selector.get_order | ( | self | ) |
Definition at line 214 of file selector.py.
References tests.test_imcontsub.list.
Referenced by asap.selector.selector.__str__().
def asap.selector.selector.get_pols | ( | self | ) |
Definition at line 210 of file selector.py.
References tests.test_imcontsub.list.
Referenced by asap.selector.selector.__str__().
def asap.selector.selector.get_poltypes | ( | self | ) |
Definition at line 212 of file selector.py.
References tests.test_imcontsub.list.
Referenced by asap.selector.selector.__str__().
def asap.selector.selector.get_query | ( | self | ) |
Definition at line 220 of file selector.py.
Referenced by asap.selector.selector.__add__(), and asap.selector.selector.__str__().
def asap.selector.selector.get_rows | ( | self | ) |
Definition at line 218 of file selector.py.
References tests.test_imcontsub.list.
Referenced by asap.selector.selector.__str__().
def asap.selector.selector.get_scans | ( | self | ) |
Definition at line 202 of file selector.py.
References tests.test_imcontsub.list.
Referenced by asap.selector.selector.__str__().
def asap.selector.selector.get_types | ( | self | ) |
Definition at line 216 of file selector.py.
References tests.test_imcontsub.list.
Referenced by asap.selector.selector.__str__().
def asap.selector.selector.is_empty | ( | self | ) |
Has anything been set?
Definition at line 32 of file selector.py.
Referenced by asap.selector.selector.__add__().
def asap.selector.selector.reset | ( | self | ) |
Unset all selections.
Definition at line 26 of file selector.py.
References asap.asapplotter.asapplotter._reset().
def asap.selector.selector.set_beams | ( | self, | |
beams = [] |
|||
) |
Set a sequence of Beam numbers (0-based). Parameters: beams: a list of integers. Default [] is to unset the selection.
Definition at line 91 of file selector.py.
References asap.utils._to_list().
def asap.selector.selector.set_cycles | ( | self, | |
cycles = [] |
|||
) |
Set a sequence of IF numbers (0-based). Parameters: cycless: a list of integers. Default [] is to unset the selection.
Definition at line 103 of file selector.py.
References asap.utils._to_list().
def asap.selector.selector.set_ifs | ( | self, | |
ifs = [] |
|||
) |
Set a sequence of IF numbers (0-based). Parameters: ifs: a list of integers. Default [] is to unset the selection.
Definition at line 67 of file selector.py.
References asap.utils._to_list().
def asap.selector.selector.set_name | ( | self, | |
name | |||
) |
Set a selection based on a name. This can be a unix pattern , e.g. "*_R" Parameters: name: a string containing a source name or pattern Examples: # select all reference scans which start with "Orion" selection.set_name("Orion*_R")
Definition at line 116 of file selector.py.
def asap.selector.selector.set_order | ( | self, | |
order | |||
) |
Set the order the scantable should be sorted by. Parameters: order: The list of column names to sort by in order
Definition at line 168 of file selector.py.
def asap.selector.selector.set_polarisations | ( | self, | |
pols = [] |
|||
) |
Set the polarisations to be selected in the scantable. Parameters: pols: a list of integers of 0-3, or strings, e.g ["I","Q"]. Default [] is no selection Example: sel = selector() # These are equivalent if data is 'linear' sel.set_polarisations(["XX","Re(XY)"]) sel.set_polarisations([0,2]) # reset the polarisation selection sel.set_polarisations()
Definition at line 38 of file selector.py.
References asap.utils._to_list().
def asap.selector.selector.set_query | ( | self, | |
query | |||
) |
Select by Column query. Power users only! Example: # select all off scans with integration times over 60 seconds. selection.set_query("SRCTYPE == PSOFF AND INTERVAL > 60.0")
Definition at line 146 of file selector.py.
def asap.selector.selector.set_rows | ( | self, | |
rows = [] |
|||
) |
Set a sequence of row numbers (0-based). Power users Only! NOTICE row numbers can be changed easily by sorting, prior selection, etc. Parameters: rows: a list of integers. Default [] is to unset the selection.
Definition at line 176 of file selector.py.
References asap.utils._to_list().
def asap.selector.selector.set_scans | ( | self, | |
scans = [] |
|||
) |
Set a sequence of Scan numbers (0-based). Parameters: scans: a list of integers. Default [] is to unset the selection.
Definition at line 79 of file selector.py.
References asap.utils._to_list().
def asap.selector.selector.set_tsys | ( | self, | |
tsysmin = 0.0 , |
|||
tsysmax = None |
|||
) |
Select by Tsys range. Parameters: tsysmin: the lower threshold. Default 0.0 tsysmax: the upper threshold. Default None. Examples: # select all spectra with Tsys <= 500.0 selection.set_tsys(tsysmax=500.0)
Definition at line 130 of file selector.py.
def asap.selector.selector.set_types | ( | self, | |
types = [] |
|||
) |
Set a sequence of source types. Parameters: types: a list of integers. Default [] is to unset the selection.
Definition at line 190 of file selector.py.
References asap.utils._to_list().
list asap.selector.selector.fields [static] |
Definition at line 10 of file selector.py.
Referenced by asap.selector.selector.__init__(), and gprof2dot.AQtimeTable.__iter__().
Definition at line 63 of file selector.py.
asap.selector.selector.set_pols [static] |
Definition at line 65 of file selector.py.