Skip to content
Snippets Groups Projects
Select Git revision
  • 5884cc60f362f80b063a5a8cba69f96ae23f0ea5
  • master default protected
  • revert-cs032-ccd-ip
  • deploy-components-parallel
  • fix-chrony-exporter
  • L2SS-2407-swap-iers-caltable-monitoring-port
  • L2SS-2357-fix-ruff
  • sync-up-with-meta-pypcc
  • stabilise-landing-page
  • all-stations-lofar2
  • v0.39.7-backports
  • Move-sdptr-to-v1.5.0
  • fix-build-ubuntu
  • tokens-in-env-files
  • fix-build
  • L2SS-2214-deploy-cdb
  • fix-missing-init
  • add-power-hardware-apply
  • L2SS-2129-Add-Subrack-Routine
  • Also-listen-internal-to-rpc
  • fix-build-dind
  • v0.55.5-r2 protected
  • v0.52.8-rc1 protected
  • v0.55.5 protected
  • v0.55.4 protected
  • 0.55.2.dev0
  • 0.55.1.dev0
  • 0.55.0.dev0
  • v0.54.0 protected
  • 0.53.2.dev0
  • 0.53.1.dev0
  • v0.52.3-r2 protected
  • remove-snmp-client
  • v0.52.3 protected
  • v0.52.3dev0 protected
  • 0.53.1dev0
  • v0.52.2-rc3 protected
  • v0.52.2-rc2 protected
  • v0.52.2-rc1 protected
  • v0.52.1.1 protected
  • v0.52.1 protected
41 results

RECV_archive_all_attributes.ipynb

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    GaussianSource.cpp 1.54 KiB
    // GaussianSource.cc: Gaussian source model component.
    //
    // Copyright (C) 2020 ASTRON (Netherlands Institute for Radio Astronomy)
    // SPDX-License-Identifier: GPL-3.0-or-later
    //
    // $Id$
    
    #include "GaussianSource.h"
    
    namespace dp3 {
    namespace base {
    
    // FIXME: do we need this constructor?
    GaussianSource::GaussianSource(const Direction &direction)
        : PointSource(direction, Stokes{}, 0UL), position_angle_(0.0),
          major_axis_(0.0), is_position_angle_absolute_(true), minor_axis_(0.0) {}
    
    GaussianSource::GaussianSource(const Direction &direction, const Stokes &stokes,
                                   const size_t beam_id)
        : PointSource(direction, stokes, beam_id), position_angle_(0.0),
          is_position_angle_absolute_(true), major_axis_(0.0), minor_axis_(0.0) {}
    
    GaussianSource::GaussianSource(const Direction &direction,
                                   const Spectrum &spectrum, double position_angle,
                                   bool is_position_angle_absolute,
                                   double minor_axis, double major_axis,
                                   size_t beam_id)
        : PointSource(direction, spectrum, beam_id),
          position_angle_(position_angle),
          is_position_angle_absolute_(is_position_angle_absolute),
          major_axis_(major_axis), minor_axis_(minor_axis) {}
    
    void GaussianSource::SetPositionAngle(double angle) { position_angle_ = angle; }
    
    void GaussianSource::SetMajorAxis(double fwhm) { major_axis_ = fwhm; }
    
    void GaussianSource::SetMinorAxis(double fwhm) { minor_axis_ = fwhm; }
    
    } // namespace base
    } // namespace dp3