source: trunk/apps/asap2to3.cpp @ 1819

Last change on this file since 1819 was 1819, checked in by Kana Sugimoto, 14 years ago

New Development: No

JIRA Issue: No (merge alma branch to trunk)

Ready for Test: Yes

Interface Changes: No

Test Programs: regressions may work

Module(s): all single dish modules

Description:

Merged all changes in alma (r1386:1818) and newfiller (r1774:1818) branch.


File size: 1.2 KB
Line 
1#include <casa/aips.h>
2#include <casa/iostream.h>
3#include <casa/Inputs.h>
4#include <tables/Tables/Table.h>
5#include <tables/Tables/ScaColDesc.h>
6
7//#include <casa/namesapce.h>
8using namespace casa;
9
10int main(int argc, const char* argv[]) {
11  // enable input in no-prompt mode
12  Input inputs(1);
13  // define the input structure
14  inputs.version("20090915MM");
15  inputs.create ("in", "", "Name of asap file", "string");
16  // Fill the input structure from the command line.
17  inputs.readArguments (argc, argv);
18  String fname =  inputs.getString("in");
19  Table origtab(fname);
20  fname +=".asap3";
21  origtab.deepCopy(fname, Table::New);
22  Table tab(fname, Table::Update);
23  tab.removeColumn("PARANGLE");
24  Table tfocus = tab.rwKeywordSet().asTable("FOCUS");
25  ScalarColumnDesc<Float> pa("PARANGLE");
26  pa.setDefault(Float(0.0));
27  tfocus.addColumn(pa);
28  //tfocus.rwKeywordSet().define("PARALLACTIFY", False)
29  Int verid=tab.rwKeywordSet().fieldNumber("VERSION");
30  tab.rwKeywordSet().define(verid,uInt(3));
31  cout << "WARNING: This has invalidated the parallactic angle in the data. Reprocess the data in ASAP 3 "
32       << "if you need to handle polarisation conversions"
33       << endl;
34  return 0;
35 
36}
Note: See TracBrowser for help on using the repository browser.