.. _SmartDemixer.json#/: SmartDemixer ============ Alternative variant of demixing, where not all the sources are demixed during the whole observation. .. _SmartDemixer.json#/inputs: inputs ****** .. _SmartDemixer.json#/inputs/type: type ++++ :type: ``string`` :doc: Case-insensitive step type; must be 'smartdemixer' (or 'smartdemix') `.` .. _SmartDemixer.json#/inputs/applybeam: applybeam +++++++++ :type: ``bool`` :default: ``True`` :doc: Mainly for test purposes. Apply the station beam in the estimate, solve, and subtract steps `?` .. _SmartDemixer.json#/inputs/ateam.skymodel: ateam.skymodel ++++++++++++++++++ :type: ``string`` :doc: The detailed sky model of the A-team sources used to solve for the complex gains. It is the name of the SourceDB to use (i.e., the output of makesourcedb) `.` .. _SmartDemixer.json#/inputs/ateam.threshold: ateam.threshold +++++++++++++++++++ :type: ``double`` :doc: Take a source/baseline into account if its maximum estimated amplitude > threshold `.` :default: ``50 for LBA \\ 5 for HBA`` .. _SmartDemixer.json#/inputs/baseline: baseline ++++++++ :type: ``string`` :default: ``""`` :doc: Baselines to demix. See :ref:`Description of baseline selection parameters` `.` .. _SmartDemixer.json#/inputs/blrange: blrange +++++++ :type: ``double?`` :default: ``""`` :doc: Baselines to demix. See :ref:`Description of baseline selection parameters` `.` .. _SmartDemixer.json#/inputs/chunksize: chunksize +++++++++ :type: ``integer`` :default: ``demixtimestep`` :doc: Number of time slots in a chunk for which it is decided how to demix (which sources/stations to use and how to deal with the target). It has to be a multiple of parameter 'demixtimestep' `.` .. _SmartDemixer.json#/inputs/corrtype: corrtype ++++++++ :type: ``string`` :default: ``cross`` :doc: Baselines to demix. Correlation type to match? Must be ``auto``, ``cross``, or an empty string `.` .. _SmartDemixer.json#/inputs/defaultgain: defaultgain +++++++++++ :type: ``double`` :default: ``1e-3`` :doc: The default gain to use for the real part of the diagonal Jones elements for the unsolvable sources/stations. Take into account that the scale of the raw visibilities changed when COBALT was adopted. In the case of data correlated with BG/P, this parameter should be tuned down (1e-8) `.` .. _SmartDemixer.json#/inputs/demixfreqstep: demixfreqstep +++++++++++++ :type: ``integer`` :default: ``freqstep`` :doc: Number of channels to average when demixing. It is truncated if exceeding the actual number of channels. It defaults to the averaging used for the subtract `.` .. _SmartDemixer.json#/inputs/demixtimestep: demixtimestep +++++++++++++ :type: ``integer`` :default: ``timestep`` :doc: Number of time slots to average when demixing. It is truncated if exceeding the actual number of times. It defaults to the averaging used for the subtract `.` .. _SmartDemixer.json#/inputs/distance.reffreq: distance.reffreq ++++++++++++++++++++ :type: ``double`` :default: ``60e6`` :doc: The 'reffreq' frequency used above `.` .. _SmartDemixer.json#/inputs/distance.threshold: distance.threshold ++++++++++++++++++++++ :type: ``double`` :default: ``60`` :doc: Distance threshold (in degrees). The target is close to the A-team if the angular distance (scaled with freq) < threshold for any A-team source (thus angdist*obsfreq/reffreq < threshold) `.` .. _SmartDemixer.json#/inputs/estimate.skymodel: estimate.skymodel +++++++++++++++++++++ :type: ``string`` :default: ``""`` :doc: The coarse sky model of the A-team sources used to estimate the visibilities when deciding how to demix a chunk. It is the name of the SourceDB to use (i.e., the output of ``makesourcedb outtype=blob``). If no name is given, the detailed A-team model will be used. The SourceDB must contain the same sources as the detailed model at about the same position. The order can be different though `.` .. _SmartDemixer.json#/inputs/freqstep: freqstep ++++++++ :type: ``integer`` :default: ``1`` :doc: Number of channels to average when subtracting. It is truncated if exceeding the actual number of channels. Note that the data itself will also be averaged by this amount `.` .. _SmartDemixer.json#/inputs/instrumentmodel: instrumentmodel +++++++++++++++ :type: ``string`` :default: ``instrument`` :doc: The name of the ParmDB to use. The ParmDB does not need to exist. If it does not exist it will be created. Note that the ParmDB is created after the output MS is created, so it can be a subdirectory of the output MS `.` .. _SmartDemixer.json#/inputs/maxiter: maxiter +++++++ :type: ``integer`` :default: ``50`` :doc: Maximum number of iterations to use in the solve `.` .. _SmartDemixer.json#/inputs/minnbaseline: minnbaseline ++++++++++++ :type: ``integer`` :default: ``6`` :doc: Solve a source/station if the station occurs in at least 'minnbaseline' baselines with amplitude > ateam.threshold `.` .. _SmartDemixer.json#/inputs/minnstation: minnstation +++++++++++ :type: ``integer`` :default: ``5`` :doc: Solve a source if at least 'minnstation' stations are solvable for the source `.` :ntimechunk: ``default`` :type: ``integer`` :doc: Number of time chunks that are processed jointly in as much a parallel way as possible. Preferably it is a multiple of the number of cores. Note that for a typical LOFAR observation the data of a single time slot is about 4 MB. A typical chunk size can be 2 minutes, thus 120 time slots per core. For 24 cores this amounts to about 11 GB!! `.` .. _SmartDemixer.json#/inputs/propagatesolutions: propagatesolutions ++++++++++++++++++ :type: ``bool`` :default: ``True`` :doc: If set to true, solutions of a time slot are used as initial values for the next time slot. If set to false, the diagonal elements of the Jones matrix are initialized to one and the off-diagonal elements to zero. However, solutions will not be transferred between chunks processed in parallel `.` .. _SmartDemixer.json#/inputs/ratio1: ratio1 ++++++ :type: ``double`` :default: ``5`` :doc: Include the target in the solve if the estimated amplitude ratio Target/max(Ateam) > ratio1 `.` .. _SmartDemixer.json#/inputs/ratio2: ratio2 ++++++ :type: ``double`` :default: ``0.25`` :doc: Include the target in the solve if the target is close to the A-team and the estimated amplitude ratio Target/min(Ateam) > ratio2 `.` .. _SmartDemixer.json#/inputs/solveboth: solveboth +++++++++ :type: ``bool`` :default: ``False`` :doc: Mainly for test purposes. True means that in the solve only the baselines are used for which both stations are solvable. Usually this gives worse results `.` .. _SmartDemixer.json#/inputs/sources: sources +++++++ :type: ``string?`` :default: ``""`` :doc: Names of the A-team sources to use. If none are given, all sources in the A-team sky model will be used `.` .. _SmartDemixer.json#/inputs/subtract: subtract ++++++++ :type: ``bool`` :default: ``True`` :doc: Mainly for test purposes. False means that the subtract step is not done, thus only a solve of the gains is done `.` .. _SmartDemixer.json#/inputs/target.baseline: target.baseline +++++++++++++++++++ :type: ``string`` :default: ``CS*&`` :doc: Baselines to use in prediction of median target amplitude. See :ref:`Description of baseline selection parameters` `.` .. _SmartDemixer.json#/inputs/target.blrange: target.blrange ++++++++++++++++++ :type: ``double?`` :default: ``""`` :doc: Baselines to use in prediction of median target amplitude. See :ref:`Description of baseline selection parameters` `.` .. _SmartDemixer.json#/inputs/target.corrtype: target.corrtype +++++++++++++++++++ :type: ``string`` :default: ``cross`` :doc: Baselines to use in prediction of median target amplitude. Correlation type to match? Must be ``auto``, ``cross``, or an empty string `.` .. _SmartDemixer.json#/inputs/target.delta: target.delta ++++++++++++++++ :type: ``double`` :default: ``60`` :doc: Angular distance uncertainty (in arcsec) to determine if an A-team source is at the same position as a target source `.` .. _SmartDemixer.json#/inputs/target.skymodel: target.skymodel +++++++++++++++++++ :type: ``string`` :doc: The sky model of the target. It is the name of the SourceDB to use (i.e., the output of makesourcedb) `.` .. _SmartDemixer.json#/inputs/target.threshold: target.threshold ++++++++++++++++++++ :type: ``double`` :doc: Include the target in the solve if its maximum estimated amplitude > threshold `.` :default: ``200 for LBA \\ 100 for HBA`` .. _SmartDemixer.json#/inputs/targethandling: targethandling ++++++++++++++ :type: ``integer`` :default: ``0`` :doc: Mainly for test purposes. It enforces the target handling. 1=include, 2=deproject, 3=ignore, else=use smart way `.` .. _SmartDemixer.json#/inputs/timestep: timestep ++++++++ :type: ``integer`` :default: ``1`` :doc: Number of time slots to average when subtracting. It is truncated if exceeding the actual number of times. Note that the data itself will also be averaged by this amount `.` .. _SmartDemixer.json#/inputs/verbose: verbose +++++++ :type: ``int`` :default: ``0`` :doc: 0 = only show basic demix statistics 1 = show for each time chunk how target is handled, which sources are solvable, and how many stations. >10 = various levels of debugging output `.`