-
Notifications
You must be signed in to change notification settings - Fork 0
/
meteors.cpp
49 lines (40 loc) · 1.15 KB
/
meteors.cpp
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include <vector>
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include "types/meteor.h"
#include "types/dataset.h"
#include "spatial/structures.h"
#include "metric/metric.h"
#include "mesh/meshes.h"
#include "kde/kernel/kernels.h"
int main(int argc, char * argv[]) {
if (argc < 2) {
std::cerr << "Usage: ./meteors <filename>" << std::endl;
return 1;
}
MeteorMetric metric(1, 0, 0, 1);
MeteorMesh<VPImplicitTree> mesh(metric,
MeshLimits(-90, 90, 360),
MeshLimits(0, 360, 720),
MeshLimits(20000, 20000, 1),
MeshLimits(1, 1, 1),
MeshLimits(261.5, 261.5, 1)
);
/*
MeteorMesh<double, VPImplicitTree> perseids(metric,
MeshLimits<double>(50, 65, 150),
MeshLimits<double>(35, 55, 200),
MeshLimits<double>(1, 1, 1),
MeshLimits<double>(1, 1, 1),
MeshLimits<double>(130, 145, 150)
);*/
Dataset<Meteor> dataset;
dataset.load_tsv(argv[1]);
QuarticKernel kernel;
BandwidthNearestSelector<Meteor> selector(20);
dataset.kde(metric, mesh, selector, kernel);
mesh.write_values("out/full.bin");
return 0;
}