{ "cells": [ { "cell_type": "markdown", "id": "ee0f0104-8077-45f1-9746-58f29b64db92", "metadata": { "editable": true, "slideshow": { "slide_type": "" }, "tags": [] }, "source": [ "## list-of-dict: converting to Xarray" ] }, { "cell_type": "raw", "id": "6cadbfbf-c7af-4927-8927-c320d9160c4f", "metadata": { "editable": true, "raw_mimetype": "text/restructuredtext", "slideshow": { "slide_type": "" }, "tags": [] }, "source": [ "This example demonstrates how :ref:`data-sources-lod` fieldlists can be converted into Xarray." ] }, { "cell_type": "markdown", "id": "2e087423-8c96-49b4-984c-f15472fa8381", "metadata": { "editable": true, "slideshow": { "slide_type": "" }, "tags": [] }, "source": [ "#### Data containing geography" ] }, { "cell_type": "code", "execution_count": 1, "id": "1e5ebf7a-2fc6-453a-9e14-6b04b5135810", "metadata": { "editable": true, "slideshow": { "slide_type": "" }, "tags": [] }, "outputs": [ { "data": { "text/html": [ "
<xarray.Dataset> Size: 248B\n",
"Dimensions: (levelist: 2, latitude: 3, longitude: 2)\n",
"Coordinates:\n",
" * levelist (levelist) int64 16B 500 850\n",
" * latitude (latitude) float64 24B 10.0 0.0 -10.0\n",
" * longitude (longitude) float64 16B 20.0 40.0\n",
"Data variables:\n",
" t (levelist, latitude, longitude) float64 96B ...\n",
" u (levelist, latitude, longitude) float64 96B ...\n",
"Attributes:\n",
" Conventions: CF-1.8\n",
" institution: ECMWF<xarray.Dataset> Size: 208B\n",
"Dimensions: (levelist: 2, values: 6)\n",
"Coordinates:\n",
" * levelist (levelist) int64 16B 500 850\n",
"Dimensions without coordinates: values\n",
"Data variables:\n",
" t (levelist, values) float64 96B ...\n",
" u (levelist, values) float64 96B ...\n",
"Attributes:\n",
" Conventions: CF-1.8\n",
" institution: ECMWF