File: wsclean.cpp

package info (click to toggle)
wsclean 3.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,968 kB
  • sloc: cpp: 85,742; python: 3,526; sh: 245; makefile: 21
file content (23 lines) | stat: -rw-r--r-- 674 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "wsclean.h"

#include <boost/program_options/parsers.hpp>

#include "../main/commandline.h"
#include "../main/wsclean.h"

namespace wsclean {

void Image(const std::string& command_line_parameters, InMemoryMs&& ms) {
  const std::vector<std::string> parameters =
      boost::program_options::split_unix(command_line_parameters);
  std::vector<const char*> argv;
  argv.reserve(parameters.size());
  for (const std::string& p : parameters) argv.emplace_back(p.c_str());

  WSClean wsclean;
  CommandLine::Parse(wsclean, parameters.size(), argv.data(), false);

  // TODO in memory data must be reordered (reordering not yet implemented).
}

}  // namespace wsclean