Weather radar data processing

Now we come to the most interesting process chain. The wr_routine_furuno currently contains all steps to generate precipitation products with a temporal resolution of 5 minutes from the raw data.

First the start and end time have to be defined. The parameter delta specifies the time period for which a file list is to be generated. In this process chain, products of level 2a are generated, which is why the data_type is defined in this way. Again both parameters elevation_angle and pattern have to be defined to define the elevation angle for the HDF5 and SCN/SCNX files.

Once the parameters are defined, the configuration file is loaded within the function and further parameters are defined. A reindexing of the azimuth resolution takes place, which is why start, end and distance of the azimuth angle must be defined in the configuration file. In addition, all submodules can be used for two- and three-dimensional datasets. In operational mode, which provides near-real-time information, the processing of individual files is faster than reading in several files with a time component. Furthermore, all variables are defined in the configuration file, which are to be contained later in the processed files.

Then the static clutter map for the selected elevation angle is reading. The boolean data array is then extracted from the dataset. This is needed later for the clutter detection.

In the next step the filenames of the Furuno raw data are stored in a list. The list always contains all files for one day, if delta=1 was set. With a for loop the data processing of the raw data starts. First the extension is used to check how to read the data. As described in the data input section, there are two different data formats for which different reading routines are required. After reading the data the reindexing of the azimuth angle is done and errors in the data array of the elevation angle are corrected.

Then the clutter detection takes place and first the complete dataset is masked with the variable RHOHV. Clutter are removed from the uncorrected reflectivity with the loaded static clutter map and with the fuzzy_eccho_classification.

Then the phase processing is performed in which PHIDP is recalculated and the specific attenuation is determined and KDP is derived. The recalculated PHIDP is then used for attenuation correction. After the attenuation correction, the quantitative precipitation estimation can then be performed using the z-R conversion. This is followed by smoothing and georeferencing of the dataset. The precipitation product is then stored in the specified output directory as a NetCDF file.

[2]:
import wrainfo as wrf
import datetime as dt
import logging
[3]:
path_to_config_file="/tests/data/test_settings_wrainfo.json"
[4]:
wrf.process_chains.wr_routine_furuno(starttime=dt.datetime(2022,2,15),
                                     endtime=dt.datetime(2022,2,16),
                                     delta=1,
                                     path=path_to_config_file,
                                     data_type="Level2a",
                                     elevation_angle="dataset1",
                                     pattern="_000.scnx.gz",
                                     logger=logging.getLogger())

Functions of WRaINfo

The following function of WRaINfo are used in the wr_routine_furuno.: