pyrad.proc.process_grid_mask#
- pyrad.proc.process_grid_mask(procstatus, dscfg, radar_list=None)[source]#
Mask data. Puts True if data is within thresholds, False if it is not. Thresholds can be min, max or both min and max
- Parameters:
procstatus (int) – Processing status: 0 initializing, 1 processing volume, 2 post-processing
dscfg (dictionary of dictionaries) –
data set configuration. Accepted Configuration Keywords:
datatype : list of string. Dataset keyword The input data type, can be any datatype supported by pyrad threshold_min : float or None Threshold used for the mask. Values below threshold are set to False. Above threshold are set to True. Default None. threshold_max : float or None Threshold used for the mask. Values above threshold are set to False. Below threshold are set to True. Default None. x_dir_ext, y_dir_ext : int Number of pixels by which to extend the mask on each side of the west-east direction and south-north direction
radar_list (list of Radar objects) – Optional. list of radar objects
- Returns:
new_dataset (dict) – dictionary containing the output field “mask”
ind_rad (int) – radar index