atlas
Public Types | Public Member Functions | List of all members
atlas::StructuredGrid Class Reference

Specialization of Grid, where the grid can be represented by rows with uniform distribution. More...

#include <StructuredGrid.h>

Inheritance diagram for atlas::StructuredGrid:
Inheritance graph
[legend]
Collaboration diagram for atlas::StructuredGrid:
Collaboration graph
[legend]

Public Types

using grid_t = grid::detail::grid::Structured
 
using XSpace = grid_t::XSpace
 
using YSpace = grid_t::YSpace
 
- Public Types inherited from atlas::Grid
using Config = util::Config
 
using Spec = util::Config
 
using Domain = atlas::Domain
 
using Projection = atlas::Projection
 
using PointXY = atlas::PointXY
 
using PointLonLat = atlas::PointLonLat
 
using IterateXY = grid::IterateXY
 
using IterateLonLat = grid::IterateLonLat
 

Public Member Functions

 StructuredGrid (const Grid &)
 
 StructuredGrid (const Grid::Implementation *)
 
 StructuredGrid (const std::string &name, const Domain &=Domain())
 
 StructuredGrid (const std::string &name, const Projection &, const Domain &=Domain())
 
 StructuredGrid (const Config &)
 
 StructuredGrid (const XSpace &, const YSpace &, const Projection &=Projection(), const Domain &=Domain())
 
 StructuredGrid (const Grid &, const Domain &)
 
 operator bool () const
 
bool valid () const
 
idx_t ny () const
 
idx_t nx (idx_t j) const
 
const std::vector< idx_t > & nx () const
 
idx_t nxmax () const
 
const std::vector< double > & y () const
 
double x (idx_t i, idx_t j) const
 x coordinate for given grid point {i,j}
 
double y (idx_t j) const
 y coordinate for given grid row {j}
 
double dx (idx_t j) const
 increment in x for a given grid row {j}
 
double xmin (idx_t j) const
 x coordinate of beginning of a given grid row {j}
 
void xy (idx_t i, idx_t j, double xy[]) const
 
void lonlat (idx_t i, idx_t j, double lonlat[]) const
 
PointXY xy (idx_t i, idx_t j) const
 
PointLonLat lonlat (idx_t i, idx_t j) const
 
bool reduced () const
 
bool regular () const
 
bool periodic () const
 
const XSpacexspace () const
 
const YSpaceyspace () const
 
gidx_t index (idx_t i, idx_t j) const
 
void index2ij (gidx_t gidx, idx_t &i, idx_t &j) const
 
- Public Member Functions inherited from atlas::Grid
IterateXY xy () const
 
IterateLonLat lonlat () const
 
 Grid (const std::string &name, const Domain &=Domain())
 
 Grid (const std::string &name, const Projection &, const Domain &=Domain())
 
 Grid (const Grid &, const Domain &)
 
 Grid (const Config &)
 
bool operator== (const Grid &other) const
 
bool operator!= (const Grid &other) const
 
idx_t size () const
 
const Projectionprojection () const
 
const Domaindomain () const
 
RectangularLonLatDomain lonlatBoundingBox () const
 
std::string name () const
 
std::string uid () const
 
void hash (eckit::Hash &h) const
 Adds to the hash the information that makes this Grid unique.
 
size_t footprint () const
 
Spec spec () const
 
Config meshgenerator () const
 
Config partitioner () const
 

Detailed Description

Specialization of Grid, where the grid can be represented by rows with uniform distribution.

Grid
|
+----------+----------+
| |
StructuredGrid UnstructuredGrid
|
+--------------------+-----------------------+
| | |
ReducedGrid GaussianGrid RegularGrid
| | | | |
+--------+--------+ +--------+--------+ +-----+
| | |
ReducedGaussianGrid RegularGaussianGrid RegularLonLatGrid


The documentation for this class was generated from the following files: