We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b92bde4 commit e8cc3e1Copy full SHA for e8cc3e1
src/eckit/geo/grid/regular/RegularLL.cc
@@ -90,7 +90,8 @@ void RegularLL::fill_spec(spec::Custom& custom) const {
90
custom.set("order", o);
91
}
92
93
- if (auto ref{reference()}; !points_equal(ref, PointLonLat{})) {
+ if (const auto first = first_point(); !points_equal(first, PointLonLat{x_.a(), y_.a()})) {
94
+ const auto ref{reference()};
95
custom.set("reference", std::vector<double>{ref.lon(), ref.lat()});
96
97
0 commit comments