diff --git a/docs/api.rst b/docs/api.rst index 38bac0eab..9cdaf9992 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -23,6 +23,19 @@ Top Level Functions open_mfdataset concat +Tutorial +-------- + +.. autosummary:: + :toctree: generated/ + + tutorial.available_datasets + tutorial.describe_dataset + tutorial.file_path + tutorial.file_paths + tutorial.open_grid + tutorial.open_dataset + tutorial.open_mfdataset Grid ---- diff --git a/docs/getting-started/quick-overview.ipynb b/docs/getting-started/quick-overview.ipynb index 69972fbc1..b98f62e3b 100644 --- a/docs/getting-started/quick-overview.ipynb +++ b/docs/getting-started/quick-overview.ipynb @@ -14,7 +14,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "id": "5c8b24263cf6d8f2", "metadata": { "ExecuteTime": { @@ -29,9 +29,8 @@ ] }, { - "cell_type": "code", - "execution_count": 2, - "id": "7fb27b941602401d91542211134fc71a", + "cell_type": "markdown", + "id": "acae54e37e7d407bbb7b55eff062a284", "metadata": { "ExecuteTime": { "end_time": "2024-06-10T17:54:24.210505Z", @@ -39,60 +38,34 @@ }, "collapsed": false }, - "outputs": [], - "source": [ - "grid_path = \"../../test/meshfiles/ugrid/outCSne30/outCSne30.ug\"\n", - "data_path = \"../../test/meshfiles/ugrid/outCSne30/outCSne30_vortex.nc\"" - ] - }, - { - "cell_type": "markdown", - "id": "acae54e37e7d407bbb7b55eff062a284", - "metadata": { - "collapsed": false - }, "source": [ "## Opening a Dataset" ] }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "id": "9a63283cbaf04dbcab1f6479b197f3a8", "metadata": { - "ExecuteTime": { - "end_time": "2024-06-10T17:54:24.291261Z", - "start_time": "2024-06-10T17:54:24.211278Z" - }, "collapsed": false }, "outputs": [], "source": [ - "uxds = ux.open_dataset(grid_path, data_path)" + "uxds = ux.tutorial.open_dataset(\"outCSne30-vortex\")" ] }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "id": "8dd0d8092fe74a7c96281538738b07e2", "metadata": { "ExecuteTime": { - "end_time": "2024-06-10T17:54:24.298044Z", - "start_time": "2024-06-10T17:54:24.294307Z" + "end_time": "2024-06-10T17:54:24.291261Z", + "start_time": "2024-06-10T17:54:24.211278Z" }, "collapsed": false }, - "outputs": [ - { - "data": { - "text/html": "
<xarray.UxDataset>\nDimensions: (n_face: 5400)\nDimensions without coordinates: n_face\nData variables:\n psi (n_face) float64 1.351 1.331 1.31 1.289 ... 0.6909 0.67 0.6495
<xarray.DataArray 'node_lon' (n_node: 5402)>\narray([-45. , 45. , 135. , ..., 141.09968961,\n 138.03317102, 135. ])\nDimensions without coordinates: n_node
<xarray.UxDataArray 'psi' (n_face: 5400)>\narray([1.35131705, 1.33091472, 1.31013985, ..., 0.69088338, 0.66998883,\n 0.64946691])\nDimensions without coordinates: n_face
<xarray.UxDataArray 'psi' ()>\narray(1.)
<xarray.UxDataArray 'RELHUM' (lev: 72, n_face: 21600)> Size: 6MB\n", - "[1555200 values with dtype=float32]\n", - "Coordinates:\n", - " * lev (lev) float64 576B 0.1238 0.1828 0.2699 ... 986.2 993.8 998.5\n", - " time object 8B ...\n", - "Dimensions without coordinates: n_face\n", - "Attributes:\n", - " mdims: 1\n", - " units: percent\n", - " long_name: Relative humidity\n", - " standard_name: relative_humidity\n", - " cell_methods: time: mean
<xarray.UxDataArray 'psi' (time: 6, n_face: 5400)> Size: 259kB\n", - "array([[ 0. , 0. , 0. , ..., 0. ,\n", - " 0. , 0. ],\n", - " [ 0.5 , 0.50999999, 0.51999998, ..., 54.47000122,\n", - " 54.47999954, 54.49000168],\n", - " [ 2. , 2.01999998, 2.03999996, ..., 109.94000244,\n", - " 109.95999908, 109.98000336],\n", - " [ 4.5 , 4.52999997, 4.55999994, ..., 166.41000366,\n", - " 166.43999863, 166.47000504],\n", - " [ 8. , 8.0400002 , 8.07999992, ..., 223.88000488,\n", - " 223.91999817, 223.96000671],\n", - " [ 12.5 , 12.55000043, 12.5999999 , ..., 282.3500061 ,\n", - " 282.39999771, 282.45000839]], shape=(6, 5400))\n", - "Coordinates:\n", - " * time (time) datetime64[ns] 48B 2018-04-28 ... 2018-04-28T05:00:00\n", - "Dimensions without coordinates: n_face