Skip to content

Commit

Permalink
add intake doc
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaeldussin committed Apr 17, 2019
1 parent 742164f commit 81d69a0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/data_organization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,29 @@ Data Organization
Quick access with::

cd $simulations

Discover data with intake:
**************************

You can explore the datasets available using intake catalogs available here::

/local/data/<server>/catalogs

For example, exploring ASTE data inside python can be done with:

.. code-block:: python
import intake
catalog = intake.Catalog('/local/data/artemis/catalogs/ASTE_catalog.yml')
list(catalog)
Once you have found the dataset you're interested in, you can load as follows:

.. code-block:: python
ds_biomes = catalog.Biomes_FayMcKinley.to_dask()
import matplotlib.pylab as plt
ds_biomes.MeanBiomes.sel(face=4).plot()
plt.show()

0 comments on commit 81d69a0

Please sign in to comment.