Skip to content
Snippets Groups Projects
Select Git revision
  • 74d22784eb44cc050611d4ecba73bc8cd1f523a7
  • master default protected
  • zhang-master-patch-34807
  • add-single-element-interface
  • ast-919-readthedocs
  • ncp_fix
  • workaround-wsclean-issue-83
  • ast-645-add-beam-normalisation-mode-preapplied
  • ast-645-add-beam-normalisation-mode-jm
  • activate-oskar-pybindings
  • disable-element-beam-1
  • submodulesync
  • fix-eigen
  • ncp_check
  • random-fixes
  • lobes-se607-1
  • test-schaapcommon
  • just-testing
  • extend-add_beaminfo-script
  • extend-telescope-interface-to-support-dp3
  • lobes-investigation
  • v0.3.1
  • v0.3.0
  • v0.2.0
  • v0.1.3
  • v0.1.2
  • v0.1.1
  • v0.1.0
28 results

lofargrid.h

Blame
  • Forked from ResearchAndDevelopment / EveryBeam
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    lofargrid.h 3.45 KiB
    // LOFARGrid.h: Class for computing the LOFAR (gridded) response.
    //
    // Copyright (C) 2020
    // ASTRON (Netherlands Institute for Radio Astronomy)
    // P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
    //
    // This file is part of the EveryBeam software suite.
    // The EveryBeam software suite is free software: you can redistribute it and/or
    // modify it under the terms of the GNU General Public License as published
    // by the Free Software Foundation, either version 3 of the License, or
    // (at your option) any later version.
    //
    // The EveryBeam software suite is distributed in the hope that it will be
    // useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    // GNU General Public License for more details.
    //
    // You should have received a copy of the GNU General Public License along
    // with the EveryBeam software suite. If not, see
    // <http://www.gnu.org/licenses/>.
    //
    // $Id$
    
    #ifndef EVERYBEAM_GRIDDEDRESPONSE_LOFARGRID_H_
    #define EVERYBEAM_GRIDDEDRESPONSE_LOFARGRID_H_
    
    #include "griddedresponse.h"
    #include <iostream>
    #include <aocommon/matrix2x2.h>
    #include <complex>
    #include <limits>
    
    namespace everybeam {
    namespace griddedresponse {
    
    /**
     * @brief Class for computing the LOFAR gridded response
     *
     */
    class LOFARGrid final : public GriddedResponse {
     public:
      // typedef std::unique_ptr<LOFARGrid> Ptr;
    
      /**
       * @brief Construct a new LOFARGrid object
       *
       * @param telescope_ptr Pointer to telescope::LOFAR object
       * @param coordinate_system CoordinateSystem struct
       */
      LOFARGrid(telescope::Telescope* telescope_ptr,
                const coords::CoordinateSystem& coordinate_system);
    
      /**
       * @brief Compute the Beam response for a single station
       *
       * @param buffer Output buffer, compute and set size with
       * GriddedResponse::GetStationBufferSize(1)
       * @param stationIdx Station index, must be smaller than number of stations
       * in the Telescope
       * @param time Time, modified Julian date, UTC, in seconds (MJD(UTC), s).
       * @param freq Frequency (Hz)
       */
      void CalculateStation(std::complex<float>* buffer, double time,
                            double frequency, size_t station_idx,
                            size_t field_id) override;
    
      /**
       * @brief Compute the Beam response for all stations in a Telescope
       *
       * @param buffer Output buffer, compute and set size with