setup
This commit is contained in:
1 parent
db811ba902
commit
933fbf4503
7 files changed
+24
-23
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
Vel bilinearInterpolate(const UVGrid &uvGrid, int time, double lat, double lon) {
|
||||
Vel biadvection(const UVGrid &uvGrid, int time, double lat, double lon) {
|
||||
double latStep = uvGrid.latStep();
|
||||
double lonStep = uvGrid.lonStep();
|
||||
int timeStep = uvGrid.timeStep();
|
||||
@@ -36,11 +36,11 @@ Vel bilinearInterpolate(const UVGrid &uvGrid, int time, double lat, double lon)
|
||||
return point;
|
||||
}
|
||||
|
||||
vector<Vel> bilinearInterpolate(const UVGrid &uvGrid, vector<tuple<int, double, double>> points) {
|
||||
vector<Vel> biadvection(const UVGrid &uvGrid, vector<tuple<int, double, double>> points) {
|
||||
vector<Vel> result;
|
||||
result.reserve(points.size());
|
||||
for (auto [time, lat, lon]: points) {
|
||||
result.push_back(bilinearInterpolate(uvGrid, time, lat, lon));
|
||||
result.push_back(biadvection(uvGrid, time, lat, lon));
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||