The ωradlib project provides an open source Python library for processing weather radar data. The library contains tools for reading, transforming, visualizing, classifying, correcting and compositing radar data. It supports many common radar data formats and includes algorithms for tasks like attenuation correction, phase processing and data classification. The document provides instructions for installing ωradlib and overview of its data processing capabilities.
The ωradlib project provides an open source Python library for processing weather radar data. The library contains tools for reading, transforming, visualizing, classifying, correcting and compositing radar data. It supports many common radar data formats and includes algorithms for tasks like attenuation correction, phase processing and data classification. The document provides instructions for installing ωradlib and overview of its data processing capabilities.
The ωradlib project provides an open source Python library for processing weather radar data. The library contains tools for reading, transforming, visualizing, classifying, correcting and compositing radar data. It supports many common radar data formats and includes algorithms for tasks like attenuation correction, phase processing and data classification. The document provides instructions for installing ωradlib and overview of its data processing capabilities.
The ωradlib project provides an open source Python library for processing weather radar data. The library contains tools for reading, transforming, visualizing, classifying, correcting and compositing radar data. It supports many common radar data formats and includes algorithms for tasks like attenuation correction, phase processing and data classification. The document provides instructions for installing ωradlib and overview of its data processing capabilities.
L EARN MORE ABOUT ωradlib AT HTTP :// WRADLIB . ORG
ωradlib I NTRODUCTION G ETTING S TARTED D ATA T RANSFORMATION
The ωradlib project has been initiated in order facilitate the use of >>> import wradlib as wrl Import using wrl as alias >>> y = wrl.trafo.rvp_to_dbz(x) RVP6 in dBZ weather radar data as well as to provide a common platform for re- >>> wrl.__version__ Print wradlib version >>> dBZ = wrl.trafo.decibel(Z) decibel search on new algorithms. ωradlib is an open source library which is >>> Z = wrl.trafo.idecibel(dBZ) inverse decibel well documented and easy to use. It is written in the free program- >>> RR = wrl.trafo.kdp_to_r(KDP) Rainrate from KDP ming language Python. R EADING R ADAR D ATA >>> RR = wrl.zr.z_to_r(Z) Rainrate from Z • Polar Radar Data Reader >>> Z = wrl.zr.r_to_z(RR) Z from RainRate >>> img, meta = wrl.io.read_dx(f) DWD’s DX I NSTALLATION >>> data = wrl.io.read_opera_hdf5(f) ODIM_H5 We recommend using conda package manager alongside the >>> data = wrl.io.read_gamic_hdf5(f) GAMIC D ATA C LASSIFICATION conda-forge community channel: >>> data = wrl.io.read_edge_netcdf(f) EDGE • wrl.clutter.filter_gabella() Clutter id filter by Gabella >>> data = wrl.io.read_rainbow(f) Rainbow5 • wrl.clutter.filter_cloudtype() Filter based on cloud type • Install Anaconda or Miniconda [1] >>> data = wrl.io.read_iris(f) Sigmet • wrl.clutter.filter_window_distance() 2D filter large gradients • Add conda-forge channel: • wrl.clutter.histo_cut() Histogram clutter id • Gridded Radar Data Reader $ conda config -add channels conda-forge • wrl.clutter.classify_echo_fuzzy() Dual-Pol fuzzy method >>> img, meta = read_radolan_composite(f) RADOLAN • Create dedicated ωradlib environment: >>> data = wrl.io.read_rainbow(f) Rainbow5 $ conda create -name wradlib python=3.6 • Activate ωradlib environment: >>> data = wrl.io.read_iris(f) Sigmet D ATA C ORRECTION $ source activate wradlib • Generic Data Format Reader G ATE - BY-G ATE APPROACHES wrl.atten • Install ωradlib and other needed packages: >>> data = wrl.io.read_generic_hdf5(f) HDF5 • correct_attenuation_hb() Hitschfeld&Bordan (wradlib)$ conda install wradlib jupyter >>> data = wrl.io.read_generic_netcdf(f) NetCDF • correct_attenuation_constrained() iterative Kraemer (ext. by • Raster Data Reader using GDAL Jacobi) If you want to test the most recent ωradlib developments, then you >>> ds = wrl.io.open_raster(f) open raster need to get the latest master from github.com in addition: >>> img, crd, proj = extract wrl.georef.extract_raster_dataset(ds) raster data P HASE P ROCESSING • Clone ωradlib repository $ git clone https://github.com/wradlib/wradlib.git P HASE U NFOLDING • Activate ωradlib environment: • wrl.dp.unfold_phi() unfolds ambiguous phase V ISUALIZING R ADAR D ATA • wrl.dp.unfold_phi_vulpiani() KDP based unfolding $ source activate wradlib • Install ωradlib from sources: • Plot Polar Radar Data img(nrays, nbins) KDP R ETRIEVAL (wradlib)$ python setup.py install >>> wrl.vis.plot_ppi(img) plot simple PPI • wrl.dp.kdp_from_phidp() Lanczos derivative >>> wrl.vis.plot_ppi(img, cg=True) Curvelinear Grid • wrl.dp.process_raw_phidp_vulpiani() 2-step PHIDP/KDP If you want to test the provided example notebooks, you need to >>> wrl.vis.plot_rhi(img) plot simple RHI download the example data [2] and extract it to an arbitrary direc- >>> wrl.vis.plot_rhi(img, cg=True) Curvelinear Grid tory. You finally need to set the WRADLIB_DATA environment D ATA C OMPOSITING • Plot Gridded Radar Data img(nrows, ncols) variable pointing to that directory: • wrl.comp.togrid() polar to grid >>> import matplotlib.pyplot as plt matplotlib >>> pl.imshow(img) use imshow • wrl.comp.compose_ko() quality knockout criterion • $ export WRADLIB_DATA=/full/path/to/wradlib-data >>> pl.pcolormesh(img) use MeshPlot • wrl.comp.compose_weighted() quality weighted average [1] https://www.anaconda.com/download >>> pl.pcolormesh(crd[..., 0], use coords https://conda.io/miniconda.html crd[..., 1], img) [2] https://github.com/wradlib/wradlib-data/archive/master.zip
R EFERENCES O THER R ESOURCES C ONTACT
[1] Maik Heistermann, Stephan Jacobi, and Thomas Pfaff. Technical note: Check out the other available ωradlib Cheat Sheets ING , I NTERPOLATION, C LASSIFICATION, C OR - Web wradlib.org An open source library for processing weather radar data (wradlib). which will be available shortly. Those will cover RECTION , P HASE P ROCESSING , C OMPOSITING , Email wradlib@wradlib.org Hydrol. Earth Syst. Sci., 16:863–871, 2013. amongst others V ISUALISATION, G EOREFERENC - Z ONAL S TATISTICS, G AGE A DJUSTMENT. Gitter gitter.im/wradlib