tlpipe.timestream.ns_cal.RawTimestream.freq_and_bl_data_operate¶
-
RawTimestream.
freq_and_bl_data_operate
(func, full_data=False, copy_data=False, show_progress=False, progress_step=None, keep_dist_axis=False, **kwargs)[source]¶ Data operation along the frequency and baseline axis.
Parameters: - func (function object) – The opertation function object. It is of type func(vis, vis_mask, local_index, global_index, fbl, self, **kwargs), which will be called in a loop along the frequency and baseline axis.
- full_data (bool, optional) – Whether the operations of func will need the full data section corresponding to the axis index, if True, data will first redistributed along frequency or baseline axis which is longer. Default False.
- copy_data (bool, optional) – If True, func will operate on a copy of the data, so changes will have no impact on the data the container holds. Default False.
- show_progress (bool, optional) – If True, some progress info will show during the executing. Default False.
- progress_step (int or None) – Show progress info every this number of steps. If None, appropriate progress step will be chosen automatically. Default None.
- keep_dist_axis (bool, optional) – Whether to redistribute main data to the original axis if the dist axis has changed during the operation. Default False.
- **kwargs (any other arguments) – Any other arguments that will passed to func.