1.2.1 Returns ids of the selection used
Description
Utility function that will return the ids of the selection used.
Arguments
| Inputs |
| ||
| vis |
| Measurementset for which this selection applies
| |
| allowed: | string |
|
| Default: |
|
|
| spw |
| Spectral Window Ids (0 relative) to select; -1 interpreted
as all
| |
| allowed: | any |
|
| Default: | variant |
|
| field |
| Field Ids (0 relative) or Field names (msselection syntax
and wilcards are used) to select
| |
| allowed: | any |
|
| Default: | variantvariant |
|
| baseline |
| Antenna Ids (0 relative) or Antenna names (msselection
syntax and wilcards are used) to select
| |
| allowed: | any |
|
| Default: | variant |
|
| time |
| Limit data selected to be within a given time range.
Syntax is the defined in the msselection link
| |
| allowed: | any |
|
| Default: | variant |
|
| scan |
| Limit data selected on scan numbers. Syntax is the
defined in the msselection link
| |
| allowed: | any |
|
| Default: | variant |
|
| uvrange |
| Limit data selected on uv distance. Syntax is the defined
in the msselection link
| |
| allowed: | any |
|
| Default: | variant |
|
| taql |
| For the TAQL experts, flexible data selection using the
TAQL syntax
| |
| allowed: | string |
|
| Default: |
|
|
Example
a= ms.msseltoindex(vis=’3C273XC1.MS’, field=’3C*’)
print a[’field’] # [0] print a #{’antenna1’: array([], dtype=int32), # ’antenna2’: array([], dtype=int32), # ’channel’: array([], shape=(0, 0), dtype=int32), # ’field’: array([0]), # ’scan’: array([], dtype=int32), # ’spw’: array([], dtype=int32)} |
Field name ’3C*’, in this case 3C273, corresponds to field id 0.
Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu
Copyright © 2008 Associated Universities Inc., Washington, D.C.
This code is available under the terms of the GNU General Public Lincense
Home |
Contact Us |
Directories |
Site Map |
Help |
Privacy Policy |
Search
Updated daily during alpha development.