| 1 |
#pragma once |
| 2 |
|
| 3 |
#include "atlas/grid/Grid.h" |
| 4 |
#include "atlas/grid/detail/grid/CubedSphere2.h" |
| 5 |
|
| 6 |
namespace atlas { |
| 7 |
|
| 8 |
class CubedSphereGrid2 : public atlas::Grid { |
| 9 |
public: |
| 10 |
using grid_t = grid::detail::grid::CubedSphere2; |
| 11 |
|
| 12 |
public: |
| 13 |
CubedSphereGrid2(idx_t resolution); |
| 14 |
CubedSphereGrid2(const Grid& grid); |
| 15 |
CubedSphereGrid2(idx_t resolution, Projection projection); |
| 16 |
|
| 17 |
bool valid() const { return grid_; }; |
| 18 |
operator bool() const { return valid(); } |
| 19 |
|
| 20 |
private: |
| 21 |
const grid_t* grid_; |
| 22 |
}; |
| 23 |
|
| 24 |
} // namespace atlas |