diff --git a/notebooks/xradar-pyart/xradar-basics.ipynb b/notebooks/xradar-pyart/xradar-basics.ipynb index 61924c7a..1a9f97d5 100755 --- a/notebooks/xradar-pyart/xradar-basics.ipynb +++ b/notebooks/xradar-pyart/xradar-basics.ipynb @@ -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": {},