Implement bilinear interpolation

This commit is contained in:
robin
2024-04-22 00:21:11 +02:00
parent a123071fec
commit 51fe302920
12 changed files with 192 additions and 15 deletions

View File

@@ -0,0 +1,30 @@
#ifndef LINEARINTERPOLATE_UVGRID_H
#define LINEARINTERPOLATE_UVGRID_H
#include <vector>
#include "vecutils.h"
#include "point.h"
class UVGrid {
private:
/**
* u == Eastward Current Velocity in the Water Column
* v == Northward Current Velocity in the Water Column
*/
std::vector<point> uvData;
public:
UVGrid();
// The step functions assume regular spacing
double lonStep() const;
double latStep() const;
int timeStep() const;
std::vector<int> times;
std::vector<double> lats;
std::vector<double> lons;
arr3d<point> uvMatrix;
};
#endif //LINEARINTERPOLATE_UVGRID_H