Last change
on this file since 1601 was 1407, checked in by Malte Marquarding, 17 years ago |
added apps directory for c++ binaries e.g. test/debug programs
|
File size:
792 bytes
|
Line | |
---|
1 | #include "Scantable.h"
|
---|
2 | #include "STMath.h"
|
---|
3 | #include "STFillerWrapper.h"
|
---|
4 | #include <casa/Utilities/CountedPtr.h>
|
---|
5 | #include <vector>
|
---|
6 | #include <iostream>
|
---|
7 |
|
---|
8 | using namespace asap;
|
---|
9 | using namespace std;
|
---|
10 |
|
---|
11 | int main() {
|
---|
12 | const string fname = "/Users/mar637/data/test.asap";
|
---|
13 | //const string fname = "test/data/tid-t002.rpf";
|
---|
14 | //STFillerWrapper stf(fname);
|
---|
15 | //cout << "reading ..." << endl;
|
---|
16 | //stf.read();
|
---|
17 |
|
---|
18 | casa::CountedPtr<Scantable> st(new Scantable(fname, casa::Table::Plain));
|
---|
19 | STMath stm;
|
---|
20 | vector<casa::CountedPtr<Scantable> > on;
|
---|
21 | on.push_back(st);
|
---|
22 | cout << "averaging..." << endl;
|
---|
23 | casa::CountedPtr<Scantable> avst = stm.average(on);
|
---|
24 | /*
|
---|
25 | cout << "quotient" << endl;
|
---|
26 | casa::CountedPtr<Scantable> quot = stm.autoQuotient(avst);
|
---|
27 | cout << quot->summary() << endl;
|
---|
28 | */
|
---|
29 | return 0;
|
---|
30 |
|
---|
31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.