Skip to content

Commit fffec80

Browse files
committed
Fix MA2
1 parent 0a707d8 commit fffec80

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import nc from "../node-corrections/index.js";
33

44
/**
55
* Lunar variational semi-diurnal constituent (μ2, mu2).
6-
* Doodson Number: 237.555
6+
* Doodson Number: 545.555
77
* Derived from Moon's orbital parameter variations; speed 27.968°/h with period ~12.87 hours.
88
* Uses M2 nodal factors with complex variable modulation.
99
*
@@ -12,4 +12,4 @@ import nc from "../node-corrections/index.js";
1212
*
1313
* @see https://iho.int/en/standards-and-specifications/standards/s-14 IHO Tidal Constituent Bank
1414
*/
15-
export default defineConstituent("MA2", [2, -2, 2, 0, 0, 0, 0], nc.uM2, nc.fM2);
15+
export default defineConstituent("MA2", [2, 0, -1, 0, 0, 0, 0], nc.uM2, nc.fM2);

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ describe("Base constituent definitions", () => {
5151
});
5252

5353
it("has correct properties for MA2 (lunar variational semi-diurnal, mu2)", () => {
54-
// MA2: [2, 0, -2, 1, 0, 0, 0]
55-
// Speed: 2(T+h-s) - 2h + p ≈ 27.968208°/h
54+
// MA2: [2, 0, -1, 0, 0, 0, 0]
55+
// Speed: 2(T+h-s) - 2h + p ≈ 28.943°/h
5656
expect(constituents.MA2).toBeDefined();
57-
expect(constituents.MA2.speed(testAstro)).toBeCloseTo(27.968208, 2);
57+
expect(constituents.MA2.speed(testAstro)).toBeCloseTo(28.943, 3);
5858
expect(constituents.MA2.u(testAstro)).toBeCloseTo(constituents.M2.u(testAstro), 2);
5959
expect(constituents.MA2.f(testAstro)).toBeCloseTo(constituents.M2.f(testAstro), 3);
6060
});

0 commit comments

Comments
 (0)