diff --git a/_images/11c8909ea738ee884954f887836634e17807748ba0e5ddb08aab9ef97a33d1d0.png b/_images/11c8909ea738ee884954f887836634e17807748ba0e5ddb08aab9ef97a33d1d0.png new file mode 100644 index 000000000..741d33459 Binary files /dev/null and b/_images/11c8909ea738ee884954f887836634e17807748ba0e5ddb08aab9ef97a33d1d0.png differ diff --git a/_images/22c6428bdda355290540dc775058f2c80332124fa2b874d49aec7cc3cd6e2b0f.png b/_images/22c6428bdda355290540dc775058f2c80332124fa2b874d49aec7cc3cd6e2b0f.png deleted file mode 100644 index 68822582e..000000000 Binary files a/_images/22c6428bdda355290540dc775058f2c80332124fa2b874d49aec7cc3cd6e2b0f.png and /dev/null differ diff --git a/_images/317812b6874976f9ce1bdc50443e1c2b67f148e87df386edefa58d6848fd86de.png b/_images/317812b6874976f9ce1bdc50443e1c2b67f148e87df386edefa58d6848fd86de.png new file mode 100644 index 000000000..b9c4c10ff Binary files /dev/null and b/_images/317812b6874976f9ce1bdc50443e1c2b67f148e87df386edefa58d6848fd86de.png differ diff --git a/_images/412c33793db4ad3dcb5b39394f2c7fb9d241731db7955170d8e9a4af1b5868d0.png b/_images/412c33793db4ad3dcb5b39394f2c7fb9d241731db7955170d8e9a4af1b5868d0.png deleted file mode 100644 index c085e3f26..000000000 Binary files a/_images/412c33793db4ad3dcb5b39394f2c7fb9d241731db7955170d8e9a4af1b5868d0.png and /dev/null differ diff --git a/_images/51b3d5530d50f9ef32676ed68d9cb7babdbc9d637e7cdbce1251882587995359.png b/_images/51b3d5530d50f9ef32676ed68d9cb7babdbc9d637e7cdbce1251882587995359.png new file mode 100644 index 000000000..77e70cdb9 Binary files /dev/null and b/_images/51b3d5530d50f9ef32676ed68d9cb7babdbc9d637e7cdbce1251882587995359.png differ diff --git a/_images/88ad8866c4c22eda72a07c661a4629a5733f1372878aa04bd12970319c09f225.png b/_images/88ad8866c4c22eda72a07c661a4629a5733f1372878aa04bd12970319c09f225.png new file mode 100644 index 000000000..8c848a4c2 Binary files /dev/null and b/_images/88ad8866c4c22eda72a07c661a4629a5733f1372878aa04bd12970319c09f225.png differ diff --git a/_images/947eb4e35d394433fcf6a2cbc158185e3600f3a8ca36f6bdf7ecf06352a1cff0.png b/_images/947eb4e35d394433fcf6a2cbc158185e3600f3a8ca36f6bdf7ecf06352a1cff0.png deleted file mode 100644 index d03c2b65c..000000000 Binary files a/_images/947eb4e35d394433fcf6a2cbc158185e3600f3a8ca36f6bdf7ecf06352a1cff0.png and /dev/null differ diff --git a/_images/a0c352991330e359aa25053e8894dada250de94cb47e33fc97d9c7f755a18de0.png b/_images/a0c352991330e359aa25053e8894dada250de94cb47e33fc97d9c7f755a18de0.png new file mode 100644 index 000000000..34549143e Binary files /dev/null and b/_images/a0c352991330e359aa25053e8894dada250de94cb47e33fc97d9c7f755a18de0.png differ diff --git a/_images/a1927d08cb5b70901df577b99c1cebea9b83a0672ce6103bafc305b12b7f2027.png b/_images/a1927d08cb5b70901df577b99c1cebea9b83a0672ce6103bafc305b12b7f2027.png deleted file mode 100644 index 062bdadc4..000000000 Binary files a/_images/a1927d08cb5b70901df577b99c1cebea9b83a0672ce6103bafc305b12b7f2027.png and /dev/null differ diff --git a/_images/c35dfa57016632ec844458471f7da7fae21609b01bf2031babf45c8ba881d4f8.png b/_images/c35dfa57016632ec844458471f7da7fae21609b01bf2031babf45c8ba881d4f8.png deleted file mode 100644 index e4b710658..000000000 Binary files a/_images/c35dfa57016632ec844458471f7da7fae21609b01bf2031babf45c8ba881d4f8.png and /dev/null differ diff --git a/_images/c385274337565fc30cabf5a28416b2dcd3dd7ec108d57e3d2bddec25de301aef.png b/_images/c385274337565fc30cabf5a28416b2dcd3dd7ec108d57e3d2bddec25de301aef.png new file mode 100644 index 000000000..706b787a1 Binary files /dev/null and b/_images/c385274337565fc30cabf5a28416b2dcd3dd7ec108d57e3d2bddec25de301aef.png differ diff --git a/_images/c821ea483ccdee8bfcdcdb87b49a62f8e01c34f824f5ad3d6eece34159452f74.png b/_images/c821ea483ccdee8bfcdcdb87b49a62f8e01c34f824f5ad3d6eece34159452f74.png deleted file mode 100644 index f8280a359..000000000 Binary files a/_images/c821ea483ccdee8bfcdcdb87b49a62f8e01c34f824f5ad3d6eece34159452f74.png and /dev/null differ diff --git a/_images/ca985ef8b1550c88d88a32a721538239a83e5f39afb947d53e97c9d900345eb9.png b/_images/ca985ef8b1550c88d88a32a721538239a83e5f39afb947d53e97c9d900345eb9.png new file mode 100644 index 000000000..76e48f913 Binary files /dev/null and b/_images/ca985ef8b1550c88d88a32a721538239a83e5f39afb947d53e97c9d900345eb9.png differ diff --git a/_images/d5e95f4292806a4a0a05afe59060e2291ad5868f29a4a4c5fe5e2e4d11b0d2a0.png b/_images/d5e95f4292806a4a0a05afe59060e2291ad5868f29a4a4c5fe5e2e4d11b0d2a0.png deleted file mode 100644 index 087b1369d..000000000 Binary files a/_images/d5e95f4292806a4a0a05afe59060e2291ad5868f29a4a4c5fe5e2e4d11b0d2a0.png and /dev/null differ diff --git a/_images/db31591733408b63d96d6b5b36c0d54f98da4ed42110b5443f30efffbb326207.png b/_images/db31591733408b63d96d6b5b36c0d54f98da4ed42110b5443f30efffbb326207.png new file mode 100644 index 000000000..adefb7640 Binary files /dev/null and b/_images/db31591733408b63d96d6b5b36c0d54f98da4ed42110b5443f30efffbb326207.png differ diff --git a/_images/e668bf433646cb16ed291c71c90bc0b753a0b68f1ec167485c9a9982eadaad5b.png b/_images/e668bf433646cb16ed291c71c90bc0b753a0b68f1ec167485c9a9982eadaad5b.png deleted file mode 100644 index 0e3af4263..000000000 Binary files a/_images/e668bf433646cb16ed291c71c90bc0b753a0b68f1ec167485c9a9982eadaad5b.png and /dev/null differ diff --git a/_images/f192c88690c165c706d56b0cfca0dfb37ea5ef94f1ce5667060e3b1a1b062b73.png b/_images/f192c88690c165c706d56b0cfca0dfb37ea5ef94f1ce5667060e3b1a1b062b73.png new file mode 100644 index 000000000..468598dbd Binary files /dev/null and b/_images/f192c88690c165c706d56b0cfca0dfb37ea5ef94f1ce5667060e3b1a1b062b73.png differ diff --git a/_images/f301a0a55de19593bcfe661921c6152667edc37b0689266cbca6313e7a66c649.png b/_images/f301a0a55de19593bcfe661921c6152667edc37b0689266cbca6313e7a66c649.png deleted file mode 100644 index d47adb599..000000000 Binary files a/_images/f301a0a55de19593bcfe661921c6152667edc37b0689266cbca6313e7a66c649.png and /dev/null differ diff --git a/appendix/how-to-contribute.html b/appendix/how-to-contribute.html index 385865d62..4226dc1b5 100644 --- a/appendix/how-to-contribute.html +++ b/appendix/how-to-contribute.html @@ -85,7 +85,7 @@ - + @@ -832,7 +832,7 @@
- Last updated on 24 October 2024.
+ Last updated on 14 November 2024.
Each section in your notebook can also contain \(\LaTeX\) equations, enabled through MathJax. In the following example, we illustrate some sample MathJax equations. (Rendering instructions, as well as detailed information about MathJax, can be found in this documentation.)
-
- Last updated on 24 October 2024.
+ Last updated on 14 November 2024.
- Last updated on 24 October 2024.
+ Last updated on 14 November 2024.
<cartopy.mpl.feature_artist.FeatureArtist at 0x7fa9981e19d0>
+<cartopy.mpl.feature_artist.FeatureArtist at 0x7fa3b428be90>
<cartopy.mpl.feature_artist.FeatureArtist at 0x7fa9982b4f10>
+<cartopy.mpl.feature_artist.FeatureArtist at 0x7fa3b42e5c50>
- Last updated on 24 October 2024.
+ Last updated on 14 November 2024.
- Last updated on 24 October 2024.
+ Last updated on 14 November 2024.
- Last updated on 24 October 2024.
+ Last updated on 14 November 2024.
1729785890.1775959
+1731554805.391462
time
The benchmark took 1.0002093315124512 seconds
+The benchmark took 1.000234842300415 seconds
6328
+6349
-I am time zone naive 2024-10-24 16:04:51.212600.
-I am time zone aware 2024-10-24 16:04:51.212624+00:00.
+I am time zone naive 2024-11-14 03:26:46.428224.
+I am time zone aware 2024-11-14 03:26:46.428248+00:00.
@@ -848,8 +848,8 @@ Full time zone support with the <
I am time zone naive: 2024-10-24 16:04:51.216766.
-I am time zone aware: 2024-10-24 10:04:51.226804-06:00.
+I am time zone naive: 2024-11-14 03:26:46.431890.
+I am time zone aware: 2024-11-13 20:26:46.442206-07:00.
The UTC time is October 24, 2024, 4:04PM.
-The 'US/Mountain' time is October 24, 2024, 10:04AM.
+The UTC time is November 14, 2024, 3:26AM.
+The 'US/Mountain' time is November 13, 2024, 8:26PM.
- Last updated on 24 October 2024.
+ Last updated on 14 November 2024.
- Last updated on 24 October 2024.
+ Last updated on 14 November 2024.
We can change which colormap to use by setting the keyword argument cmap = 'colormap_name'
in the plotting function call. This sets the colormap not only for the plot, but for the colorbar as well. In this case, we use the magma
colormap:
<matplotlib.colorbar.Colorbar at 0x7fd49cddf490>
+<matplotlib.colorbar.Colorbar at 0x7fc0b5ecff50>
-
+
You may be wondering why the call to fig.colorbar
uses the argument hist1[3]
. The explanation is as follows: hist1
is a tuple returned by hist2d
, and hist1[3]
contains a matplotlib.collections.QuadMesh
that points to the colormap for the first histogram. To make sure that both histograms are using the same colormap with the same range of values, vmax
is set to 0.18 for both plots. This ensures that both histograms are using colormaps that represent values from 0 (the default for histograms) to 0.18. Because the same data values are used for both plots, it doesn’t matter whether we pass in hist1[3]
or hist2[3]
to fig.colorbar
.
@@ -857,7 +857,7 @@
You’ll notice there is not a colorbar plotted by default. When constructing the colorbar, we need to specify the following:
@@ -939,13 +939,13 @@/tmp/ipykernel_2561/1337655102.py:12: UserWarning: Adding colorbar to a different Figure <Figure size 640x480 with 4 Axes> than <Figure size 640x480 with 3 Axes> which fig.colorbar is called on.
+/tmp/ipykernel_2605/1337655102.py:12: UserWarning: Adding colorbar to a different Figure <Figure size 640x480 with 4 Axes> than <Figure size 640x480 with 3 Axes> which fig.colorbar is called on.
fig.colorbar(histA[3], ax=[axdict['A'], axdict['B']], location='bottom')
-/tmp/ipykernel_2561/1337655102.py:13: UserWarning: Adding colorbar to a different Figure <Figure size 640x480 with 5 Axes> than <Figure size 640x480 with 3 Axes> which fig.colorbar is called on.
+/tmp/ipykernel_2605/1337655102.py:13: UserWarning: Adding colorbar to a different Figure <Figure size 640x480 with 5 Axes> than <Figure size 640x480 with 3 Axes> which fig.colorbar is called on.
fig.colorbar(histC[3], ax=[axdict['C']], location='right');
-
+
- Last updated on 24 October 2024.
+ Last updated on 14 November 2024.
- Last updated on 24 October 2024.
+ Last updated on 14 November 2024.
- Last updated on 24 October 2024.
+ Last updated on 14 November 2024.
- Last updated on 24 October 2024.
+ Last updated on 14 November 2024.
- Last updated on 24 October 2024.
+ Last updated on 14 November 2024.
/tmp/ipykernel_2756/67500735.py:1: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`.
+/tmp/ipykernel_2724/67500735.py:1: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`.
sine_integral = np.trapz(sin_t, t)
@@ -1780,7 +1780,7 @@ Resources and references
- Last updated on 24 October 2024.
+ Last updated on 14 November 2024.
array([[19.1, 18.7, 13.9],
- [18.7, 13.9, 24.1],
- [13.9, 24.1, 10.9],
- [24.1, 10.9, 21.6],
- [10.9, 21.6, 24.3],
- [21.6, 24.3, 18.1],
- [24.3, 18.1, 21.6],
- [18.1, 21.6, 33.3]])
+array([[21.2, 19.4, 22.6],
+ [19.4, 22.6, 19.8],
+ [22.6, 19.8, 13.8],
+ [19.8, 13.8, 17.4],
+ [13.8, 17.4, 7.6],
+ [17.4, 7.6, 27.5],
+ [ 7.6, 27.5, 23.1],
+ [27.5, 23.1, 21.6]])
array([[ 19.1, 18.7, 2000. ],
- [ 18.7, 2000. , 24.1],
- [2000. , 24.1, 10.9],
- [ 24.1, 10.9, 21.6],
- [ 10.9, 21.6, 24.3],
- [ 21.6, 24.3, 18.1],
- [ 24.3, 18.1, 21.6],
- [ 18.1, 21.6, 33.3]])
+array([[ 21.2, 19.4, 2000. ],
+ [ 19.4, 2000. , 19.8],
+ [2000. , 19.8, 13.8],
+ [ 19.8, 13.8, 17.4],
+ [ 13.8, 17.4, 7.6],
+ [ 17.4, 7.6, 27.5],
+ [ 7.6, 27.5, 23.1],
+ [ 27.5, 23.1, 21.6]])
array([[7, 6, 6, ..., 7, 6, 6],
- [7, 7, 7, ..., 8, 7, 6],
- [6, 7, 7, ..., 6, 6, 6],
+array([[7, 6, 7, ..., 6, 7, 7],
+ [7, 6, 6, ..., 6, 7, 6],
+ [6, 7, 6, ..., 6, 6, 6],
...,
- [7, 7, 7, ..., 8, 6, 7],
- [7, 7, 8, ..., 6, 8, 7],
- [6, 7, 7, ..., 6, 6, 8]])
+ [6, 6, 7, ..., 7, 7, 7],
+ [7, 6, 6, ..., 6, 7, 8],
+ [7, 7, 7, ..., 7, 8, 6]])
array([[737.5, 775. , 775. , ..., 737.5, 775. , 775. ],
- [737.5, 737.5, 737.5, ..., 700. , 737.5, 775. ],
- [775. , 737.5, 737.5, ..., 775. , 775. , 775. ],
+array([[737.5, 775. , 737.5, ..., 775. , 737.5, 737.5],
+ [737.5, 775. , 775. , ..., 775. , 737.5, 775. ],
+ [775. , 737.5, 775. , ..., 775. , 775. , 775. ],
...,
- [737.5, 737.5, 737.5, ..., 700. , 775. , 737.5],
- [737.5, 737.5, 700. , ..., 775. , 700. , 737.5],
- [775. , 737.5, 737.5, ..., 775. , 775. , 700. ]])
+ [775. , 775. , 737.5, ..., 737.5, 737.5, 737.5],
+ [737.5, 775. , 775. , ..., 775. , 737.5, 700. ],
+ [737.5, 737.5, 737.5, ..., 737.5, 700. , 775. ]])
array([[-11.44710595, -7.22065739, -7.89588993, ..., -10.82646423,
- -5.37380055, -8.87861153],
- [-10.85520705, -9.00116433, -9.99391275, ..., -13.46870204,
- -12.95425774, -8.07610409],
- [-10.49566091, -10.57374805, -8.88375872, ..., -3.90684223,
- -7.88090598, -8.4823347 ],
+array([[-13.42481167, -9.17700948, -9.37970047, ..., -11.70441647,
+ -7.91347937, -12.10757443],
+ [-13.50636928, -7.19837053, -9.35736591, ..., -8.88210411,
+ -11.15282315, -6.90731835],
+ [ -8.1434806 , -14.03122444, -10.13179945, ..., -12.51534667,
+ -10.41766898, -7.11435998],
...,
- [-11.08911142, -13.00460529, -10.88006683, ..., -12.1519193 ,
- -7.9415901 , -10.34716892],
- [-11.58423485, -13.24891355, -14.96484073, ..., -6.12162802,
- -9.03796517, -11.72144538],
- [ -7.8272587 , -10.42067982, -12.10214242, ..., -9.78563562,
- -8.55425093, -12.33651532]])
+ [-10.34568138, -12.38178421, -8.80207346, ..., -11.84644993,
+ -14.64804599, -9.82005014],
+ [-12.46190369, -7.34290485, -8.4762359 , ..., -7.50476032,
+ -9.13744245, -14.80741945],
+ [-11.35426494, -14.47802372, -12.7227316 , ..., -12.01820687,
+ -13.85816499, -8.13436478]])
array([[-11.44710595, -7.22065739, -7.89588993, ..., -10.82646423,
- -5.37380055, -8.87861153],
- [-10.85520705, -9.00116433, -9.99391275, ..., -13.46870204,
- -12.95425774, -8.07610409],
- [-10.49566091, -10.57374805, -8.88375872, ..., -3.90684223,
- -7.88090598, -8.4823347 ],
+array([[-13.42481167, -9.17700948, -9.37970047, ..., -11.70441647,
+ -7.91347937, -12.10757443],
+ [-13.50636928, -7.19837053, -9.35736591, ..., -8.88210411,
+ -11.15282315, -6.90731835],
+ [ -8.1434806 , -14.03122444, -10.13179945, ..., -12.51534667,
+ -10.41766898, -7.11435998],
...,
- [-11.08911142, -13.00460529, -10.88006683, ..., -12.1519193 ,
- -7.9415901 , -10.34716892],
- [-11.58423485, -13.24891355, -14.96484073, ..., -6.12162802,
- -9.03796517, -11.72144538],
- [ -7.8272587 , -10.42067982, -12.10214242, ..., -9.78563562,
- -8.55425093, -12.33651532]])
+ [-10.34568138, -12.38178421, -8.80207346, ..., -11.84644993,
+ -14.64804599, -9.82005014],
+ [-12.46190369, -7.34290485, -8.4762359 , ..., -7.50476032,
+ -9.13744245, -14.80741945],
+ [-11.35426494, -14.47802372, -12.7227316 , ..., -12.01820687,
+ -13.85816499, -8.13436478]])
- Last updated on 24 October 2024.
+ Last updated on 14 November 2024.
- Last updated on 24 October 2024.
+ Last updated on 14 November 2024.
- Last updated on 24 October 2024.
+ Last updated on 14 November 2024.
Seri
-/tmp/ipykernel_2797/737336773.py:1: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`
+/tmp/ipykernel_2767/737336773.py:1: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`
nino34_series[3]
@@ -1458,7 +1458,7 @@ Extending to the
-/tmp/ipykernel_2797/541596450.py:1: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`
+/tmp/ipykernel_2767/541596450.py:1: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`
df["Nino34"][3]
@@ -3654,7 +3654,7 @@ Resampling
-/tmp/ipykernel_2797/233158901.py:1: FutureWarning: 'Y' is deprecated and will be removed in a future version, please use 'YE' instead.
+/tmp/ipykernel_2767/233158901.py:1: FutureWarning: 'Y' is deprecated and will be removed in a future version, please use 'YE' instead.
df.Nino34.resample('1Y').mean().plot();
@@ -4435,7 +4435,7 @@ Resources and References
- Last updated on 24 October 2024.
+ Last updated on 14 November 2024.
@@ -4564,7 +4564,7 @@ Contribute
By the Project Pythia Community.
- Last updated on 24 October 2024.
+ Last updated on 14 November 2024.
diff --git a/core/xarray.html b/core/xarray.html
index 060e1e886..7fb34f4ed 100644
--- a/core/xarray.html
+++ b/core/xarray.html
@@ -83,7 +83,7 @@
-
+
@@ -758,7 +758,7 @@ Xarray
- Last updated on 24 October 2024.
+ Last updated on 14 November 2024.
@@ -887,7 +887,7 @@ Contribute
By the Project Pythia Community.
- Last updated on 24 October 2024.
+ Last updated on 14 November 2024.
diff --git a/core/xarray/computation-masking.html b/core/xarray/computation-masking.html
index c50c34dc2..a081fdbe2 100644
--- a/core/xarray/computation-masking.html
+++ b/core/xarray/computation-masking.html
@@ -83,7 +83,7 @@
-
+
@@ -560,7 +560,7 @@ Data SetupDownloading file 'CESM2_sst_data.nc' from 'https://github.com/ProjectPythia/pythia-datasets/raw/main/data/CESM2_sst_data.nc' to '/home/runner/.cache/pythia-datasets'.
-/home/runner/miniconda3/envs/pythia-book-dev/lib/python3.11/site-packages/xarray/conventions.py:284: SerializationWarning: variable 'tos' has multiple fill values {np.float32(1e+20), np.float64(1e+20)} defined, decoding all values to NaN.
+/home/runner/miniconda3/envs/pythia-book-dev/lib/python3.11/site-packages/xarray/conventions.py:287: SerializationWarning: variable 'tos' has multiple fill values {np.float32(1e+20), np.float64(1e+20)} defined, decoding all values to NaN.
var = coder.decode(var, name=name)
@@ -958,7 +958,7 @@ Data Setup
@@ -1597,7 +1597,7 @@ Arithmetic Operations
+ dtype='float64', name='lon', length=360))
In addition, there are many other arithmetic operations that can be performed on DataArrays
. In this example, we demonstrate squaring the original Celsius values of our air temperature data:
@@ -2909,7 +2909,7 @@ Aggregation Methodsdim
keyword argument; this means that the function was applied over all of the dataset’s dimensions. In other words, the aggregation method computed the mean of every element of the temperature dataset across every temporal and spatial data point. However, if a dimension name is used with the dim
keyword argument, the aggregation method computes an aggregation along the given dimension. In this next example, we use aggregation to calculate the temporal mean across all spatial data; this is performed by providing the dimension name 'time'
to the dim
keyword argument: