- Timestamp:
- 10/05/11 10:56:59 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r2320 r2322 1133 1133 1134 1134 @asaplog_post_dec 1135 def flag(self, row=-1, mask=None, unflag=False):1135 def flag(self, mask=None, unflag=False, row=-1): 1136 1136 """\ 1137 1137 Flag the selected data using an optional channel mask. 1138 1138 1139 1139 Parameters: 1140 1141 mask: an optional channel mask, created with create_mask. Default 1142 (no mask) is all channels. 1143 1144 unflag: if True, unflag the data 1140 1145 1141 1146 row: an optional row number in the scantable. 1142 1147 Default -1 flags all rows 1143 1148 1144 mask: an optional channel mask, created with create_mask. Default1145 (no mask) is all channels.1146 1147 unflag: if True, unflag the data1148 1149 1149 """ 1150 1150 varlist = vars() … … 1154 1154 1155 1155 @asaplog_post_dec 1156 def flag_row(self, rows= [], unflag=False):1156 def flag_row(self, rows=None, unflag=False): 1157 1157 """\ 1158 1158 Flag the selected data in row-based manner. … … 1161 1161 1162 1162 rows: list of row numbers to be flagged. Default is no row 1163 (must be explicitly specified to execute row-based flagging). 1163 (must be explicitly specified to execute row-based 1164 flagging). 1164 1165 1165 1166 unflag: if True, unflag the data. … … 1167 1168 """ 1168 1169 varlist = vars() 1170 if rows is None: 1171 rows = [] 1169 1172 self._flag_row(rows, unflag) 1170 1173 self._add_history("flag_row", varlist) … … 1181 1184 dthres: lower threshold 1182 1185 1183 clipoutside: True for flagging data outside the range [dthres:uthres]. 1186 clipoutside: True for flagging data outside the range 1187 [dthres:uthres]. 1184 1188 False for flagging data inside the range. 1185 1189
Note:
See TracChangeset
for help on using the changeset viewer.