@@ -2431,7 +2431,8 @@ def annualize(self, months=list(range(1, 13)), min_res=0.25, frac_req_months=2/3
2431
2431
2432
2432
Examples
2433
2433
--------
2434
- 1) Annual average
2434
+ 1) Calendar average
2435
+
2435
2436
.. jupyter-execute::
2436
2437
2437
2438
soi = pyleo.utils.load_dataset('SOI')
@@ -2444,32 +2445,35 @@ def annualize(self, months=list(range(1, 13)), min_res=0.25, frac_req_months=2/3
2444
2445
fig, ax = soi.plot(title='Jan-Dec averaging')
2445
2446
soi_a.plot(marker='o',ax=ax)
2446
2447
2447
- 2) JJA average : straightforward
2448
+ 2) JJA average (straightforward)
2449
+
2448
2450
.. jupyter-execute::
2449
2451
2450
2452
soi_jja = soi.annualize(months=[6, 7 , 8])
2451
2453
fig, ax = soi.plot(title='JJA averaging')
2452
2454
soi_jja.plot(marker='o',ax=ax, label='JJA average')
2453
2455
2454
2456
3) DJF average : straddles a year; handles it gracefully
2457
+
2455
2458
.. jupyter-execute::
2456
2459
2457
2460
soi_djf = soi.annualize(months=[12, 1 , 2])
2458
2461
fig, ax = soi.plot(title='DJF averaging')
2459
2462
soi_djf.plot(marker='o',ax=ax, label='DJF average')
2460
2463
2461
2464
4) Varying the fraction of required months
2465
+
2462
2466
.. jupyter-execute::
2463
2467
2464
2468
AprMar = [4,5,6,7,8,9,10,11,12,1,2,3]
2465
2469
soi_am_default = soi.annualize(months=AprMar)
2466
- soi_am_stringent = soi.annualize(months=AprMar,frac_req_months=0.9 )
2470
+ soi_am_stringent = soi.annualize(months=AprMar,frac_req_months=1.0 )
2467
2471
2468
- fig, ax = soi.plot(title='Apr-Mar averaging')
2472
+ fig, ax = soi.plot(title='Apr-Mar averaging', xlim = [2000, 2026] )
2469
2473
soi_am_default.plot(marker='o',ax=ax, label='Apr-Mar, $f=2/3$')
2470
- soi_am_stringent.plot(marker='o',ax=ax, label='Apr-Mar, $f=0.9 $')
2474
+ soi_am_stringent.plot(marker='o',ax=ax, label='Apr-Mar, $f=1.0 $')
2471
2475
2472
- We see that insisting on a very high fraction of available months will result in dropped years
2476
+ The last year is incomplete, so insisting on complete coverage results in dropping it
2473
2477
2474
2478
Notes
2475
2479
-----
@@ -3458,11 +3462,11 @@ def wavelet(self, method='cwt', settings=None, freq=None, freq_kwargs=None, verb
3458
3462
Examples
3459
3463
--------
3460
3464
3461
- Wavelet analysis on the evenly-spaced SOI record. The CWT method will be applied by default.
3465
+ Wavelet analysis on the evenly-spaced NINO3 record. The CWT method will be applied by default.
3462
3466
3463
3467
.. jupyter-execute::
3464
3468
3465
- ts = pyleo.utils.load_dataset('SOI ')
3469
+ ts = pyleo.utils.load_dataset('NINO3 ')
3466
3470
scal1 = ts.wavelet()
3467
3471
scal_signif = scal1.signif_test(number=20) # for research-grade work, use number=200 or larger
3468
3472
fig, ax = scal_signif.plot()
0 commit comments