Skip to content
Snippets Groups Projects
Commit 88f23b3e authored by André Offringa's avatar André Offringa
Browse files

Merge branch 'fix-sumthreshold-lua-documentation' into 'master'

Fix error in sumthreshold Lua documentation

See merge request aroffringa/aoflagger!122
parents badfd778 69afe4db
No related branches found
No related tags found
No related merge requests found
......@@ -339,7 +339,7 @@ Detailed descriptions
:param task_description: Description string.
:type task_description: string
.. function:: sumthreshold(data, xthreshold_f, ythreshold_f, include_x, include_y)
.. function:: sumthreshold(data, x_threshold_factor, y_threshold_factor, x_direction, y_direction)
Run the SumThreshold algorithm on the data. This algorithm detects sharp,
line-shaped features in the time-frequency domain that are typical for RFI.
......@@ -351,24 +351,25 @@ Detailed descriptions
Lower values will detect more features. A reasonable value for the
thresholds is 1.
The "include" parameters turn
detection in their particular directions on and off. Note that detection in
"x" (=time) direction means detection of contiguous high-power samples
The ``x_direction``/``y_direction`` parameters turn
detection in their particular directions on and off. If a direction is turned off, the
threshold factor for that direction is ignored. Note that detection in
*x*-direction (which is the time-direction) means detection of contiguous high-power samples
in time, such as transmitters that occupy the same channel continuously.
The y-direction detection is sensitive to transient, broadband RFI.
The *y*-direction detection is sensitive to transient, broadband RFI.
:param data: The data (modified in place).
:param data: The data (modified in place)
:type data: :class:`Data`
:param xthreshold_f: Threshold factor in time direction
:type xthreshold_f: number
:param ythreshold_f: Threshold factor in frequency direction
:type ythreshold_f: number
:param include_x: The data that is used as mask.
:type include_x: :class:`Data`
:param include_y: The data that is used as mask.
:type include_y: :class:`Data`
:param x_threshold_factor: Threshold factor in time direction
:type x_threshold_factor: number
:param y_threshold_factor: Threshold factor in frequency direction
:type y_threshold_factor: number
:param x_direction: Enable flagging in time direction
:type x_direction: boolean
:param y_direction: Enable flagging in frequency direction
:type y_direction: boolean
.. function:: sumthreshold_masked(data, mask_data, x_threshold_f, y_threshold_f, x_direction, y_direction)
.. function:: sumthreshold_masked(data, mask_data, x_threshold_factor, y_threshold_factor, x_direction, y_direction)
Same as :meth:`sumthreshold`, but with a mask. Visibilities that are flagged
in the mask are considered to be visibilities that have not been sampled and
......@@ -378,15 +379,15 @@ Detailed descriptions
:param data: The data (modified in place).
:type data: :class:`Data`
:param mask_data: The data that is used as mask.
:param mask_data: The data that is used as mask
:type mask_data: :class:`Data`
:param x_threshold_f: Threshold factor in time direction
:type x_threshold_f: number
:param y_threshold_f: Threshold factor in frequency direction
:type y_threshold_f: number
:param x_direction: The data that is used as mask.
:param x_threshold_factor: Threshold factor in time direction
:type x_threshold_factor: number
:param y_threshold_factor: Threshold factor in frequency direction
:type y_threshold_factor: number
:param x_direction: Enable flagging in time direction
:type x_direction: boolean
:param y_direction: The data that is used as mask.
:param y_direction: Enable flagging in frequency direction
:type y_direction: boolean
.. function:: threshold_channel_rms(data, threshold, flag_low_outliers)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment