Repository navigation
Expand file tree
/
Copy pathaam.html
More file actions
1297 lines (1262 loc) · 108 KB
/
Copy pathaam.html
File metadata and controls
1297 lines (1262 loc) · 108 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Earth’s angular momentum and the length of day — Shawn Corvec</title>
<meta name="description" content="How long today is, how far it is from normal and how much of that is the atmosphere: the IERS length of day, the atmosphere's angular momentum and its budget by hemisphere, the mountain torques, and the 15-day IFS-ENS forecast in milliseconds of day length.">
<link rel="canonical" href="https://scorvec.com/aam.html">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<meta property="og:type" content="article">
<meta property="og:title" content="Earth’s angular momentum and the length of day">
<meta property="og:description" content="How long today is, how far it is from normal and how much of that is the atmosphere, with the 15-day forecast.">
<meta property="og:url" content="https://scorvec.com/aam.html">
<meta property="og:image" content="https://scorvec.com/assets/sst/aam.webp">
<meta name="twitter:card" content="summary_large_image">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;1,400&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/assets/site.css?v=6a44bd129a">
<link rel="stylesheet" href="/assets/outlook.css?v=b84673c691">
<link rel="stylesheet" href="/assets/stage.css?v=ae80460a91">
<style>
/* aam.html: the angular-momentum page (scripts/mjo/src/aam_page.py -> assets/sst/data/aam_page.json), one card at a
time on the stage viewer; page rules on top of /assets/outlook.css and /assets/stage.css. */
.page-header .eyebrow { font-size: 1.08rem; font-weight: 500; }
.page-header .sub { font-size: 1.3rem; font-weight: 500; color: var(--ink2); }
.chip .l { font-size: 0.95rem; }
.chip .v { font-size: 2.1rem; font-variant-numeric: tabular-nums; }
.chip .s { font-size: 1.02rem; font-weight: 500; }
.chart-card-header p { font-size: 1.15rem; line-height: 1.55; font-weight: 500; color: var(--ink2); max-width: 110ch; }
.ss-main :is(.chart-sources, .chart-updated) { font-size: 1rem; }
.plot { width: 100%; height: min(62vh, 560px); min-height: 340px; }
.plot.tall { height: min(76vh, 700px); min-height: 460px; }
.plot.short { height: min(36vh, 300px); min-height: 220px; }
.plot[hidden] { display: none; }
.pad { padding: 0 1.4rem 0.8rem; }
@media (max-width: 600px) { .pad { padding: 0 0 0.6rem; } .plot.short { min-height: 280px; } } /* a phone's width goes to the chart */
.note { margin: 0.2rem 1.4rem 0.6rem; font-size: 1.05rem; font-weight: 500; color: var(--ink2); }
@media (max-width: 600px) { .note { margin: 0.2rem 0.6rem 0.5rem; } }
.chart-card-header p.flag { margin-top: 0.35rem; color: var(--ink); font-weight: 600; }
.chart-card-header p.flag:empty { display: none; }
/* the spin-up meter: one gauge per region, drawn as SVG */
.gauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem 1.4rem; padding: 0.4rem 1.4rem 0.2rem; }
@media (max-width: 760px) { .gauges { grid-template-columns: 1fr; padding: 0.4rem 0.6rem 0.2rem; } }
.gauge { text-align: center; }
.gauge h3 { margin: 0 0 0.1rem; font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.gauge svg { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto; font-family: inherit; }
.gauge .num { font-size: 30px; font-weight: 600; fill: var(--ink); font-variant-numeric: tabular-nums; }
.gauge .unit { font-size: 13px; fill: var(--muted); }
.gauge .end { font-size: 12px; fill: var(--muted); }
.gauge p { margin: 0.1rem 0 0; font-size: 1.05rem; font-weight: 500; color: var(--ink2); }
sup { font-size: 0.72em; line-height: 0; } /* the site font has no superscript 4-9: exponents are markup */
.gkey { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 1.2rem; padding: 0.3rem 1.4rem 0.4rem;
font-size: 1rem; font-weight: 500; color: var(--ink2); }
.gkey span { display: inline-flex; align-items: center; gap: 0.4rem; }
.gkey i { display: inline-block; width: 18px; height: 10px; border-radius: 2px; }
/* mountain ranges: small multiples */
.ranges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem 1rem; padding: 0 1.4rem 0.6rem; }
@media (max-width: 900px) { .ranges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ranges { grid-template-columns: 1fr; padding: 0 0.6rem 0.6rem; } }
.rg { border: 1px solid var(--rule); border-radius: 6px; padding: 0.4rem 0.4rem 0; background: #fff; }
.rg h3 { margin: 0.1rem 0.4rem 0; font-size: 1.08rem; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 0.6rem; }
.rg h3 span { font-weight: 500; color: var(--ink2); font-variant-numeric: tabular-nums; }
.rg .plot { height: 210px; min-height: 0; }
/* phase orbits side by side */
.orbits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1.2rem; padding: 0 1.4rem 0.6rem; }
@media (max-width: 800px) { .orbits { grid-template-columns: 1fr; padding: 0 0.6rem 0.6rem; } }
.orbits .plot { height: min(54vh, 460px); }
/* desktop: a chart ends above the fold (what sits over it is about 29rem), and a short screen gets a slimmer number band */
@media (min-width: 1001px) {
.plot { height: clamp(340px, calc(100svh - 30rem), 560px); }
.plot.tall { height: clamp(420px, calc(100svh - 30rem), 700px); min-height: 0; }
.orbits .plot { height: clamp(320px, calc(100svh - 32rem), 460px); }
}
@media (min-width: 1001px) and (max-height: 1000px) {
.chip .v { font-size: 1.5rem; } .chip .l, .chip .s { font-size: 0.85rem; }
.ss-host > :is(.page-header, header) > .sub { font-size: 1.08rem; } /* the page's one sentence stays readable */
}
.how { padding: 0 1.4rem 0.8rem; max-width: 1150px; }
@media (max-width: 600px) { .how { padding: 0 0.6rem 0.6rem; } }
.how h3 { margin: 1.1rem 0 0.35rem; font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.how p, .how li { font-size: 1.05rem; line-height: 1.6; color: var(--ink2); }
.how ul { margin: 0.3rem 0 0; padding-left: 1.2rem; }
.how li { margin-bottom: 0.35rem; }
.how .eq { margin: 0.5rem 0; padding: 0.55rem 0.9rem; background: #faf9f6; border: 1px solid var(--rule); border-radius: 6px;
font-family: var(--f-serif); font-size: 1.2rem; color: var(--ink); text-align: center; }
.how .eq .katex-display { margin: 0.2rem 0; overflow-x: auto; overflow-y: hidden; }
.how .eq .katex { font-size: 1em; }
.how .eq small { display: block; font-family: var(--f-sans); font-size: 0.92rem; color: var(--ink2); margin-top: 0.2rem; }
@media (min-width: 1800px) {
.how { max-width: 1500px; } .how p, .how li { font-size: 1.2rem; } .how h3 { font-size: 1.3rem; }
.how .eq { font-size: 1.4rem; } .how .eq small { font-size: 1.05rem; } table.terms { font-size: 1.15rem; }
}
table.terms { border-collapse: collapse; width: 100%; margin: 0.4rem 0 0.2rem; font-size: 1.02rem; }
table.terms th, table.terms td { padding: 0.45rem 0.7rem 0.45rem 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; color: var(--ink2); }
table.terms th { font-weight: 600; color: var(--ink); white-space: nowrap; }
table.terms td.v { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
table.terms a { white-space: nowrap; }
@media (max-width: 700px) {
table.terms thead { display: none; }
table.terms tr { display: block; padding: 0.45rem 0; border-bottom: 1px solid var(--rule); }
table.terms th, table.terms td { display: block; border: 0; padding: 0.1rem 0; }
}
table.rec { border-collapse: collapse; font-size: 1.08rem; margin: 0.4rem 0 0.6rem; font-variant-numeric: tabular-nums; }
table.rec th, table.rec td { padding: 0.3rem 0.7rem; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; }
table.rec th:first-child, table.rec td:first-child { text-align: left; }
table.rec th { font-weight: 600; color: var(--ink); background: #faf9f6; white-space: normal; }
.tblwrap { overflow-x: auto; padding: 0 1.4rem 0.6rem; }
@media (max-width: 600px) { .tblwrap { padding: 0 0 0.6rem; } }
table.rec .ci { color: var(--muted); }
@media (max-width: 700px) {
.ss-host .chips > .chip:last-child:nth-child(odd) { grid-column: 1 / -1; } /* five numbers, two a row: the last takes the row */
table.rec { font-size: 0.86rem; }
table.rec th, table.rec td { padding: 0.3rem 0.3rem; }
table.rec .ci { display: block; } /* the interval under its estimate: the table fits a phone without scrolling sideways */
}
@media (max-width: 1000px) {
.ss-host .chips .chip .l { font-size: 0.85rem; } .ss-host .chips .chip .v { font-size: 1.35rem; }
}
@media (max-width: 600px) {
.page-header .sub { font-size: 1.12rem; }
.chip .v { font-size: 1.5rem; }
}
</style>
<script data-goatcounter="https://scorvec.goatcounter.com/count" async src="https://gc.zgo.at/count.v4.js" integrity="sha384-nRw6qfbWyJha9LhsOtSb2YJDyZdKvvCFh0fJYlkquSFjUxp9FVNugbfy8q1jdxI+" crossorigin="anonymous"></script>
</head>
<body>
<!-- sh:start -->
<a class="skip-link" href="#main">Skip to main content</a>
<header class="sh" id="site-header">
<div class="sh-in">
<a class="sh-brand" href="/">Shawn Corvec</a>
<button class="sh-toggle" type="button" aria-expanded="false" aria-controls="sh-menu">Menu</button>
<nav class="sh-nav" id="sh-menu" aria-label="Site">
<ul class="sh-list">
<li class="sh-item sh-has-menu">
<button class="sh-link sh-menubtn" type="button" aria-expanded="false" aria-controls="sh-g0" aria-current="page">Forecasts</button>
<div class="sh-menu sh-menu--cols" id="sh-g0">
<div class="sh-col">
<div>
<h3>Model maps</h3>
<ul>
<li><a href="/models.html"><span class="sh-t">North America, short range</span><span class="sh-d">HRRR, RRFS and RDPS: radar, snow, storms</span></a></li>
<li><a href="/samerica-models.html"><span class="sh-t">South America, to day 10</span><span class="sh-d">IFS control and GDPS, with soundings</span></a></li>
<li><a href="/ens-anomalies.html"><span class="sh-t">Global ensembles</span><span class="sh-d">Four ensembles: anomalies and regimes</span></a></li>
</ul>
</div>
</div>
<div class="sh-col">
<div>
<h3>Days 1–15</h3>
<ul>
<li><a href="/ar.html"><span class="sh-t">Atmospheric rivers</span><span class="sh-d">Moisture plumes, landfall and their odds</span></a></li>
<li><a href="/circulation.html#dt"><span class="sh-t">Jet streams and tropopause</span><span class="sh-d">Tropopause, Pacific and subtropical jets, wave trains</span></a></li>
<li><a href="/circulation.html#wcb"><span class="sh-t">Warm conveyor belts</span><span class="sh-d">Inflow, ascent and outflow in 50 members</span></a></li>
<li><a href="/aam.html" aria-current="page"><span class="sh-t">Earth’s angular momentum and day length</span><span class="sh-d">Day length, momentum budget, mountain torques</span></a></li>
<li><a href="/circulation.html#telecon15"><span class="sh-t">Teleconnections</span><span class="sh-d">AO, NAO, PNA and more, calibrated</span></a></li>
</ul>
</div>
</div>
</div>
</li>
<li class="sh-item sh-has-menu">
<button class="sh-link sh-menubtn" type="button" aria-expanded="false" aria-controls="sh-g1">Tropics</button>
<div class="sh-menu sh-menu--cols" id="sh-g1">
<div class="sh-col">
<div>
<h3>ENSO and the MJO</h3>
<ul>
<li><a href="/enso.html"><span class="sh-t">El Niño monitor</span><span class="sh-d">ONI, RONI, the subsurface and winds</span></a></li>
<li><a href="/mjo.html"><span class="sh-t">MJO forecast</span><span class="sh-d">Four ensembles on one phase diagram</span></a></li>
<li><a href="/tropical-waves.html"><span class="sh-t">Tropical waves</span><span class="sh-d">Kelvin and Rossby waves, now and ahead</span></a></li>
</ul>
</div>
</div>
<div class="sh-col">
<div>
<h3>Circulation</h3>
<ul>
<li><a href="/circulation.html#walker"><span class="sh-t">Walker and Hadley cells</span><span class="sh-d">The overturning, its outflow and descent</span></a></li>
<li><a href="/circulation.html#mslp"><span class="sh-t">Pacific pressure and satellite</span><span class="sh-d">Pressure, wind and simulated IR</span></a></li>
<li><a href="/circulation.html#rainfc"><span class="sh-t">Rain forecast, weeks 1–2</span><span class="sh-d">Four ensembles, bias-adjusted, blended</span></a></li>
<li><a href="/circulation.html#troughs"><span class="sh-t">Convergence and monsoon troughs</span><span class="sh-d">Where the low-level wind converges, days 1–15</span></a></li>
</ul>
</div>
</div>
</div>
</li>
<li class="sh-item sh-has-menu">
<button class="sh-link sh-menubtn" type="button" aria-expanded="false" aria-controls="sh-g2">Stratosphere</button>
<div class="sh-menu sh-menu--cols" id="sh-g2">
<div class="sh-col">
<div>
<h3>Forecasts</h3>
<ul>
<li><a href="/ssw.html"><span class="sh-t">SSW outlook</span><span class="sh-d">Is a sudden warming coming?</span></a></li>
<li><a href="/stratosphere.html#vortex"><span class="sh-t">The next two weeks</span><span class="sh-d">The vortex, its waves and the surface</span></a></li>
<li><a href="/stratosphere.html#vortex35"><span class="sh-t">Weeks 3–5 and the season</span><span class="sh-d">GEPS, GEFS, C3S and SEAS5</span></a></li>
<li><a href="/strat-models.html"><span class="sh-t">Stratosphere model maps</span><span class="sh-d">Polar maps at every level, zoomable</span></a></li>
</ul>
</div>
</div>
<div class="sh-col">
<div>
<h3>Analyses and history</h3>
<ul>
<li><a href="/stratosphere.html#qbo"><span class="sh-t">The QBO and today's analyses</span><span class="sh-d">QBO, momentum and the Brewer–Dobson</span></a></li>
<li><a href="/stratosphere.html#shwinters"><span class="sh-t">History and studies</span><span class="sh-d">Every winter and warming since 1980</span></a></li>
</ul>
</div>
</div>
</div>
</li>
<li class="sh-item sh-has-menu">
<button class="sh-link sh-menubtn" type="button" aria-expanded="false" aria-controls="sh-g3">Weeks to seasons</button>
<div class="sh-menu sh-menu--cols" id="sh-g3">
<div class="sh-col">
<div>
<h3>Extended range</h3>
<ul>
<li><a href="/subseasonal.html"><span class="sh-t">GEPS, to day 35</span><span class="sh-d">Canada's extended ensemble</span></a></li>
<li><a href="/gefs.html"><span class="sh-t">GEFS, to day 35</span><span class="sh-d">NOAA's extended ensemble</span></a></li>
</ul>
</div>
</div>
<div class="sh-col">
<div>
<h3>Months and seasons</h3>
<ul>
<li><a href="/monthly-outlook.html"><span class="sh-t">Claude's long-range forecast</span><span class="sh-d">The month and three seasons ahead</span></a></li>
<li><a href="/seasonal.html"><span class="sh-t">Seasonal model forecasts</span><span class="sh-d">Seven C3S systems and CanSIPS</span></a></li>
<li><a href="/enso-forecasts.html"><span class="sh-t">ENSO forecasts</span><span class="sh-d">Niño-3.4 from five centres</span></a></li>
</ul>
</div>
</div>
</div>
</li>
<li class="sh-item sh-has-menu">
<button class="sh-link sh-menubtn" type="button" aria-expanded="false" aria-controls="sh-g4">Studies and tools</button>
<div class="sh-menu sh-menu--cols" id="sh-g4">
<div class="sh-col">
<div>
<h3>Studies</h3>
<ul>
<li><a href="/enso.html#imp_reg"><span class="sh-t">ENSO impacts on the Americas</span><span class="sh-d">CMIP6 and the observed record</span></a></li>
<li><a href="/mjo.html#mi"><span class="sh-t">MJO impacts</span><span class="sh-d">Each phase, season by season</span></a></li>
<li><a href="/aifs-aam-budget.html"><span class="sh-t">AI models and conservation laws</span><span class="sh-d">Does the AIFS keep the budgets?</span></a></li>
<li><a href="/torque-enso.html"><span class="sh-t">El Niño and angular momentum</span><span class="sh-d">Why the atmosphere spins up</span></a></li>
<li><a href="/solar-strat.html"><span class="sh-t">The solar cycle and the stratosphere</span><span class="sh-d">Three proposed routes, each tested</span></a></li>
<li><a href="/topics/"><span class="sh-t">Explainers</span><span class="sh-d">The physics behind the products</span></a></li>
</ul>
</div>
</div>
<div class="sh-col">
<div>
<h3>Verification</h3>
<ul>
<li><a href="/verification.html"><span class="sh-t">Model verification</span><span class="sh-d">Scorecards, maps and the database</span></a></li>
</ul>
</div>
<div>
<h3>Tools</h3>
<ul>
<li><a href="/skewt/"><span class="sh-t">Sounding explorer</span><span class="sh-d">Radiosondes worldwide, live</span></a></li>
<li><a href="/asos5.html"><span class="sh-t">Five-minute airport observations</span><span class="sh-d">22 major US airports, live</span></a></li>
<li><a href="/snow.html"><span class="sh-t">Snow cover and depth</span><span class="sh-d">IMS, ERA5 and SNODAS, against normal</span></a></li>
<li><a href="/climate.html"><span class="sh-t">US climate trends</span><span class="sh-d">Every county and month since 1895</span></a></li>
<li><a href="/fci.html"><span class="sh-t">US credit conditions</span><span class="sh-d">Financial conditions, weekly since 1990</span></a></li>
</ul>
</div>
</div>
</div>
</li>
<li class="sh-item sh-has-menu sh-item--me">
<button class="sh-link sh-menubtn sh-me" type="button" aria-expanded="false" aria-controls="sh-me">About</button>
<div class="sh-menu sh-menu--list sh-menu--me" id="sh-me">
<ul>
<li><a href="/about.html">About me</a></li>
<li><a href="/resume.html">Resume</a></li>
<li><a href="/research.html">Publications</a></li>
<li><a href="/guides/">Methods</a></li>
<li class="sh-me-ext"><a href="https://github.com/scorvec">GitHub</a></li>
<li><a href="https://scholar.google.com/citations?user=EYLRCJIAAAAJ&hl=en">Google Scholar</a></li>
<li><a href="https://www.linkedin.com/in/shawn-corvec-35895b231/">LinkedIn</a></li>
</ul>
</div>
</li>
</ul>
</nav>
</div>
</header>
<!-- sh:end -->
<main id="main">
<div class="page-header">
<p class="eyebrow">The IERS length of day, GFZ and ERA5 atmospheric angular momentum, and the 50-member IFS-ENS forecast</p>
<h1>Earth’s angular momentum and the length of day</h1>
<p class="sub" id="lede">–</p>
<div class="chips">
<div class="chip"><div class="l">length of day</div><div class="v" data-k="c_lod">–</div><div class="s" data-k="c_lod_s">over 86,400 s</div></div>
<div class="chip"><div class="l">against normal</div><div class="v" data-k="c_dev">–</div><div class="s" data-k="c_dev_s">tides removed</div></div>
<div class="chip"><div class="l">the atmosphere’s part</div><div class="v" data-k="c_atm">–</div><div class="s" data-k="c_atm_s">of the departure</div></div>
<div class="chip"><div class="l">next 15 days</div><div class="v" data-k="c_fc">–</div><div class="s" data-k="c_fc_s">IFS-ENS</div></div>
<div class="chip"><div class="l">spin-up today</div><div class="v" data-k="c_spin">–</div><div class="s" data-k="c_spin_s">global</div></div>
</div>
</div>
<!-- one card at a time on the shared stage viewer (assets/stage.js); the cards below mount whole -->
<div class="ss-layout">
<aside class="ss-rail" id="rail" aria-label="Sections"></aside>
<section class="ss-main">
<div class="crumb"><div class="path" id="crumb"></div>
<div class="nav"><button type="button" id="prevBtn" title="previous (←)">← prev</button><button type="button" id="nextBtn" title="next (→)">next →</button></div></div>
<div class="opts"><div class="controls" id="opts-a"></div><div class="controls" id="opts-b"></div><div class="controls" id="opts-c"></div></div>
<div class="stage" id="stage"></div>
<p class="cap" id="cap"></p>
<div id="about"></div>
<div class="chart-card-footer">
<span class="chart-sources">Data: IERS Earth Orientation Centre and Rapid Service/Prediction Centre (Bulletin A) · GFZ ESMGFZ effective angular momentum functions · NOAA ERSSTv6 and OISST v2.1 (Niño-3.4) · ECMWF open data (CC BY 4.0, Google Cloud mirror) · ERA5 (Copernicus Climate Change Service, ARCO-ERA5 on Google Cloud)</span>
<span class="chart-updated"><span data-k="stamp">–</span></span>
</div>
</section>
</div>
<div class="dom-holder">
<section class="chart-card" id="card-how">
<div class="chart-card-header"><h2>How it works</h2><p data-k="how_line">–</p></div>
<div class="how">
<p>The solid Earth and the air above it turn about the same axis and share one stock of angular momentum. Over
days to seasons almost nothing outside the pair changes that stock, so whatever the atmosphere gains the Earth
loses: when the winds speed up, the planet slows and the day gets longer.</p>
<div class="eq">Earth’s spin + M = constant, M = M<sub>winds</sub> + M<sub>mass</sub>
<small>M is the atmosphere’s angular momentum about the Earth’s axis</small></div>
<div class="eq">change in M per day = T<sub>friction</sub> + T<sub>mountain</sub> + T<sub>gravity waves</sub>
<small>the atmosphere gains or loses momentum only where it touches the ground: these three torques</small></div>
<h3>How the angular momentum is calculated</h3>
<p>M is summed over every parcel of air: its mass times its distance from the axis times its eastward speed.
The speed has two parts, the wind over the ground and the ground’s own rotation, which give the two terms:</p>
<div class="eq" data-tex="M_{\text{winds}}=\frac{a^{3}}{g}\int_{0}^{p_s}\!\!\int_{-\pi/2}^{\pi/2}\!\int_{0}^{2\pi}u\,\cos^{2}\!\phi\;d\lambda\,d\phi\,dp">M<sub>winds</sub> = (a<sup>3</sup>/g) ∫∫∫ u cos<sup>2</sup>φ dλ dφ dp
<small>the eastward wind u, weighted by distance from the axis, through the depth of the atmosphere</small></div>
<div class="eq" data-tex="M_{\text{mass}}=\frac{\Omega\,a^{4}}{g}\int_{-\pi/2}^{\pi/2}\!\int_{0}^{2\pi}p_s\,\cos^{3}\!\phi\;d\lambda\,d\phi">M<sub>mass</sub> = (Ω a<sup>4</sup>/g) ∫∫ p<sub>s</sub> cos<sup>3</sup>φ dλ dφ
<small>the surface pressure p<sub>s</sub> (the weight of the air above each point) turning with the planet</small></div>
<p>a is the Earth’s radius, g gravity, Ω the rotation rate, φ latitude, λ longitude and p pressure.
On this page the integrals are taken from ERA5 (and from each IFS-ENS member for the forecast), over the globe or
over one hemisphere.</p>
<h3>The terms</h3>
<table class="terms">
<thead><tr><th>Term</th><th>What it is</th><th>A positive value means</th><th>Latest, against normal</th><th>See</th></tr></thead>
<tbody>
<tr><th>Wind term, M<sub>winds</sub></th><td>The momentum of air moving east faster than the ground: the jet streams above all.</td>
<td>Stronger westerlies than normal; a longer day.</td><td class="v" data-k="h_aam">–</td><td><a href="#zonal">By latitude</a></td></tr>
<tr><th>Mass term, M<sub>mass</sub></th><td>Where the air’s weight sits: air nearer the equator is farther from the axis and carries more momentum.</td>
<td>More air over low latitudes than normal; a longer day.</td><td class="v" data-k="h_mass">–</td><td><a href="#budget">Budget</a></td></tr>
<tr><th>Friction torque</th><td>The drag between the surface wind and the ground. Easterly trade winds take momentum from the Earth; mid-latitude westerlies hand it back.</td>
<td>The atmosphere is gaining momentum by friction.</td><td class="v" data-k="h_fric">–</td><td><a href="#budget">Budget</a></td></tr>
<tr><th>Mountain torque</th><td>Pressure pushing on the terrain. Higher pressure on the east side of a range than the west pushes the Earth backwards and the air forwards.</td>
<td>The atmosphere is gaining momentum from the mountains.</td><td class="v" data-k="h_mtn">–</td><td><a href="#ranges">Mountain torques</a></td></tr>
<tr><th>Gravity-wave drag</th><td>The same push from terrain too small for the model’s grid, which models estimate.</td>
<td>As the mountain torque.</td><td class="v" data-k="h_gwd">–</td><td><a href="#budget">Budget</a></td></tr>
<tr><th>Change in M</th><td>How fast the atmosphere is spinning up or down, measured from its winds and mass. It should equal the three torques; the gap is what the analysis does not capture.</td>
<td>The atmosphere is spinning up and the Earth is slowing.</td><td class="v" data-k="h_net">–</td><td><a href="#meter">Spin-up meter</a></td></tr>
</tbody>
</table>
<p>Torques are in Hadley (10<sup>18</sup> N m); momentum in 10<sup>25</sup> kg m<sup>2</sup>/s. 10<sup>25</sup> more
wind momentum is a day 0.166 ms longer, and 1 Hadley held for a day lengthens it by 1.43 µs.</p>
<h3>What a change in the Earth’s spin means</h3>
<ul>
<li data-k="h_small">–</li>
<li data-k="h_clock">–</li>
<li><b>It measures the winds.</b> A longer day from the atmosphere means more westerly momentum in the air: stronger
subtropical jets, as in an El Niño, or the stronger winds of northern winter. The day length is a
single number for the state of the whole circulation, measured independently of any weather model.</li>
<li><b>It does not cause weather, and not all of it is weather.</b> Nothing about it can be felt. The Moon’s tides
lengthen the day by about 2 ms a century and the Earth’s core shifts it by milliseconds over decades, which is
why the page measures the day against a slowly moving normal with the tides removed.</li>
</ul>
</div>
</section>
<section class="chart-card" id="card-lod">
<div class="chart-card-header"><h2>Length of day</h2><p data-k="lod_line">–</p></div>
<div class="pad"><div class="plot" id="ch_lod"></div></div>
</section>
<section class="chart-card" id="card-check">
<div class="chart-card-header"><h2>Day length against the atmosphere</h2><p data-k="check_line">–</p></div>
<div class="pad"><div class="plot" id="ch_check"></div></div>
</section>
<section class="chart-card" id="card-water">
<div class="chart-card-header"><h2>Oceans and land water</h2><p data-k="water_line">–</p></div>
<div class="pad"><div class="plot" id="ch_water"></div></div>
</section>
<section class="chart-card" id="card-enso">
<div class="chart-card-header"><h2>El Niño and the day length</h2><p data-k="enso_line">–</p></div>
<div class="pad"><div class="plot" id="ch_enso"></div></div>
</section>
<section class="chart-card" id="card-outlook">
<div class="chart-card-header"><h2>The months ahead</h2><p data-k="outlook_line">–</p></div>
<div class="pad"><div class="plot" id="ch_outlook"></div></div>
</section>
<section class="chart-card" id="card-meter">
<div class="chart-card-header"><h2>Spin-up meter</h2><p data-k="meter_line">–</p></div>
<div class="gauges" id="gauges"></div>
<div class="gkey"><span><i style="background:#cdc6b8"></i>normal ±1σ</span><span><i style="background:#e4dfd5"></i>±2σ</span><span><i style="background:rgba(138,75,42,0.45)"></i>members 10–90%</span><span><i style="background:#b4541f"></i>gaining</span><span><i style="background:#2a6db0"></i>losing</span></div>
<div class="pad"><div class="plot short" id="ch_meter"></div></div>
</section>
<section class="chart-card" id="card-skill">
<div class="chart-card-header"><h2>Forecast track record</h2><p data-k="skill_line">–</p></div>
<div class="pad"><div class="plot short" id="ch_skill"></div></div>
<div class="tblwrap"><table class="rec" id="t_skill"></table></div>
</section>
<section class="chart-card" id="card-budget">
<div class="chart-card-header"><h2>Budget by hemisphere</h2><p data-k="budget_line">–</p></div>
<div class="pad"><div class="plot tall" id="ch_budget"></div></div>
</section>
<section class="chart-card" id="card-ranges">
<div class="chart-card-header"><h2>Mountain torques</h2><p data-k="ranges_line">–</p><p class="flag" data-k="ranges_note"></p></div>
<div class="ranges" id="ranges"></div>
</section>
<section class="chart-card" id="card-runs">
<div class="chart-card-header"><h2>Run to run</h2><p data-k="runs_line">–</p></div>
<div class="pad"><div class="plot" id="ch_runs"></div></div>
</section>
<section class="chart-card" id="card-tqskill">
<div class="chart-card-header"><h2>Torque forecasts</h2><p data-k="tq_line">–</p></div>
<div class="pad"><div class="plot" id="ch_tqskill"></div></div>
</section>
<section class="chart-card" id="card-zonal">
<div class="chart-card-header"><h2>Atmospheric angular momentum by latitude</h2><p data-k="zonal_line">–</p></div>
<div class="pad"><div class="plot tall" id="ch_zonal"></div></div>
</section>
<section class="chart-card" id="card-phase">
<div class="chart-card-header"><h2>Phase</h2><p data-k="phase_line">–</p></div>
<div class="orbits"><div class="plot" id="ch_orb_nh"></div><div class="plot" id="ch_orb_sh"></div></div>
</section>
</div>
</main>
<!-- each figure's sources, printed in its section of the guide (scripts/site/guides.py) -->
<template id="about-lod"><p class="chart-sources">IERS Rapid Service/Prediction Centre finals2000A (Bulletin A UT1−UTC, observed and predicted) · zonal tides: IERS Conventions (2010) chapter 8 · GFZ ESMGFZ effective atmospheric angular momentum functions (Dobslaw et al. 2010) · ECMWF IFS-ENS, 50 members (open data, CC BY 4.0, Google Cloud mirror) · updated twice daily</p></template>
<template id="about-check"><p class="chart-sources">IERS final values: Bulletin B UT1−UTC (in finals2000A, about a month behind), zonal tides removed (IERS Conventions 2010) · GFZ ESMGFZ effective atmospheric angular momentum functions from ECMWF operational analyses (Dobslaw et al. 2010) · updated twice daily</p></template>
<template id="about-water"><p class="chart-sources">GFZ ESMGFZ v2 effective angular momentum functions, one consistent set forced by ECMWF operational analyses: atmosphere (AAM), ocean (OAM, MPIOM), land water (HAM, LISFLOOD) and barystatic sea level (SLAM) (Dobslaw et al. 2010; Dill 2008) · IERS final values (Bulletin B), zonal tides removed · updated weekly</p></template>
<template id="about-enso"><p class="chart-sources">GFZ ESMGFZ effective atmospheric angular momentum functions from ECMWF operational analyses (Dobslaw et al. 2010) · Niño-3.4: NOAA ERSSTv6 box means on a fixed 1991–2020 base, OISST v2.1 for the latest months, as on the ENSO pages · updated twice daily</p></template>
<template id="about-how"><p class="chart-sources">Latest values: ERA5 daily budget (ARCO-ERA5, Copernicus C3S), anomalies on 1991–2020 · day length: IERS Bulletin A, tides removed · Barnes et al. (1983), Eubanks (1993)</p></template>
<template id="about-outlook"><p class="chart-sources">Niño-3.4 forecasts: Copernicus C3S seasonal systems (ECMWF, Met Office, Météo-France, NCEP, ECCC), this month’s issue and their 1993–2016 hindcasts · atmosphere’s share of the day length: GFZ ESMGFZ · Niño-3.4: NOAA ERSSTv6 and OISST v2.1</p></template>
<template id="about-meter"><p class="chart-sources">ECMWF IFS-ENS, 50 members: u on 14 levels and surface pressure (open data, CC BY 4.0, Google Cloud mirror) · normal and spread: ERA5 1991–2020 daily budget (ARCO-ERA5, Copernicus C3S) · updated twice daily</p></template>
<template id="about-skill"><p class="chart-sources">Archived AIFS-ENS (June–October 2026) and IFS-ENS (since 16 October 2026) ensemble means · IERS Bulletin A · GFZ ESMGFZ · updated twice daily</p></template>
<template id="about-budget"><p class="chart-sources">ERA5 daily budget at 00, 06, 12 and 18 UTC (ARCO-ERA5, Copernicus C3S) · ECMWF IFS-ENS, 50 members: u, surface pressure and eastward turbulent surface stress (open data, CC BY 4.0, Google Cloud mirror) · normals ERA5 1991–2020 · updated twice daily</p></template>
<template id="about-ranges"><p class="chart-sources">ERA5 and ECMWF IFS-ENS surface pressure on 0.25°, each on its own model’s orography, summed on 5° boxes · spread ERA5 1991–2020 · updated twice daily</p></template>
<template id="about-runs"><p class="chart-sources">ECMWF IFS-ENS ensemble means, each run as it was issued · ERA5 · normal ERA5 1991–2020 · updated twice daily</p></template>
<template id="about-tqskill"><p class="chart-sources">ECMWF IFS-ENS, 50 members, 00 UTC runs: surface pressure and eastward turbulent surface stress (open data, CC BY 4.0, Google Cloud mirror) · ERA5 daily budget (ARCO-ERA5, Copernicus C3S) · anomalies on ERA5 1991–2020 · updated twice daily</p></template>
<template id="about-zonal"><p class="chart-sources">ERA5 13-level u and surface pressure (ARCO-ERA5, Copernicus C3S) · ECMWF IFS-ENS, 50 members (open data, CC BY 4.0, Google Cloud mirror) · normal ERA5 1991–2020 · updated twice daily</p></template>
<template id="about-phase"><p class="chart-sources">ERA5 · ECMWF IFS-ENS analyses and ensemble mean · normal ERA5 1991–2020 · updated twice daily</p></template>
<script>
// the views of the stage (assets/stage.js) and the cards they mount; the charts draw on STAGE.onRender
(function () {
"use strict";
var REGION = { label: "Region", items: [["G", "Global"], ["NH", "Northern Hemisphere"], ["SH", "Southern Hemisphere"]] };
window.STAGE = {
guide: "/guides/aam.html",
groups: [
{ label: "Earth’s spin", ico: "\u{1F30D}", items: [
["lod", "Length of day", "measured, the atmosphere’s part, the forecast"],
["check", "Day length vs the atmosphere", "measured changes against GFZ’s"],
["water", "Oceans and land water", "what the water cycle adds"],
["enso", "El Niño", "the day length in the big El Niños"],
["outlook", "The months ahead", "the day length from El Niño forecasts"],
["meter", "Spin-up meter", "how fast the atmosphere gains momentum"],
["skill", "Forecast track record", "day-length forecasts against what happened"],
["how", "How it works", "the budget’s terms, and what the spin means"]] },
{ label: "The budget", ico: "⚖", items: [
["budget", "Budget by hemisphere", "momentum, mountain and friction torques"],
["ranges", "Mountain torques", "range by range, and the maps"],
["runs", "Run to run", "the last 14 forecasts"],
["tqskill", "Torque forecasts", "mountain and friction against ERA5"]] },
{ label: "Where the momentum is", ico: "↕", items: [
["zonal", "By latitude", "latitude–time, and the cross-section loop"],
["phase", "Phase", "each hemisphere against its tendency"]] }
],
products: {
how: { label: "How it works", dom: function () { return "card-how"; }, about: "about-how",
cap: function () { return ""; } },
lod: { label: "Length of day",
a: { label: "View", items: [["lod", "Day length"], ["dev", "Against normal"]] },
b: function (a) { return { label: "Span", items: [["3m", "3 months"], ["1y", "1 year"], ["2y", "2 years"]].concat(a === "dev" ? [] : [["all", "Since 1992"]]) }; },
dom: function () { return "card-lod"; }, about: "about-lod",
cap: function (a) { return a === "dev" ? "Tides removed; blue is the atmosphere’s share." : "IERS, tides removed; blue is what the atmosphere explains."; } },
check: { label: "Day length vs the atmosphere",
a: { label: "View", items: [["changes", "Changes"], ["scatter", "Scatter"], ["lags", "By timescale"], ["years", "Year by year"]] },
b: function (a) { return a === "changes" || a === "scatter" ? { label: "Over", def: "10", items: [["1", "1 day"], ["5", "5 days"], ["10", "10 days"], ["30", "30 days"]] } : null; },
dom: function () { return "card-check"; }, about: "about-check",
cap: function (a) { return { changes: "The rapid values (dotted) are not scored.", scatter: "The last two years of final values; dashed is 1:1.", lags: "Whiskers: 95% intervals; significant timescales only.", years: "Whiskers: 95% intervals; significant years only." }[a]; } },
water: { label: "Oceans and land water",
a: { label: "View", items: [["lags", "By timescale"], ["year", "Over the year"]] },
dom: function () { return "card-water"; }, about: "about-water",
cap: function (a) { return a === "year" ? "Dots: measured less the atmosphere, whiskers 95%; dashed: the parts." : "Whiskers: 95% intervals; a step is drawn only where it adds significantly."; } },
enso: { label: "El Niño",
a: { label: "View", items: [["events", "The big El Niños"], ["link", "Scatter"], ["lags", "By lead"]] },
dom: function () { return "card-enso"; }, about: "about-enso",
cap: function (a) { return { events: "Monthly means; shading: what Niño-3.4 alone predicts for this event, 95%.", link: "Each dot a month; this event in colour; shading: the fit’s 95% interval.", lags: "Whiskers: 95% intervals; significant leads only." }[a]; } },
outlook: { label: "The months ahead", dom: function () { return "card-outlook"; }, about: "about-outlook",
cap: function () { return "Black: measured monthly means; brown: the outlook with its 95% range. Only months with proven skill are shown."; } },
meter: { label: "Spin-up meter", dom: function () { return "card-meter"; }, about: "about-meter",
cap: function () { return "IFS-ENS, today’s change in total atmospheric angular momentum."; } },
skill: { label: "Forecast track record",
a: { label: "Model", items: [["AIFS-ENS", "AIFS-ENS"], ["IFS-ENS", "IFS-ENS"]] },
dom: function () { return "card-skill"; }, about: "about-skill",
cap: function () { return "Only leads that beat no change at 95% are drawn."; } },
budget: { label: "Budget by hemisphere", a: REGION,
b: { label: "Days", items: [["1", "Daily"], ["5", "5-day mean"]] },
dom: function () { return "card-budget"; }, about: "about-budget",
cap: function () { return "ERA5, then the IFS-ENS forecast; anomalies on 1991–2020."; } },
ranges: { label: "Mountain torques",
a: { label: "View", items: [["series", "By range"], ["maps", "Maps (loop)"]] },
dom: function (a) { return a === "maps" ? null : "card-ranges"; },
frame: function (a) { return a === "maps" ? "sst_anim.html?embed=1&manifest=torque_manifest.json®ion=torque" : null; },
about: "about-ranges",
cap: function (a) { return a === "maps" ? "IFS-ENS, days 1–15; red adds westerly momentum." : "ERA5, then IFS-ENS; shading ±1σ and ±2σ of single days."; } },
runs: { label: "Run to run", a: REGION, dom: function () { return "card-runs"; }, about: "about-runs",
cap: function () { return "IFS-ENS means, newest in black; ERA5 in grey."; } },
tqskill: { label: "Torque forecasts",
a: { label: "View", items: [["skill", "Skill by day"], ["errors", "Errors"], ["last", "Last verified run"]] },
b: REGION,
dom: function () { return "card-tqskill"; }, about: "about-tqskill",
cap: function (a) { return { skill: "IFS-ENS 00 UTC runs against ERA5; whiskers 95%, significant days only.", errors: "Root-mean-square, summed from day 1; whiskers 95%.", last: "Solid ERA5, dashed the IFS-ENS mean." }[a]; } },
zonal: { label: "By latitude",
a: { label: "View", items: [["chart", "Latitude–time"], ["loop", "Latitude–pressure (loop)"]] },
dom: function (a) { return a === "loop" ? null : "card-zonal"; },
frame: function (a) { return a === "loop" ? "sst_anim.html?embed=1&manifest=aam_zonal_manifest.json®ion=aam_zonal" : null; },
about: "about-zonal",
cap: function (a) { return a === "loop" ? "IFS-ENS mean, days 0–15." : "ERA5, then the IFS-ENS mean."; } },
phase: { label: "Phase", dom: function () { return "card-phase"; }, about: "about-phase",
cap: function () { return "Grey ERA5 and analyses, then the forecast mean."; } }
}
};
})();
</script>
<script>
// the charts: assets/sst/data/aam_page.json (aam_page.py), drawn with Plotly when a card is on stage
(function () {
"use strict";
var C = { ink: "#1a1a1a", ink2: "#4a4744", muted: "#6f6b64", grid: "#ebe8e1", zero: "#a39e94", raw: "#bdb8ae",
accent: "#8a4b2a", fan: "rgba(138,75,42,0.20)", mtn: "#b4541f", fric: "#2a6db0", gwd: "#7a8a1e",
atm: "#2a6db0", ocn: "#1a9e6e", land: "#c98500", sd1: "rgba(120,112,98,0.16)", sd2: "rgba(120,112,98,0.08)" };
var SANS = '"Source Sans 3", system-ui, sans-serif';
var D = null, last = null, plP = null;
var $ = function (id) { return document.getElementById(id); };
function plotly() {
if (!plP) plP = new Promise(function (ok, no) {
var s = document.createElement("script");
s.src = "https://cdn.jsdelivr.net/npm/plotly.js-cartesian-dist-min@2.35.2/plotly-cartesian.min.js";
s.onload = function () { ok(window.Plotly); }; s.onerror = no; document.head.appendChild(s);
});
return plP;
}
function num(v) { return typeof v === "number" && isFinite(v); }
function fmt(v, d, signed) { if (!num(v)) return "–"; var s = Math.abs(v).toFixed(d); return (v < 0 ? "−" : signed ? "+" : "") + s; }
function dmy(s) { var d = new Date(s.slice(0, 10) + "T12:00Z"); return d.getUTCDate() + " " + ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][d.getUTCMonth()]; }
function addDays(s, n) { var d = new Date(s.slice(0, 10) + "T00:00Z"); d.setUTCDate(d.getUTCDate() + n); return d.toISOString().slice(0, 10); }
function setK(k, v) { Array.prototype.forEach.call(document.querySelectorAll('[data-k="' + k + '"]'), function (e) { e.textContent = v; }); }
var AAM_U = "10<sup>25</sup> kg m<sup>2</sup>/s"; // the unit as markup: the site font has no superscript 4-9
function setH(k, html) { Array.prototype.forEach.call(document.querySelectorAll('[data-k="' + k + '"]'), function (e) { e.innerHTML = html; }); }
function wide() { return window.matchMedia && window.matchMedia("(min-width: 1800px)").matches; }
function narrow() { return window.matchMedia && window.matchMedia("(max-width: 600px)").matches; }
function stacked() { return window.matchMedia && window.matchMedia("(max-width: 1000px)").matches; } // the one-column layout
function layout(o) {
var L = {
font: { family: SANS, size: narrow() ? 12.5 : 14, color: C.ink2 },
paper_bgcolor: "rgba(0,0,0,0)", plot_bgcolor: "rgba(0,0,0,0)",
margin: { l: narrow() ? 48 : 64, r: 16, t: 34, b: 44 },
hovermode: "x unified",
hoverlabel: { font: { family: SANS, size: narrow() ? 13 : wide() ? 17 : 15, color: C.ink }, bgcolor: "#fff", bordercolor: C.zero, namelength: -1 },
legend: { orientation: "h", x: 0, y: 1.02, yanchor: "bottom", font: { size: narrow() ? 12 : 13.5 } },
xaxis: { gridcolor: C.grid, linecolor: C.zero, ticks: "outside", tickcolor: C.zero },
yaxis: { gridcolor: C.grid, zerolinecolor: C.zero, zerolinewidth: 1.2 }
};
for (var k in o) L[k] = o[k];
return L;
}
function plot(id, tr, L) {
$(id).hidden = !tr.length; // a view with nothing to draw is its sentence alone, without the chart's key
if (!tr.length) {
var cap = document.querySelector(".ss-main .cap");
if (cap) cap.textContent = "";
return Promise.resolve();
}
// a date axis names the day in the hover box, without a time (Plotly drops a number format that asks for a "+" sign,
// so the hover templates give plain decimals)
if (/^\d{4}-\d\d-\d\d/.test(String((tr[0].x || [])[0])) && L.xaxis && !L.xaxis.hoverformat) L.xaxis.hoverformat = "%-d %b %Y";
var el = $(id);
el.style.height = "";
return plotly().then(function (P) {
return P.react(el, tr, L, { displayModeBar: false, responsive: true }).then(function () {
// on a narrow screen the key wraps onto several rows above the plot and Plotly takes them out of the plot's own
// height (the budget's two panels were left 76 and 143 px on a phone): the chart grows by those rows instead
var size = el._fullLayout && el._fullLayout._size, extra = size && L.margin ? Math.round(size.t - L.margin.t) : 0;
if (!stacked() || extra < 8) return;
el.style.height = (el.clientHeight + extra) + "px";
return P.Plots.resize(el);
});
});
}
function line(x, y, name, color, w, extra) {
var t = { type: "scatter", mode: "lines", x: x, y: y, name: name, line: { color: color, width: w || 2 } };
for (var k in extra || {}) t[k] = extra[k];
return t;
}
function band(x, lo, hi, name, fill, extra) { // a filled band between two series, one legend entry
var g = "b" + Math.random();
var a = { type: "scatter", mode: "lines", x: x, y: lo, line: { width: 0 }, hoverinfo: "skip", showlegend: false, legendgroup: g };
var b = { type: "scatter", mode: "lines", x: x, y: hi, line: { width: 0 }, fill: "tonexty", fillcolor: fill, name: name, hoverinfo: "skip", legendgroup: g };
for (var k in extra || {}) b[k] = extra[k];
return [a, b];
}
function vline(x, label) {
return { shapes: [{ type: "line", xref: "x", yref: "paper", x0: x, x1: x, y0: 0, y1: 1, line: { color: C.muted, width: 1.2, dash: "dot" } }],
annotations: label ? [{ x: x, y: 1, xref: "x", yref: "paper", text: label, showarrow: false, xanchor: "left", yanchor: "top", font: { size: 12.5, color: C.muted } }] : [] };
}
function roll(y, n) { // centred running mean (n odd), for the 5-day view
if (n <= 1) return y;
var h = (n - 1) / 2;
return y.map(function (_, i) { var s = 0, c = 0; for (var j = i - h; j <= i + h; j++) if (num(y[j])) { s += y[j]; c++; } return c === n ? s / c : null; });
}
var REGN = { G: "Global", NH: "Northern Hemisphere", SH: "Southern Hemisphere" };
var RKEY = { G: "global", NH: "nh", SH: "sh" };
// ── header ────────────────────────────────────────────────────────────────
function drawOutlook() {
var O = D.outlook;
if (!O || !O.months || !O.months.length) { setK("outlook_line", "No month ahead has proven skill in this build."); return plot("ch_outlook", [], layout({})); }
var M = O.months, last = M[M.length - 1], pct = function (v) { return Math.round(v * 100) + "%"; };
var names = M.map(function (m) { return MON[+m.month.slice(5) - 1]; });
var s = "From the " + O.models + " seasonal models’ Niño-3.4 forecast (" + fmt(last.n34, 1, true) + " °C in " + names[M.length - 1] + "), the atmosphere should keep the day " +
M.map(function (m, i) { return fmt(Math.abs(m.pred), 2) + " ms " + (m.pred > 0 ? "longer" : "shorter") + " than normal in " + names[i] + " (95%: " + fmt(m.lo, 2, true) + " to " + fmt(m.hi, 2, true) + ")"; }).join("; ") +
". Over " + O.hindcast[0] + "–" + O.hindcast[1] + " this outlook explained " + (M.length > 1 ? Math.round(last.skill * 100) + "–" : "") + pct(M[0].skill) + " of the month-to-month variance.";
if (M.some(function (m) { return m.beyond; })) s += " The forecast Niño-3.4 is beyond any month the link was fitted on (" + fmt(O.fit_max, 1, true) + " °C at most), so this is an extrapolation.";
setK("outlook_line", s);
var ox = O.obs.months.map(function (m) { return m + "-15"; }), fx = M.map(function (m) { return m.month + "-15"; });
var tr = [line(ox, O.obs.atm, "Measured (GFZ), monthly", C.ink, 2.2, { mode: "lines+markers", marker: { size: 5, color: C.ink }, hovertemplate: "%{y:.3f} ms" }),
{ type: "scatter", mode: "markers", x: fx, y: M.map(function (m) { return m.pred; }), name: "Outlook, 95% range",
marker: { size: 11, color: C.accent }, customdata: M.map(function (m) { return "Niño-3.4 " + fmt(m.n34, 1, true) + " °C; skill " + pct(m.skill); }),
error_y: { type: "data", symmetric: false, array: M.map(function (m) { return m.hi - m.pred; }), arrayminus: M.map(function (m) { return m.pred - m.lo; }), color: C.accent, thickness: 1.6, width: 6 },
hovertemplate: "%{y:.2f} ms (%{customdata})" }];
return plot("ch_outlook", tr, layout({ xaxis: { gridcolor: C.grid, tickformat: "%b %Y", hoverformat: "%b %Y" },
yaxis: { title: { text: "day length from the atmosphere, ms" }, gridcolor: C.grid, zerolinecolor: C.zero, zerolinewidth: 1.4 } }));
}
function drawHow() {
typeset();
var n = D.lod.now, o = D.budget && D.budget.obs, g = o && o.G, i = g ? g.aam.length - 1 : -1;
var had = function (v) { return fmt(v, 0, true) + " Hadley"; };
if (g) {
setHtml("h_aam", fmt(g.aam[i], 1, true) + " × 10<sup>25</sup>");
setHtml("h_mass", fmt(g.aamm[i], 1, true) + " × 10<sup>25</sup>");
setK("h_fric", had(g.fric[i])); setK("h_mtn", had(g.mtn[i])); setK("h_gwd", had(g.gwd[i])); setK("h_net", had(g.dmdt[i]));
setHtml("how_line", "ERA5, " + dmy(o.dates[i]) + ": the atmosphere holds " + fmt(Math.abs(g.aam[i]), 1) + " × " + AAM_U + " " +
(g.aam[i] > 0 ? "more" : "less") + " wind momentum than normal and is " + (g.dmdt[i] > 0 ? "gaining" : "losing") + " it at " +
fmt(Math.abs(g.dmdt[i]), 0) + " Hadley; the day is " + fmt(Math.abs(n.dev), 2) + " ms " + (n.dev > 0 ? "longer" : "shorter") + " than normal.");
} else setK("how_line", "The day is " + fmt(Math.abs(n.dev), 2) + " ms " + (n.dev > 0 ? "longer" : "shorter") + " than normal.");
var slow = n.dev > 0, a = Math.abs(n.dev);
setHtml("h_small", "<b>How small it is.</b> Today the day runs " + fmt(a, 2) + " ms " + (slow ? "longer" : "shorter") + " than normal: the Earth is turning " +
fmt(Math.abs(n.ppb), 1) + " parts per billion " + (slow ? "slower" : "faster") + ", and a point on the equator, moving at 465 m/s, ends the day about " +
fmt(a * 46.5, 0) + " cm " + (slow ? "short of" : "ahead of") + " where it would otherwise be.");
setHtml("h_clock", "<b>It adds up on the clock.</b> The day itself is " + fmt(Math.abs(n.lod), 2) + " ms " + (n.lod > 0 ? "longer" : "shorter") +
" than 86,400 s; held for a year that puts the Earth’s own time " + fmt(Math.abs(n.lod) * 0.365, 2) + " s " + (n.lod > 0 ? "behind" : "ahead of") +
" atomic clocks. Leap seconds exist to absorb that drift.");
}
var kxP = null;
function katex() { // the equation renderer, loaded for the first view that has equations
if (!kxP) kxP = new Promise(function (ok, no) {
var base = "https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.";
var c = document.createElement("link"), j = document.createElement("script");
c.rel = "stylesheet"; c.href = base + "css"; c.crossOrigin = "anonymous";
c.integrity = "sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+";
j.src = base + "js"; j.crossOrigin = "anonymous";
j.integrity = "sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg";
j.onload = function () { ok(window.katex); }; j.onerror = no;
document.head.appendChild(c); document.head.appendChild(j);
});
return kxP;
}
function typeset() { // an equation keeps its plain-text form if the renderer does not load
katex().then(function (K) {
Array.prototype.forEach.call(document.querySelectorAll(".eq[data-tex]"), function (e) {
var note = e.querySelector("small"), box = document.createElement("div");
K.render(e.getAttribute("data-tex"), box, { displayMode: true, throwOnError: false });
e.textContent = ""; e.appendChild(box); if (note) e.appendChild(note);
e.removeAttribute("data-tex");
});
}).catch(function () {});
}
function setHtml(k, v) { Array.prototype.forEach.call(document.querySelectorAll('[data-k="' + k + '"]'), function (e) { e.innerHTML = v; }); }
function header() {
var n = D.lod.now, fc = D.lod_fc || {}, m = D.meter;
setK("c_lod", fmt(n.lod, 2, true) + " ms");
setK("c_lod_s", "over 86,400 s, " + dmy(D.lod.last_obs));
setK("c_dev", fmt(n.dev, 2, true) + " ms");
setK("c_dev_s", "spinning " + fmt(Math.abs(n.ppb), 1) + " ppb " + (n.dev > 0 ? "slower" : "faster"));
setK("c_atm", fmt(n.atm, 2, true) + " ms");
setK("c_atm_s", "GFZ, " + (D.lod.last_atm ? dmy(D.lod.last_atm) : "–"));
if (fc.change15) {
setK("c_fc", fmt(fc.change15.mean, 2, true) + " ms");
setK("c_fc_s", "IFS-ENS, 10–90%: " + fmt(fc.change15.p10, 2, true) + " to " + fmt(fc.change15.p90, 2, true));
}
if (m) {
setK("c_spin", fmt(m.G.now, 0, true) + " Hadley");
setK("c_spin_s", "day " + (m.G.now > 0 ? "lengthening " : "shortening ") + fmt(Math.abs(m.G.now * m.us_per_hadley), 0) + " µs a day");
}
var s = "Today’s day is " + fmt(Math.abs(n.dev), 2) + " ms " + (n.dev > 0 ? "longer" : "shorter") + " than normal, " +
fmt(n.atm, 2, true) + " ms of it the atmosphere’s";
var now = D.check && D.check.now;
if (now && now.significant) s += "; over the past year it accounted for " + share(now.ve) + " of the " + D.check.n_head + "-day changes in the measured day length";
s += ".";
// a record El Niño push leads the page (the El Niño view has the test)
var O = D.enso && D.enso.onset;
if (O && O.push_rank === 1) s += " Since El Niño set in (" + MON[parseInt(O.month.slice(5, 7), 10) - 1] + "), the atmosphere has made the day " +
fmt(O.push, 2) + " ms longer on average, the most for any " + O.months + "-month span since " + D.enso.fit[0] +
(O.significant ? " and " + fmt(O.departure, 2) + " ms more than Niño-3.4 alone predicts" : "") + ".";
$("lede").textContent = s;
setK("stamp", "IERS to " + dmy(D.lod.last_obs) + (D.init ? " · IFS-ENS " + D.init.slice(0, 10) + " " + D.init.slice(11, 13) + "Z" : "") + " · built " + D.made);
}
// ── length of day ─────────────────────────────────────────────────────────
function drawLod(a, b) {
var L = D.lod, F = D.lod_fc || {}, x = L.dates, end = F.valid ? F.valid[F.valid.length - 1].slice(0, 10) : x[x.length - 1];
var span = { "3m": 90, "1y": 365, "2y": 730 }[b] || 365;
var x0 = addDays(L.last_obs, -span);
if (a === "dev") {
setK("lod_line", "Departure from the normal day length on " + dmy(L.last_obs) + ": " + fmt(L.now.dev, 2, true) + " ms (" + fmt(L.now.ppb, 1, true) + " ppb in the rotation rate); the atmosphere’s share " + fmt(L.now.atm, 2, true) + " ms.");
var tr = [line(x, L.dev, "Measured, tides removed", C.ink, 2, { hovertemplate: "%{y:.3f} ms" }),
line(x, L.dev_atm, "The atmosphere’s share (GFZ)", C.atm, 2, { hovertemplate: "%{y:.3f} ms" }),
line(x, L.pred_tf.map(function (v, i) { return num(v) && num(L.normal[i]) ? v - L.normal[i] : null; }), "IERS prediction", C.ink, 1.6,
{ line: { color: C.ink, width: 1.6, dash: "dot" }, hovertemplate: "%{y:.3f} ms" })];
if (F.valid) tr.push(line(F.valid, F.dev_mean, "IFS-ENS forecast", C.accent, 2.6, { hovertemplate: "%{y:.3f} ms" }));
var V = vline(D.init ? D.init.slice(0, 16) : L.last_obs);
return plot("ch_lod", tr, layout({ xaxis: { range: [x0, end], gridcolor: C.grid }, yaxis: { title: { text: "ms" }, gridcolor: C.grid, zerolinecolor: C.zero, zerolinewidth: 1.4 }, shapes: V.shapes }));
}
if (b === "all") {
setK("lod_line", "Monthly mean day length since 1992, tides removed: the slow swings are the Earth’s core; the yearly ones the atmosphere.");
return plot("ch_lod", [line(L.monthly.dates, L.monthly.lod_tf, "Tides removed, monthly", C.ink, 2, { hovertemplate: "%{y:.3f} ms" })],
layout({ yaxis: { title: { text: "ms over 86,400 s" }, gridcolor: C.grid, zerolinecolor: C.zero }, hovermode: "x" }));
}
setK("lod_line", "Day length on " + dmy(L.last_obs) + ": " + fmt(L.now.lod, 3, true) + " ms over 86,400 s, " + fmt(L.now.lod_tf, 3, true) + " ms with the tides removed" +
(F.change15 ? "; IFS-ENS: " + fmt(F.change15.mean, 2, true) + " ms by day 15." : "."));
var tr = [line(x, L.lod, "Measured (with tides)", C.raw, 1.2, { hovertemplate: "%{y:.3f} ms" }),
line(x, L.normal, "Normal", C.muted, 1.6, { line: { color: C.muted, width: 1.6, dash: "dash" }, hovertemplate: "%{y:.3f} ms" }),
line(x, L.atm_line, "What the atmosphere explains", C.atm, 1.8, { hovertemplate: "%{y:.3f} ms" }),
line(x, L.lod_tf, "Tides removed", C.ink, 2.4, { hovertemplate: "%{y:.3f} ms" }),
line(x, L.pred_tf, "IERS prediction", C.ink, 1.6, { line: { color: C.ink, width: 1.6, dash: "dot" }, hovertemplate: "%{y:.3f} ms" })];
if (F.valid) {
tr = tr.concat(band(F.valid, F.p10, F.p90, "IFS-ENS 10–90%", C.fan));
tr.push(line(F.valid, F.mean, "IFS-ENS mean", C.accent, 2.8, { hovertemplate: "%{y:.3f} ms" }));
}
var V = vline(D.init ? D.init.slice(0, 16) : L.last_obs, "forecast →");
return plot("ch_lod", tr, layout({ xaxis: { range: [x0, end], gridcolor: C.grid }, yaxis: { title: { text: "ms over 86,400 s" }, gridcolor: C.grid, zerolinecolor: C.zero },
shapes: V.shapes, annotations: V.annotations }));
}
// ── the day length against the atmosphere ─────────────────────────────────
function share(v) { return num(v) ? Math.round(v * 100) + "%" : "\u2013"; }
function drawCheck(a, b) {
var K = D.check, L = D.lod;
if (!K || !K.lags) { setK("check_line", "No IERS final values in this build."); return plot("ch_check", [], layout({})); }
var n = parseInt(b || "10", 10), lag = function (key) { return key + " " + (key === 1 ? "day" : "days"); }, nday = function (key) { return key + "-day"; };
if (a === "lags") {
var xs = K.lags.map(function (v) { return String(v); });
var tr = [["all", "Since " + K.all.first.slice(0, 4), C.ink], ["year", "The last year", C.atm]].map(function (w) {
var W = K[w[0]], sig = W.significant;
return { type: "scatter", mode: "lines+markers", x: xs, y: W.ve.map(function (v, i) { return sig[i] ? v : null; }), name: w[1],
line: { color: w[2], width: 2.2 }, marker: { size: 8, color: w[2] },
error_y: { type: "data", symmetric: false, array: W.hi.map(function (v, i) { return sig[i] ? v - W.ve[i] : null; }),
arrayminus: W.lo.map(function (v, i) { return sig[i] ? W.ve[i] - v : null; }), color: w[2], thickness: 1.2, width: 3 },
customdata: W.r.map(function (v, i) { return sig[i] ? "r " + v.toFixed(2) + ", left over " + W.rms_resid[i].toFixed(3) + " of " + W.rms_lod[i].toFixed(3) + " ms rms" : ""; }),
hovertemplate: "%{y:.0%} (%{customdata})<extra>" + w[1] + "</extra>" };
});
var A = K.all, said = [1, 10, 30].filter(function (v) { return A.significant[K.lags.indexOf(v)]; }).map(function (v) { return share(A.ve[K.lags.indexOf(v)]) + " over " + lag(v); });
if (said.length > 1) said = [said.slice(0, -1).join(", ") + " and " + said[said.length - 1]];
setK("check_line", said.length ? "Since " + A.first.slice(0, 4) + ", the atmosphere accounts for " + said[0].replace(" over ", " of the measured change in the day length over ") + "." :
"No timescale with a significant agreement since " + A.first.slice(0, 4) + ".");
return plot("ch_check", tr, layout({ hovermode: "x unified", xaxis: { title: { text: "change over (days)" }, type: "category", gridcolor: C.grid },
yaxis: { title: { text: "share of the measured change" }, tickformat: ".0%", range: [0, 1.02], gridcolor: C.grid } }));
}
if (a === "years") {
var Y = K.years, keep = Y.significant;
var yrs = Y.year.filter(function (_, i) { return keep[i]; }), ve = Y.ve.filter(function (_, i) { return keep[i]; });
var lo = Y.lo.filter(function (_, i) { return keep[i]; }), hi = Y.hi.filter(function (_, i) { return keep[i]; });
var rr = Y.r.filter(function (_, i) { return keep[i]; });
if (!yrs.length) { setK("check_line", "No year with a significant agreement in " + nday(K.n_head) + " changes."); return plot("ch_check", [], layout({})); }
var lo_i = ve.indexOf(Math.min.apply(null, ve)), hi_i = ve.indexOf(Math.max.apply(null, ve));
var latest = ve.length - 1 === lo_i || ve.length - 1 === hi_i ? "" : "; " + yrs[ve.length - 1] + ": " + share(ve[ve.length - 1]);
setK("check_line", nday(K.n_head) + " changes, year by year: the atmosphere accounted for between " + share(ve[lo_i]) + " (" + yrs[lo_i] + ") and " +
share(ve[hi_i]) + " (" + yrs[hi_i] + ") of the measured change" + latest + ".");
var floor = Math.max(0, Math.floor((Math.min.apply(null, lo) - 0.03) * 20) / 20);
return plot("ch_check", [{ type: "scatter", mode: "markers", x: yrs, y: ve, name: "share", marker: { color: C.ink, size: 8 },
error_y: { type: "data", symmetric: false, array: hi.map(function (v, i) { return v - ve[i]; }), arrayminus: lo.map(function (v, i) { return ve[i] - v; }), color: C.accent, thickness: 1.2, width: 3 },
customdata: rr.map(function (v, i) { return "r " + v.toFixed(2) + ", 95% " + share(lo[i]) + "\u2013" + share(hi[i]); }),
hovertemplate: "%{x}: %{y:.0%} (%{customdata})<extra></extra>" }],
layout({ hovermode: "closest", showlegend: false, xaxis: { dtick: narrow() ? 4 : 2, gridcolor: C.grid },
yaxis: { title: { text: "share of the measured " + nday(K.n_head) + " change" }, tickformat: ".0%", range: [floor, 1.005], gridcolor: C.grid } }));
}
// changes and scatter: n-day changes from the daily series
var chg = function (v) { return v.map(function (_, i) { return i >= n && num(v[i]) && num(v[i - n]) ? v[i] - v[i - n] : null; }); };
var x = L.dates, dF = chg(L.lod_b), dA = chg(L.atm), dR = chg(L.lod_tf).map(function (v, i) { return x[i] > K.all.last ? v : null; });
var k = K.lags.indexOf(n), W = K.year.significant[k] ? K.year : K.all, since = W === K.year ? "Over the last year of final values" : "Since " + K.all.first.slice(0, 4);
var line1 = !W.significant[k] ? "No significant agreement over " + lag(n) + "." : since + ", the atmosphere accounts for " + share(W.ve[k]) + " (95%: " + share(W.lo[k]) + "\u2013" + share(W.hi[k]) + ") of the measured " + nday(n) +
" changes in the day length; correlation " + fmt(W.r[k], 2) + ", what is left " + fmt(W.rms_resid[k], 3) + " ms rms of " + fmt(W.rms_lod[k], 3) + ".";
if (a === "scatter") {
var A2 = K.all, cut = addDays(K.all.last, -365), pts = { old: [[], [], []], yr: [[], [], []] };
x.forEach(function (d, i) { if (num(dF[i]) && num(dA[i])) { var g = d > cut ? pts.yr : pts.old; g[0].push(dA[i]); g[1].push(dF[i]); g[2].push(dmy(d)); } });
var all = pts.old[0].concat(pts.yr[0], pts.old[1], pts.yr[1]).map(Math.abs), m = Math.max.apply(null, all.concat([0.01])) * 1.08;
setK("check_line", !A2.significant[k] ? "No significant agreement over " + lag(n) + "." : "Since " + A2.first.slice(0, 4) + ", the measured " + nday(n) +
" change in the day length against the atmosphere’s: slope " + fmt(A2.slope[k], 2) + ", correlation " + fmt(A2.r[k], 2) + ", " + share(A2.ve[k]) + " of the measured change accounted for.");
var dots = function (g, name, color) { return { type: "scatter", mode: "markers", x: g[0], y: g[1], customdata: g[2], name: name,
marker: { size: 6, color: color, opacity: 0.75, line: { width: 0.6, color: "#fff" } }, hovertemplate: "%{customdata}: atmosphere %{x:.3f}, measured %{y:.3f} ms<extra></extra>" }; };
return plot("ch_check", [line([-m, m], [-m, m], "1:1", C.muted, 1.4, { line: { color: C.muted, width: 1.4, dash: "dash" }, hoverinfo: "skip", showlegend: false }),
dots(pts.old, "The year before", "#b9b4aa"), dots(pts.yr, "The last year", C.atm)],
layout({ hovermode: "closest", xaxis: { title: { text: "the atmosphere’s change (GFZ), ms" }, range: [-m, m], gridcolor: C.grid, zerolinecolor: C.zero },
yaxis: { title: { text: "measured change (IERS), ms" }, range: [-m, m], scaleanchor: "x", gridcolor: C.grid, zerolinecolor: C.zero } }));
}
setK("check_line", line1);
return plot("ch_check", [line(x, dF, "Measured (IERS final)", C.ink, 2, { hovertemplate: "%{y:.3f} ms" }),
line(x, dR, "Measured (IERS rapid)", C.ink, 1.6, { line: { color: C.ink, width: 1.6, dash: "dot" }, hovertemplate: "%{y:.3f} ms" }),
line(x, dA, "The atmosphere (GFZ)", C.atm, 2, { hovertemplate: "%{y:.3f} ms" })],
layout({ xaxis: { range: [addDays(L.last_obs, -365), L.last_obs], gridcolor: C.grid },
yaxis: { title: { text: nday(n) + " change, ms" }, gridcolor: C.grid, zerolinecolor: C.zero, zerolinewidth: 1.4 } }));
}
// ── oceans and land water ─────────────────────────────────────────────────
function drawWater(a) {
var W = D.water;
if (!W || !W.lags) { setK("water_line", "The oceans and land water are not in this build."); return plot("ch_water", [], layout({})); }
var left = function (v) { return num(v) ? (1 - v) * 100 : null; }, pp = function (v, d) { return fmt(v, d === undefined ? 1 : d) + "%"; };
var span = W.first.slice(0, 4) + "\u2013" + W.last.slice(0, 4);
if (a === "year") {
var S = W.season;
if (!S || !S.significant) {
setK("water_line", S ? "Over the year (" + S.years.join("\u2013") + "), the oceans, land water and sea level do not account for a significant part of the seasonal cycle the atmosphere leaves." : "Too few complete years for the seasonal cycle.");
return plot("ch_water", [], layout({}));
}
var mo = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];
setK("water_line", "Over the year (" + S.years.join("\u2013") + "), the atmosphere leaves a seasonal swing of " + fmt(S.range_resid, 3) + " ms in the measured day length; the oceans, land water and sea level account for " +
share(S.ve) + " (95%: " + share(S.lo) + "\u2013" + share(S.hi) + ") of it.");
var tr = [{ type: "scatter", mode: "markers", x: mo, y: S.resid, name: "Measured less the atmosphere", marker: { color: C.ink, size: 9 },
error_y: { type: "data", symmetric: false, array: S.resid_hi.map(function (v, i) { return v - S.resid[i]; }), arrayminus: S.resid_lo.map(function (v, i) { return S.resid[i] - v; }), color: C.ink2, thickness: 1.2, width: 3 },
hovertemplate: "%{y:.3f} ms<extra>measured less the atmosphere</extra>" },
line(mo, S.water, "Oceans, land water and sea level", C.ink2, 2.4, { hovertemplate: "%{y:.3f} ms" }),
line(mo, S.ocn, "Oceans", C.ocn, 1.6, { line: { color: C.ocn, width: 1.6, dash: "dash" }, hovertemplate: "%{y:.3f} ms" }),
line(mo, S.land, "Land water and sea level", C.land, 1.6, { line: { color: C.land, width: 1.6, dash: "dash" }, hovertemplate: "%{y:.3f} ms" })];
return plot("ch_water", tr, layout({ xaxis: { type: "category", gridcolor: C.grid }, yaxis: { title: { text: "day length, ms" }, gridcolor: C.grid, zerolinecolor: C.zero, zerolinewidth: 1.4 } }));
}
var xs = W.lags.map(String), steps = [["atm", "The atmosphere", C.atm], ["ocn", "+ the oceans", C.ocn], ["all", "+ land water and sea level", C.land]];
var shown = function (k, i) { return k === "atm" ? num(W.atm.lo[i]) && W.atm.lo[i] > 0 : W[k].gain_sig[i]; };
var tr2 = steps.map(function (st) {
var R = W[st[0]];
return { type: "scatter", mode: "lines+markers", x: xs, y: R.ve.map(function (v, i) { return shown(st[0], i) ? left(v) : null; }), name: st[1],
line: { color: st[2], width: 2.2 }, marker: { size: 8, color: st[2] },
error_y: { type: "data", symmetric: false, array: R.lo.map(function (v, i) { return shown(st[0], i) ? left(v) - left(R.ve[i]) : null; }),
arrayminus: R.hi.map(function (v, i) { return shown(st[0], i) ? left(R.ve[i]) - left(v) : null; }), color: st[2], thickness: 1.2, width: 3 },
customdata: R.slope.map(function (v) { return num(v) ? "slope " + v.toFixed(2) : ""; }),
hovertemplate: "%{y:.2f}% left (%{customdata})<extra>" + st[1] + "</extra>" };
});
var k = W.lags.indexOf(90), say = [];
if (k >= 0 && shown("atm", k)) {
say.push("Over 90 days (" + span + ") the atmosphere leaves " + pp(left(W.atm.ve[k]), 2) + " of the measured change unexplained");
if (W.ocn.gain_sig[k]) say.push("the oceans cut that to " + pp(left(W.ocn.ve[k]), 2));
if (W.all.gain_sig[k]) say.push("land water and sea level to " + pp(left(W.all.ve[k]), 2));
else say.push("land water and sea level add nothing significant");
}
setK("water_line", say.length ? say.join("; ") + "." : "No timescale with a significant agreement over " + span + ".");
return plot("ch_water", tr2, layout({ hovermode: "x unified", xaxis: { title: { text: "change over (days)" }, type: "category", gridcolor: C.grid },
yaxis: { title: { text: "measured change left unexplained" }, type: "log", gridcolor: C.grid,
tickvals: [0.1, 0.2, 0.5, 1, 2, 5, 10, 20, 50, 100], ticktext: ["0.1%", "0.2%", "0.5%", "1%", "2%", "5%", "10%", "20%", "50%", "100%"] } }));
}
// ── El Niño ───────────────────────────────────────────────────────────────
var MON = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];
function ym(s) { return MON[parseInt(s.slice(5, 7), 10) - 1] + " " + s.slice(0, 4); }
function yearList(ys) { // 1993, 1995, 1997, 1998 -> "1993, 1995 and 1997–98"
var runs = [];
ys.forEach(function (y) { var r = runs[runs.length - 1]; if (r && y === r[1] + 1) r[1] = y; else runs.push([y, y]); });
var w = runs.map(function (r) { return r[0] === r[1] ? String(r[0]) : r[0] + "\u2013" + String(r[1]).slice(2); });
return w.length > 1 ? w.slice(0, -1).join(", ") + " and " + w[w.length - 1] : w[0];
}
function drawEnso(a) {
var E = D.enso;
if (!E || !E.events) { setK("enso_line", "El Niño is not in this build."); return plot("ch_enso", [], layout({})); }
var fitYears = E.fit[0] + "\u2013" + E.fit[1], cur = E.events.filter(function (e) { return e.current; })[0];
if (a === "lags") {
var G = E.lags, ks = [], rs = [], lo = [], hi = [];
G.k.forEach(function (k, i) { if (G.sig[i]) { ks.push(k); rs.push(G.r[i]); lo.push(G.lo[i]); hi.push(G.hi[i]); } });
if (!ks.length) { setK("enso_line", "No significant link at any lead (" + fitYears + ")."); return plot("ch_enso", [], layout({})); }
var mo = function (k) { return Math.abs(k) + (Math.abs(k) === 1 ? " month" : " months"); };
var ahead = function (k) { return k === 0 ? "the same month" : k > 0 ? "Niño-3.4 " + mo(k) + " ahead" : "the atmosphere " + mo(k) + " ahead"; };
var top = rs.indexOf(Math.max.apply(null, rs));
setK("enso_line", fitYears + ": the link is closest with " + ahead(ks[top]) + " (correlation " + fmt(rs[top], 2) + ") and holds from " +
ahead(ks[0]) + " to " + ahead(ks[ks.length - 1]) + ".");
return plot("ch_enso", [{ type: "scatter", mode: "lines+markers", x: ks, y: rs, name: "correlation", line: { color: C.ink, width: 2.2 }, marker: { size: 8, color: C.ink },
error_y: { type: "data", symmetric: false, array: hi.map(function (v, i) { return v - rs[i]; }), arrayminus: lo.map(function (v, i) { return rs[i] - v; }), color: C.accent, thickness: 1.2, width: 3 },
customdata: ks.map(function (k, i) { return ahead(k) + ", 95% " + fmt(lo[i], 2) + "\u2013" + fmt(hi[i], 2); }),
hovertemplate: "%{y:.2f} (%{customdata})<extra></extra>" }],
layout({ hovermode: "closest", showlegend: false, xaxis: { title: { text: "Niño-3.4 ahead by (months)" }, dtick: 2, range: [G.k[0] - 0.6, G.k[G.k.length - 1] + 0.6], gridcolor: C.grid, zerolinecolor: C.zero },
yaxis: { title: { text: "correlation" }, range: [0, Math.max.apply(null, hi) + 0.05], gridcolor: C.grid } }));
}
if (a === "link") {
if (!E.significant) { setK("enso_line", "No significant link between Niño-3.4 and the atmosphere’s push (" + fitYears + ")."); return plot("ch_enso", [], layout({})); }
setK("enso_line", fitYears + ": each 1 °C of Niño-3.4 lengthens the day by " + fmt(E.slope, 2) + " ms (95%: " + fmt(E.slope_lo, 2) + "\u2013" + fmt(E.slope_hi, 2) +
") in the same month; correlation " + fmt(E.r, 2) + " (" + fmt(E.r_lo, 2) + "\u2013" + fmt(E.r_hi, 2) + ").");
var S = E.scatter, F = E.line;
var tr = band(F.x, F.lo, F.hi, "Fit, 95%", C.sd1).concat([line(F.x, F.y, "Fit " + fitYears, C.ink, 1.8, { hoverinfo: "skip" }),
{ type: "scatter", mode: "markers", x: S.n34, y: S.atm, customdata: S.t.map(ym), name: "Months " + fitYears,
marker: { size: 6, color: "#b9b4aa", opacity: 0.8, line: { width: 0.6, color: "#fff" } }, hovertemplate: "%{customdata}: Niño-3.4 %{x:.2f} °C, %{y:.3f} ms<extra></extra>" }]);
if (cur) {
var px = [], py = [], pt = [], pl = [], on = E.onset ? E.onset.month : null;
cur.atm.forEach(function (v, i) {
if (!num(v) || !num(cur.n34[i])) return;
var m = cur.year + Math.floor(i / 12) + "-" + ("0" + (i % 12 + 1)).slice(-2);
px.push(cur.n34[i]); py.push(v); pt.push(ym(m)); pl.push(on && m >= on ? MON[i % 12] : "");
});
tr.push({ type: "scatter", mode: "markers+text", x: px, y: py, customdata: pt, text: pl, textposition: "top center", textfont: { size: 12, color: C.ink2 }, name: cur.label,
marker: { size: 9, color: C.accent, line: { width: 1, color: "#fff" } }, hovertemplate: "%{customdata}: Niño-3.4 %{x:.2f} °C, %{y:.3f} ms<extra></extra>" });
}
return plot("ch_enso", tr, layout({ hovermode: "closest", xaxis: { title: { text: "Niño-3.4, °C" }, gridcolor: C.grid, zerolinecolor: C.zero },
yaxis: { title: { text: "day length from the atmosphere, ms" }, gridcolor: C.grid, zerolinecolor: C.zero, zerolinewidth: 1.4 } }));
}
// the big El Niños, from January of their onset year
var O = E.onset, xs = cur ? cur.atm.map(function (_, i) { return i; }) : [];
if (O && O.significant) setK("enso_line", "Since El Niño set in (" + ym(O.month) + "), the atmosphere has made the day " + fmt(O.push, 2) + " ms longer on average" +
(O.push_rank === 1 ? ", a record for " + O.months + " months since " + E.fit[0] : "") + ", and " + fmt(O.departure, 2) + " ms longer than Niño-3.4 alone predicts; only " +
yearList(O.ahead_years) + " had spans that far above (p = " + O.p.toFixed(2) + ").");
else if (O) setK("enso_line", "Since El Niño set in (" + ym(O.month) + "), the atmosphere has made the day " + fmt(O.push, 2) + " ms longer on average, in line with what Niño-3.4 predicts.");
else setK("enso_line", "The atmosphere’s push on the day length in the big El Niños since " + E.fit[0] + ".");
var styles = [[C.ink2, "solid"], [C.muted, "dash"], ["#a39e94", "dot"]], j = 0, tr2 = [];
if (cur && cur.pred) tr2 = tr2.concat(band(xs, cur.pred_lo, cur.pred_hi, "Niño-3.4 alone predicts, 95%", C.fan));
E.events.forEach(function (e) {
var when = e.atm.map(function (_, i) { return MON[i % 12] + " " + (e.year + Math.floor(i / 12)); });
var st = e.current ? [C.accent, "solid"] : styles[j++ % styles.length];
tr2.push(line(e.atm.map(function (_, i) { return i; }), e.atm, e.label, st[0], e.current ? 3 : 1.8,
{ line: { color: st[0], width: e.current ? 3 : 1.8, dash: st[1] }, customdata: when, hovertemplate: "%{customdata}: %{y:.2f} ms" }));
});
var tv = [0, 2, 4, 6, 8, 10, 12, 14, 16];
return plot("ch_enso", tr2, layout({ xaxis: { tickvals: tv, ticktext: tv.map(function (v) { return MON[v % 12]; }), title: { text: "from January of the onset year" }, gridcolor: C.grid },
yaxis: { title: { text: "day length from the atmosphere, ms" }, gridcolor: C.grid, zerolinecolor: C.zero, zerolinewidth: 1.4 } }));
}
// ── torque forecasts against ERA5 ─────────────────────────────────────────
function drawTq(a, reg) {
var Q = D.torque_skill, R = Q && Q[reg];
if (!R || !Q.first) { setK("tq_line", "No verified torque forecasts in this build."); return plot("ch_tqskill", [], layout({})); }
var L = Q.leads, T3 = [["both", "Mountain + friction", C.ink], ["mtn", "Mountain", C.mtn], ["fric", "Friction", C.fric]];
var yr = function (s) { return dmy(s) + " " + s.slice(0, 4); }, span = yr(Q.first) + " to " + yr(Q.last_init);
var avg = function (v) { return v.reduce(function (s, x) { return s + x; }, 0) / v.length; };
// the forecast torques' standing offset from ERA5, taken off before scoring
var offset = R.bias ? " Before scoring, the forecasts’ standing offset from ERA5 is taken off: mountain " + fmt(avg(R.bias.mtn), 0, true) + ", friction " + fmt(avg(R.bias.fric), 0, true) + " Hadley." : "";
var say = function (s) { setK("tq_line", s + offset); };
var keep = function (S, k, i) { return a === "skill" ? S.significant[i] : num(S[k][i]); };
var whisk = function (S, v, lo, hi) {
return { type: "data", symmetric: false, array: S[hi].map(function (x, i) { return keep(S, v, i) ? x - S[v][i] : null; }),
arrayminus: S[lo].map(function (x, i) { return keep(S, v, i) ? S[v][i] - x : null; }), thickness: 1.2, width: 3 };
};
if (a === "last") {
var Z = Q.last, G = Z && Z[reg];
if (!G) { setK("tq_line", "No run has all its days in ERA5 yet."); return plot("ch_tqskill", [], layout({})); }
var e = G.obs_mtn.length - 1;
setK("tq_line", REGN[reg] + ", the run of " + yr(Z.init) + " 00 UTC: over " + (e + 1) + " days ERA5’s mountain torque added " + fmt(G.obs_mtn[e], 0, true) + " µs to the day and its friction " +
fmt(G.obs_fric[e], 0, true) + " µs; the forecast " + fmt(G.fc_mtn[e], 0, true) + " and " + fmt(G.fc_fric[e], 0, true) + " µs.");
var dash = function (c) { return { color: c, width: 2, dash: "dash" }; };
return plot("ch_tqskill", [line(Z.end, G.obs_mtn, "Mountain, ERA5", C.mtn, 2.4, { hovertemplate: "%{y:.0f} µs" }),
line(Z.end, G.fc_mtn, "Mountain, IFS-ENS", C.mtn, 2, { line: dash(C.mtn), hovertemplate: "%{y:.0f} µs" }),
line(Z.end, G.obs_fric, "Friction, ERA5", C.fric, 2.4, { hovertemplate: "%{y:.0f} µs" }),
line(Z.end, G.fc_fric, "Friction, IFS-ENS", C.fric, 2, { line: dash(C.fric), hovertemplate: "%{y:.0f} µs" })],
layout({ yaxis: { title: { text: "day length added, µs" }, gridcolor: C.grid, zerolinecolor: C.zero, zerolinewidth: 1.4 } }));
}
var v = a === "skill" ? "ss" : "rms", lo = a === "skill" ? "lo" : "rms_lo", hi = a === "skill" ? "hi" : "rms_hi";
var tr = T3.filter(function (t) { return R[t[0]][v].some(function (x, i) { return keep(R[t[0]], v, i); }); }).map(function (t) {
var S = R[t[0]], w = whisk(S, v, lo, hi);
w.color = t[2];
return { type: "scatter", mode: "lines+markers", x: L, y: S[v].map(function (x, i) { return keep(S, v, i) ? x : null; }), name: t[1],
line: { color: t[2], width: t[0] === "both" ? 2.6 : 2 }, marker: { size: 7, color: t[2] }, error_y: w,
customdata: S.rms.map(function (x, i) { return num(x) ? (a === "skill" ? "rms error " + fmt(x, 0) + " µs" : "skill " + share(S.ss[i])) : ""; }),
hovertemplate: (a === "skill" ? "%{y:.0%}" : "%{y:.0f} µs") + " (%{customdata})<extra>" + t[1] + "</extra>" };
});
if (!tr.length) { setK("tq_line", REGN[reg] + ": not yet enough verified runs (" + span + ")."); return plot("ch_tqskill", [], layout({})); }
if (a === "skill") {
var B = R.both, upto = 0;
while (upto < L.length && B.significant[upto]) upto++;
var at = function (k, i) { return R[k].significant[i] ? share(R[k].ss[i]) : "none"; };
say(REGN[reg] + ", IFS-ENS " + span + ": skill over 5 days " + at("both", 4) + " for the torques together, " + at("mtn", 4) + " for the mountain torque and " + at("fric", 4) +