This commit is contained in:
robin 2024-05-09 08:41:38 +02:00
parent c50a27948f
commit 9caf439277
1 changed files with 55 additions and 50 deletions

View File

@ -11,6 +11,11 @@ private:
*/
std::vector<Vel> uvData;
public:
/**
* Constructs the UVGrid.
* @param path The data path where the constructor expects to find
* the files hydrodynamic_U.h5, hydrodynamic_V.h5, and grid.h5
*/
UVGrid(std::string path);
/**
@ -76,7 +81,7 @@ public:
* The 3D index into the data. The array is sized by [8761][67][116]
* @return Velocity at that index
*/
const Vel& operator[](size_t timeIndex, size_t latIndex, size_t lonIndex) const;
const Vel &operator[](size_t timeIndex, size_t latIndex, size_t lonIndex) const;
/**
* Streams a slice at timeIndex t of the matrix to the outstream given by os