@@ -2431,7 +2431,8 @@ def annualize(self, months=list(range(1, 13)), min_res=0.25, frac_req_months=2/3
24312431
24322432 Examples
24332433 --------
2434- 1) Annual average
2434+ 1) Calendar average
2435+
24352436 .. jupyter-execute::
24362437
24372438 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
24442445 fig, ax = soi.plot(title='Jan-Dec averaging')
24452446 soi_a.plot(marker='o',ax=ax)
24462447
2447- 2) JJA average : straightforward
2448+ 2) JJA average (straightforward)
2449+
24482450 .. jupyter-execute::
24492451
24502452 soi_jja = soi.annualize(months=[6, 7 , 8])
24512453 fig, ax = soi.plot(title='JJA averaging')
24522454 soi_jja.plot(marker='o',ax=ax, label='JJA average')
24532455
24542456 3) DJF average : straddles a year; handles it gracefully
2457+
24552458 .. jupyter-execute::
24562459
24572460 soi_djf = soi.annualize(months=[12, 1 , 2])
24582461 fig, ax = soi.plot(title='DJF averaging')
24592462 soi_djf.plot(marker='o',ax=ax, label='DJF average')
24602463
24612464 4) Varying the fraction of required months
2465+
24622466 .. jupyter-execute::
24632467
24642468 AprMar = [4,5,6,7,8,9,10,11,12,1,2,3]
24652469 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 )
24672471
2468- fig, ax = soi.plot(title='Apr-Mar averaging')
2472+ fig, ax = soi.plot(title='Apr-Mar averaging', xlim = [2000, 2026] )
24692473 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 $')
24712475
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
24732477
24742478 Notes
24752479 -----
@@ -3458,11 +3462,11 @@ def wavelet(self, method='cwt', settings=None, freq=None, freq_kwargs=None, verb
34583462 Examples
34593463 --------
34603464
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.
34623466
34633467 .. jupyter-execute::
34643468
3465- ts = pyleo.utils.load_dataset('SOI ')
3469+ ts = pyleo.utils.load_dataset('NINO3 ')
34663470 scal1 = ts.wavelet()
34673471 scal_signif = scal1.signif_test(number=20) # for research-grade work, use number=200 or larger
34683472 fig, ax = scal_signif.plot()
0 commit comments