atlas::Domain class

Derived classes

class RectangularDomain

Public types

using Spec = util::Config

Constructors, destructors, conversion operators

Domain() defaulted
Domain(const eckit::Parametrisation&)

Public functions

auto type() const -> std::string
Type of the domain.
auto contains(double x, double y) const -> bool
Checks if the point is contained in the domain.
auto contains(const PointXY& p) const -> bool
Checks if the point is contained in the domain.
auto spec() const -> Spec
auto global() const -> bool
Check if domain represents the complete globe surface.
auto empty() const -> bool
Check if domain does not represent any area on the globe surface.
void hash(eckit::Hash&) const
Add domain to the given hash.
auto containsNorthPole() const -> bool
auto containsSouthPole() const -> bool
auto units() const -> std::string
String that defines units of the domain ("degrees" or "meters")

Friends

auto operator<<(std::ostream& s, const Domain& d) -> std::ostream&

Function documentation

bool atlas::Domain::containsNorthPole() const

Check if grid includes the North pole (can only be true when units are in degrees)

bool atlas::Domain::containsSouthPole() const

Check if grid includes the South pole (can only be true when units are in degrees)