Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
CommonLofarAttributes.h 1.48 KiB
//# CommonLofarAttributes.h: common LOFAR attribute prototype(s) for HDF5 output
//# Copyright (C) 2009-2015  ASTRON (Netherlands Institute for Radio Astronomy)
//# P.O. Box 2, 7990 AA Dwingeloo, The Netherlands
//#
//# This file is part of the LOFAR software suite.
//# The LOFAR 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 LOFAR 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 LOFAR software suite. If not, see <http://www.gnu.org/licenses/>.
//#
//# $Id$

#ifndef LOFAR_STORAGE_COMMON_LOFAR_ATTRIBUTES_H
#define LOFAR_STORAGE_COMMON_LOFAR_ATTRIBUTES_H

#include <string>
#include <vector>
#include <CoInterface/Parset.h>
#include <dal/lofar/CLA_File.h>

namespace LOFAR
{
  namespace Cobalt
  {
    std::string toUTC(double time);
    double      toMJD(double time);

    double      getFrequencyOffsetPPF(double subbandWidth, unsigned nrChannels);

    void        writeCommonLofarAttributes(dal::CLA_File& file,
                                           const Parset& parset);
  }
}

#endif