From fda00bd246f8a1ac282efd8d4ca41c6bb5413777 Mon Sep 17 00:00:00 2001 From: Joe Hamman Date: Sat, 27 Aug 2016 12:04:51 -0700 Subject: [PATCH] Update the Multimension coordinate groupby example (#983) * update rasm example ipython notebook and rst * update multidim coords example --- doc/examples/multidimensional-coords.rst | 11 ++++----- examples/xarray_multidimensional_coords.ipynb | 24 ++++++------------- 2 files changed, 11 insertions(+), 24 deletions(-) diff --git a/doc/examples/multidimensional-coords.rst b/doc/examples/multidimensional-coords.rst index 3c425e6b07f..2658f89367a 100644 --- a/doc/examples/multidimensional-coords.rst +++ b/doc/examples/multidimensional-coords.rst @@ -25,21 +25,18 @@ such datasets. .. parsed-literal:: - ('numpy version : ', '1.11.0') - ('pandas version : ', u'0.18.0') - ('xarray version : ', '0.7.2-32-gf957eb8') + numpy version : 1.11.1 + pandas version : 0.18.1 + xarray version : 0.8.2 As an example, consider this dataset from the `xarray-data `__ repository. -.. code:: python - - ! curl -L -O https://github.com/pydata/xarray-data/raw/master/RASM_example_data.nc .. code:: python - ds = xr.open_dataset('RASM_example_data.nc') + ds = xr.tutorial.load_dataset('rasm') ds diff --git a/examples/xarray_multidimensional_coords.ipynb b/examples/xarray_multidimensional_coords.ipynb index 264eea9e0b9..bed7e8b962f 100644 --- a/examples/xarray_multidimensional_coords.ipynb +++ b/examples/xarray_multidimensional_coords.ipynb @@ -48,17 +48,6 @@ "As an example, consider this dataset from the [xarray-data](https://github.com/pydata/xarray-data) repository." ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [ - "! curl -L -O https://github.com/pydata/xarray-data/raw/master/RASM_example_data.nc" - ] - }, { "cell_type": "code", "execution_count": 2, @@ -99,7 +88,7 @@ } ], "source": [ - "ds = xr.open_dataset('RASM_example_data.nc')\n", + "ds = xr.tutorial.load_dataset('rasm')\n", "ds" ] }, @@ -314,22 +303,23 @@ } ], "metadata": { + "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python 2", + "display_name": "Python [Root]", "language": "python", - "name": "python2" + "name": "Python [Root]" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.11" + "pygments_lexer": "ipython3", + "version": "3.5.2" } }, "nbformat": 4,