towerpy.io.ukmo#
Towerpy: an open-source toolbox for processing polarimetric radar data.
Classes#
A Towerpy class to store radar data. |
Module Contents#
- class towerpy.io.ukmo.Rad_scan(filename, radar_site)[source]#
A Towerpy class to store radar data.
Attributes#
- elev_anglefloat
Elevation angle at which the scan was taken, in deg.
- file_namestr
Name of the file containing radar data.
- scandatetimedatetime
Date and time of scan.
- site_namestr
Name of the radar site.
- georefdict
Georeferenced data containing descriptors of the azimuth, gates and beam height, amongst others.
- paramsdict
Radar technical details.
- varsdict
Radar variables retrieved from the file.
- ppi_ukmoraw(get_polvar='all', exclude_vars=None, tz='Europe/London')[source]#
Read raw polarimetric variables from current UKMO PPI binary files.
Parameters#
- get_polvarstr, optional
Define variables to read by the function. The default is ‘all’.
- exclude_varslist, optional
Define variables to discard. The default is None.
- tzstr
Key/name of the radar data timezone. The given tz value is then retrieved from the ZoneInfo module. Default is ‘Europe/London’
Notes#
1. This function uses the shared object ‘lnxlibreadpolarradardata’ or the dynamic link library ‘w64libreadpolarradardata’ depending on the operating system (OS).
Examples#
>>> rdata = io.ukmo.Rad_scan('metoffice-c-band-rain-radar_chenies_201804090938_raw-dual-polar-augldr-lp-el0.dat') >>> rdata.ukmo_rawpol()
- ppi_ukmogeoref()[source]#
Create georeferenced data from the UKMO PPI scan.
Notes#
This method wraps
geo.ppi_georef()and adds OSGB coordinates based on radar easting and northing offsets.OSGB coordinates are computed by shifting the relative Cartesian grid (‘grid_rectx’, ‘grid_recty’) by the radar easting/northing (in kilometres) and converting to metres.