Skip to content

Commit

Permalink
Merge pull request #1 from ecmwf/feature/normalise_lats_across_poles
Browse files Browse the repository at this point in the history
Feature/normalise lats across poles
  • Loading branch information
fmahebert authored and pmaciel committed Jun 5, 2023
2 parents f2872fd + 1786012 commit ee49447
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/geometry/test_sphere.cc
Original file line number Diff line number Diff line change
Expand Up @@ -232,20 +232,6 @@ CASE("test unit sphere lat 290") {
EXPECT(eckit::types::is_approximately_equal(p.z(), q.z()));
}

CASE("test unit sphere lat 290") {
const PointLonLat ll1(15., 290.);
const PointLonLat ll2(15., -70.);
PointXYZ p, q;

UnitSphere::convertSphericalToCartesian(ll1, p);
UnitSphere::convertSphericalToCartesian(ll2, q);

// sin(x) and sin(pi-x) are not bitwise identical
EXPECT(eckit::types::is_approximately_equal(p.x(), q.x()));
EXPECT(eckit::types::is_approximately_equal(p.y(), q.y()));
EXPECT(eckit::types::is_approximately_equal(p.z(), q.z()));
}

CASE("test unit sphere lat -120") {
const PointLonLat ll1(45., -120.);
const PointLonLat ll2(225., -60.);
Expand Down

0 comments on commit ee49447

Please sign in to comment.