Skip to content

Commit

Permalink
Update the Multimension coordinate groupby example (#983)
Browse files Browse the repository at this point in the history
* update rasm example ipython notebook and rst

* update multidim coords example
  • Loading branch information
Joe Hamman authored and shoyer committed Aug 27, 2016
1 parent 4fea1a6 commit fda00bd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 24 deletions.
11 changes: 4 additions & 7 deletions doc/examples/multidimensional-coords.rst
Expand Up @@ -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 <https://github.com/pydata/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
Expand Down
24 changes: 7 additions & 17 deletions examples/xarray_multidimensional_coords.ipynb
Expand Up @@ -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,
Expand Down Expand Up @@ -99,7 +88,7 @@
}
],
"source": [
"ds = xr.open_dataset('RASM_example_data.nc')\n",
"ds = xr.tutorial.load_dataset('rasm')\n",
"ds"
]
},
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit fda00bd

Please sign in to comment.