Skip to content
Snippets Groups Projects
Select Git revision
  • e587072cfb5529402519f03f47c29ce59f039b34
  • MCCS-163 default
  • main
  • sar-277-update-docs-with-examples-for-lrc
  • st-946-automate
  • sar_302-log-fix
  • sar-287_subarray_commands_to_lrc
  • sar_302-POC_await_sub_device_state
  • sat_302_fix_pipelines
  • sar-286_lrc_one_subarry_command
  • sar-286_lrc_improvements
  • sar-288-async-controller
  • sar-276-combine-tango-queue
  • sar-255_remove_nexus_reference
  • sar-275-add-LRC
  • sar-273-add-lrc-attributes
  • sar-272
  • sp-1106-marvin-1230525148-ska-tango-base
  • sp-1106-marvin-813091765-ska-tango-base
  • sar-255/Publish-package-to-CAR
  • mccs-661-device-under-test-fixture
  • mccs-659-pep257-docstring-linting
  • 0.11.3
  • 0.11.2
  • 0.11.1
  • 0.11.0
  • 0.10.1
  • 0.10.0
  • 0.9.1
  • 0.9.0
  • 0.8.1
  • 0.8.0
  • 0.7.2
  • 0.7.1
  • 0.7.0
  • 0.6.6
  • 0.6.5
  • 0.6.4
  • 0.6.3
  • 0.6.2
  • 0.6.1
  • 0.6.0
42 results

setup.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    deconvolution_table_entry.h 1.97 KiB
    // Copyright (C) 2022 ASTRON (Netherlands Institute for Radio Astronomy)
    // SPDX-License-Identifier: GPL-3.0-or-later
    
    #ifndef RADLER_DECONVOLUTION_TABLE_ENTRY_H_
    #define RADLER_DECONVOLUTION_TABLE_ENTRY_H_
    
    #include <memory>
    #include <vector>
    
    #include <aocommon/imageaccessor.h>
    #include <aocommon/polarization.h>
    
    namespace radler {
    struct DeconvolutionTableEntry {
      double CentralFrequency() const {
        return 0.5 * (band_start_frequency + band_end_frequency);
      }
    
      /**
       * Index of the entry in its DeconvolutionTable.
       */
      size_t index = 0;
    
      /**
       * Note that mses might have overlapping frequencies.
       */
      double band_start_frequency = 0.0;
      double band_end_frequency = 0.0;
    
      aocommon::PolarizationEnum polarization = aocommon::PolarizationEnum::StokesI;
    
      /**
       * Entries with equal original channel indices are 'joinedly' deconvolved by
       * adding their squared flux density values together. Normally, all the
       * polarizations from a single channel / timestep form such a group.
       *
       * When the number of deconvolution channels is less than the number of
       * original channels, entries in multiple groups are 'joinedly' deconvolved.
       */
      size_t original_channel_index = 0;
      size_t original_interval_index = 0;
    
      /**
       * A number that scales with the estimated inverse-variance of the image. It
       * can be used when averaging images or fitting functions through the images
       * to get the optimal sensitivity. It is set after the first inversion.
       */
      double image_weight = 0.0;
    
      /**
       * Image accessor for the PSF image for this entry. This accessor is only used
       * for the first entry of each channel group.
       */
      std::unique_ptr<aocommon::ImageAccessor> psf_accessor;
    
      /**
       * Image accessor for the model image for this entry.
       */
      std::unique_ptr<aocommon::ImageAccessor> model_accessor;
    
      /**
       * Image accessor for the residual image for this entry.
       */
      std::unique_ptr<aocommon::ImageAccessor> residual_accessor;
    };
    }  // namespace radler
    #endif