Skip to content

Commit

Permalink
nb4 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkjames committed Mar 9, 2022
1 parent 9d55729 commit 1dd95df
Showing 1 changed file with 6 additions and 29 deletions.
35 changes: 6 additions & 29 deletions notebooks/PaleoHack-nb04_Forcing&Response.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,7 @@
"\n",
"Given that all the noise appears to be at scales shorter than ~5ky, the simplest thing is to filter them out. Of course, `pyleoclim` has a button for that.\n",
"\n",
"**Exercise 4.4** Look up the `filter()` function for the _Series_ class and apply with a cutoff scale of 10 kyr. Then plot it on top of the original, with proper labels.\n",
"\n",
"**Answer 4.4**"
"**Exercise 4.4** Look up the `filter()` function for the _Series_ class and apply with a cutoff scale of 10 kyr. Then plot it on top of the original, with proper labels."
]
},
{
Expand All @@ -183,10 +181,7 @@
"metadata": {},
"outputs": [],
"source": [
"tsb_low = tsb.filter(cutoff_scale = 10)\n",
"fig, ax = tsb.plot(mute=True,label='original composite')\n",
"tsb_low.plot(ax=ax,label='Butterworth filter')\n",
"pyleo.showfig(fig)"
"## your code here ##"
]
},
{
Expand Down Expand Up @@ -230,20 +225,7 @@
"metadata": {},
"outputs": [],
"source": [
"ssa = tsb_coarse.ssa()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"tsb_ssa = tsb_coarse.copy()\n",
"tsb_ssa.value = ssa.RCseries\n",
"fig, ax = tsb.plot(mute=True,label='original')\n",
"tsb_ssa.plot(ax=ax,label='SSA reconstruction')\n",
"pyleo.showfig(fig)"
"## your code here ##"
]
},
{
Expand Down Expand Up @@ -277,16 +259,14 @@
"metadata": {},
"outputs": [],
"source": [
"ms = pyleo.MultipleSeries([qsb.standardize(), tsb_low.standardize()])\n",
"msc = ms.common_time()\n",
"msc.plot()"
"## your code here ##"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**Exercise 4.8** Recompute wavelet coherence with the coarse-grained, filtered isotopic record. What changes? Was it worth it? How would you summarize the relationship between insolation and the Sanbao/Hulu/Dongge composite?"
"**Exercise 4.8** Recompute wavelet coherence with the coarse-grained, filtered isotopic record (make sure to name it coh again). What changes? Was it worth it? How would you summarize the relationship between insolation and the Sanbao/Hulu/Dongge composite?"
]
},
{
Expand All @@ -295,10 +275,7 @@
"metadata": {},
"outputs": [],
"source": [
"qs = msc.series_list[0]\n",
"ts = msc.series_list[1] \n",
"coh = qs.wavelet_coherence(ts)\n",
"coh.plot()"
"## your code here ##"
]
},
{
Expand Down

0 comments on commit 1dd95df

Please sign in to comment.