.. _Counter.json#/: Counter ======= count the number of flags per baseline, frequency, and correlation. A flagging step also counts how many visibilities it flagged. Counts can be saved to a table to be plotted later using function ``plotflags`` in python module ``lofar.dppp``. .. _Counter.json#/inputs: inputs ****** .. _Counter.json#/inputs/type: type ++++ :type: ``string`` :doc: Case-insensitive step type; must be 'counter' (or 'count'). Note that the type defaults to the step name, so if step name ``count`` is used, nothing more needs to be specified `.` .. _Counter.json#/inputs/jsonfilename: jsonfilename ++++++++++++ :type: ``string`` :default: ``FlagPercentagePerStation.JSON`` :doc: Filename for the JSON output `.` .. _Counter.json#/inputs/path: path ++++ :type: ``string`` :default: ``""`` :doc: The directory where to create the flag percentages table. If empty, the path of the input MS is used `.` .. _Counter.json#/inputs/save: save ++++ :type: ``bool`` :default: ``False`` :doc: If true, the flag percentages per frequency are saved to a table with extension ``.flagfreq`` and percentages per station to a table with extension ``.flagstat``. The basename of the table is the MS name (without extension) followed by the stepname and extension `.` .. _Counter.json#/inputs/savetojson: savetojson ++++++++++ :type: ``bool`` :default: ``False`` :doc: If true, the flag ratios per antenna are saved as a JSON file `.` .. _Counter.json#/inputs/showfullyflagged: showfullyflagged ++++++++++++++++ :type: ``bool`` :doc: If true, all fully flagged baselines are shown in the baseline selection format using their antenna indices (not names). For example: 0&1; 3&7 `.` :default: ``False`` .. _Counter.json#/inputs/warnperc: warnperc ++++++++ :type: ``double`` :default: ``0`` :doc: If > 0, print an extra message for each baseline or channel with a percentage flagged higher than this value. Such a message line can be easily grep-ed `.`