Skip to content

Commit a089490

Browse files
committed
Fix EP2
1 parent 007ee9a commit a089490

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

packages/tide-predictor/src/constituents/EP2.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,10 @@ import nc from "../node-corrections/index.js";
33

44
/**
55
* Lunar elliptic semi-diurnal constituent (ε2).
6-
* Doodson Number: 256.555
7-
* From Moon's elliptical orbit; speed 29.6°/h with period of ~12.0 hours.
86
* Uses M2 nodal factors (fM2/uM2) for amplitude and phase modulation.
97
*
10-
* Note: Sometimes called ν2 variant in some sources, but IHO designation is definitive.
11-
*
128
* @see https://iho.int/en/standards-and-specifications/standards/s-14 IHO Tidal Constituent Bank
139
* @see https://tidesandcurrents.noaa.gov/ NOAA CO-OPS constituent tables
1410
* @see https://en.wikipedia.org/wiki/Theory_of_tides Theory of Tides
1511
*/
16-
export default defineConstituent("EP2", [2, 0, 1, 0, 0, 0, 0], nc.uM2, nc.fM2);
12+
export default defineConstituent("EP2", [2, -3, 2, 1, 0, 0, 0], nc.uM2, nc.fM2);

packages/tide-predictor/test/constituents/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe("Base constituent definitions", () => {
4040

4141
it("has correct properties for EP2 (lunar elliptic semi-diurnal)", () => {
4242
expect(constituents.EP2).toBeDefined();
43-
expect(constituents.EP2.speed(testAstro)).toBeCloseTo(29.025, 2);
43+
expect(constituents.EP2.speed(testAstro)).toBeCloseTo(27.4238338, 7);
4444
expect(constituents.EP2.u(testAstro)).toBeCloseTo(constituents.M2.u(testAstro), 2);
4545
expect(constituents.EP2.f(testAstro)).toBeCloseTo(constituents.M2.f(testAstro), 3);
4646
});

0 commit comments

Comments
 (0)