Clutter chain

The clutter map will calculate monthly. At first you have to define the parameters of the function.

The start time and the number of days over which the clutter map should be created must be defined. The stop time is then calculated within the function by adding the start time and the number of days. Since the clutter is different depending on the elevation angle, the desired elevation angle is defined using the elevation_angle and pattern parameters. The elevation angle parameter is relevant for the HDF5 files and pattern for the scnx files. Both parameters must always be defined. The parameter threshold specifies that only positive values of the uncorrected reflectivity, which are in the boolean dataset of the clutter map, are considered. If the status parameter is set to true, then the processing progress of the clutter map is obtained as a percentage.

After the stop time has been determined, a file list is generated for all raw data of the specified elevation angle for the period between start and stop time. Then the clutter map is created sequentially. I.e. all files, which are in the file list, are read in individually, the reflectivity values are extracted and in a further step the extracted reflectivity values of each file are added to an existing data array. Afterwards a boolean dataset is created where the added reflectivity values must be greater than the threshold.

The output filename is created, which contains start and end time of the processed clutter map as well as the elevation angle.

[2]:
import wrainfo as wrf
import datetime as dt
import logging
[3]:
path_to_config_file="/tests/data/test_settings_wrainfo.json"
[5]:
wrf.process_chains.clutter_chain(start_time=dt.datetime(2022,2,16),
                                 path=path_to_config_file,
                                 elevation_angle="dataset1",
                                 days=1,
                                 threshold=0,
                                 status=True,
                                 pattern="_000.scnx.gz",
                                 data_type="cmap",
                                 logger=logging.getLogger())
35.0% done
65.0% done
100.0% done
-- output to /tests/data/clutter_map//2022/NB_WR2120_20220216_20220217_elev_0.5_cmap.nc

Functions of WRaINfo

The following functions of WRaINfo are used in the clutter_chain.: