Skip to content
Open
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
35 changes: 35 additions & 0 deletions notebooks/xradar-pyart/xradar-basics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,41 @@
"ds_sw2.sel(azimuth=100, method=\"nearest\").reflectivity.plot()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Format Conversion"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Cf/Radial1 ⇋ Cf/Radial2 \n",
"By default, all formats load into the Cf/Radial2 structure in the *xradar* model. This allows you to transform any data format (HPL, GAMIC, ODIM, Sigmet) into the Cf/Radial1 format."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"ds = dt.xradar.to_cfradial1()\n",
"display(ds)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"new_dt = ds.xradar.to_cfradial2()\n",
"display(new_dt)"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down