-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathrecipels.cpp
More file actions
34 lines (29 loc) · 1 KB
/
Copy pathrecipels.cpp
File metadata and controls
34 lines (29 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <fmt/core.h>
#include <iostream>
#include "recipe_file.h"
#include "util.h"
using namespace std;
/*
Displays information about a recipe file.
Usage:
recipels <filename>
*/
int main(int argc, char* argv[]) {
if (argc != 2) {
cerr << "usage: recipels <filename>\n";
exit(1);
}
string filename(argv[1]);
cout << "loading recipe from " << filename << endl;
RecipeFile recipe(filename);
cout << "obsid: " << recipe.obsid << endl;
cout << "npol: " << recipe.npol << endl;
cout << "nbeams: " << recipe.nbeams << endl;
cout << "delays size: " << recipe.delays.size() << endl;
cout << "cal_all size: " << recipe.cal_all.size() << endl;
cout << "time_array size: " << recipe.time_array.size() << endl;
cout << "inferred nants: " << recipe.nants << endl;
cout << "inferred nchans: " << recipe.nchans << endl;
cout << "/diminfo/nants = " << recipe.getLongScalarData("/diminfo/nants") << endl;
cout << "/diminfo/nchan = " << recipe.getLongScalarData("/diminfo/nchan") << endl;
}