RAVE
Lib.compute_pia Namespace Reference

Functions

 PIADeriveParameter (scan, param_name, reprocess_quality_flag, quality_control_mode)
 
 ComputePIAscan (scan, param_name, keepPIA, reprocess_quality_flag, quality_control_mode)
 Computes PIA based quality control.
 
 ComputePIA (pobject, param_name, keepPIA, reprocess_quality_flag, quality_control_mode)
 Computes PIA based quality control.
 
 main (options)
 Computes PIA and performs quality control with it.
 

Variables

float co_zk_power = 7.34e5;
 settings
 
float exp_zk_power = 1.344;
 
int dBZmin = 10;
 
int dBZmax = 55;
 
float Rmin = 0.5;
 
int Rmax = 50;
 
float PIAmin = 0.1;
 
int PIAmax = 10;
 
float dtheta = 1.875 * np.pi / 180;
 
int dr = 2;
 
str TASK = "se.smhi.qc.hitschfeld-bordan"
 
str targsfmt = "param_name=%s c_ZK=%2.2f d_ZK=%2.2f dBZmin=%i dbZmax=%i Rmin=%2.1f Rmax=%2.1f PIAmin=%2.1f PIAmax=%2.1f dtheta=%2.1f dr=%i"
 
str description = "Computes PIA and uses it to quality control radar observations"
 
str usage = "usage: %prog -i <input file> -o <output file> [-p <parameter> -k <store PIA >] [h]"
 
 parser = OptionParser(usage=usage, description=description)
 
 dest
 
 help
 
 default
 
 action
 
 options
 
 args
 

Detailed Description

Copyright (C) 2025- Swedish Meteorological and Hydrological Institute (SMHI)

This file is part of RAVE.

RAVE is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

RAVE is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with RAVE.  If not, see <http://www.gnu.org/licenses/>.

Created on Mon Aug 25 14:12:08 2025

@author: Remco van de beek
@author: Yngve Einarsson SMHI

Function Documentation

◆ ComputePIA()

Lib.compute_pia.ComputePIA ( pobject,
param_name,
keepPIA,
reprocess_quality_flag,
quality_control_mode )

Computes PIA based quality control.

A single scan object is sent to the ComputePIA function. The scans comprising a polar volume are sent to the same function individually.

Parameters
PolarVolumeCoreor PolarScanCore object
stringradar quantity name, defaults to DBZH
booleanwhether (True) or not (False) to keep the derived PIA parameter
booleanreprocess_quality_flag
enumquality_control_mode

◆ ComputePIAscan()

Lib.compute_pia.ComputePIAscan ( scan,
param_name,
keepPIA,
reprocess_quality_flag,
quality_control_mode )

Computes PIA based quality control.

A single scan object is sent to the ComputePIAscan function. The scans comprising a polar volume are sent to the same function individually.

Parameters
PolarScanCoreobject
stringradar quantity name, defaults to DBZH
booleanwhether (True) or not (False) to keep the derived PIA parameter
booleanreprocess_quality_flag
enumquality_control_mode

◆ main()

Lib.compute_pia.main ( options)

Computes PIA and performs quality control with it.

Parameters
objectcontaining command-line arguments

Variable Documentation

◆ co_zk_power

float Lib.compute_pia.co_zk_power = 7.34e5;

settings