Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 52 additions & 42 deletions docs/examples/cds.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -101,42 +101,36 @@
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>centre</th>\n",
" <th>shortName</th>\n",
" <th>typeOfLevel</th>\n",
" <th>level</th>\n",
" <th>dataDate</th>\n",
" <th>dataTime</th>\n",
" <th>stepRange</th>\n",
" <th>dataType</th>\n",
" <th>number</th>\n",
" <th>gridType</th>\n",
" <th>parameter.variable</th>\n",
" <th>time.valid_datetime</th>\n",
" <th>time.base_datetime</th>\n",
" <th>time.step</th>\n",
" <th>vertical.level</th>\n",
" <th>vertical.level_type</th>\n",
" <th>ensemble.member</th>\n",
" <th>geography.grid_type</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>ecmf</td>\n",
" <td>2t</td>\n",
" <td>surface</td>\n",
" <td>0</td>\n",
" <td>20120510</td>\n",
" <td>1200</td>\n",
" <td>2012-05-10 12:00:00</td>\n",
" <td>2012-05-10 12:00:00</td>\n",
" <td>0 days</td>\n",
" <td>0</td>\n",
" <td>an</td>\n",
" <td>surface</td>\n",
" <td>0</td>\n",
" <td>regular_ll</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>ecmf</td>\n",
" <td>msl</td>\n",
" <td>surface</td>\n",
" <td>0</td>\n",
" <td>20120510</td>\n",
" <td>1200</td>\n",
" <td>2012-05-10 12:00:00</td>\n",
" <td>2012-05-10 12:00:00</td>\n",
" <td>0 days</td>\n",
" <td>0</td>\n",
" <td>an</td>\n",
" <td>surface</td>\n",
" <td>0</td>\n",
" <td>regular_ll</td>\n",
" </tr>\n",
Expand All @@ -145,13 +139,13 @@
"</div>"
],
"text/plain": [
" centre shortName typeOfLevel level dataDate dataTime stepRange dataType \\\n",
"0 ecmf 2t surface 0 20120510 1200 0 an \n",
"1 ecmf msl surface 0 20120510 1200 0 an \n",
" parameter.variable time.valid_datetime time.base_datetime time.step \\\n",
"0 2t 2012-05-10 12:00:00 2012-05-10 12:00:00 0 days \n",
"1 msl 2012-05-10 12:00:00 2012-05-10 12:00:00 0 days \n",
"\n",
" number gridType \n",
"0 0 regular_ll \n",
"1 0 regular_ll "
" vertical.level vertical.level_type ensemble.member geography.grid_type \n",
"0 0 surface 0 regular_ll \n",
"1 0 surface 0 regular_ll "
]
},
"execution_count": 3,
Expand All @@ -160,7 +154,7 @@
}
],
"source": [
"ds.ls()"
"ds.to_fieldlist().ls()"
]
},
{
Expand Down Expand Up @@ -220,35 +214,51 @@
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>variable</th>\n",
" <th>level</th>\n",
" <th>valid_datetime</th>\n",
" <th>units</th>\n",
" <th>parameter.variable</th>\n",
" <th>time.valid_datetime</th>\n",
" <th>time.base_datetime</th>\n",
" <th>time.step</th>\n",
" <th>vertical.level</th>\n",
" <th>vertical.level_type</th>\n",
" <th>ensemble.member</th>\n",
" <th>geography.grid_type</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>t2m</td>\n",
" <td>2012-05-10 12:00:00</td>\n",
" <td>2012-05-10 12:00:00</td>\n",
" <td>0 days</td>\n",
" <td>None</td>\n",
" <td>unknown</td>\n",
" <td>0</td>\n",
" <td>None</td>\n",
" <td>2012-05-10T12:00:00</td>\n",
" <td>K</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>msl</td>\n",
" <td>2012-05-10 12:00:00</td>\n",
" <td>2012-05-10 12:00:00</td>\n",
" <td>0 days</td>\n",
" <td>None</td>\n",
" <td>unknown</td>\n",
" <td>0</td>\n",
" <td>None</td>\n",
" <td>2012-05-10T12:00:00</td>\n",
" <td>Pa</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" variable level valid_datetime units\n",
"0 t2m None 2012-05-10T12:00:00 K\n",
"1 msl None 2012-05-10T12:00:00 Pa"
" parameter.variable time.valid_datetime time.base_datetime time.step \\\n",
"0 t2m 2012-05-10 12:00:00 2012-05-10 12:00:00 0 days \n",
"1 msl 2012-05-10 12:00:00 2012-05-10 12:00:00 0 days \n",
"\n",
" vertical.level vertical.level_type ensemble.member geography.grid_type \n",
"0 None unknown 0 None \n",
"1 None unknown 0 None "
]
},
"execution_count": 5,
Expand All @@ -257,7 +267,7 @@
}
],
"source": [
"ds1.ls()"
"ds1.to_fieldlist().ls()"
]
},
{
Expand Down Expand Up @@ -285,7 +295,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.12"
"version": "3.13.1"
}
},
"nbformat": 4,
Expand Down
Loading
Loading