RAVE
rave_pgf_gra_plugin.py File Reference

Plugin for generating the gra coefficients that is initiated from the beast framework. More...

Namespaces

namespace  Lib.rave_pgf_gra_plugin
 

Functions

 Lib.rave_pgf_gra_plugin.arglist2dict (arglist)
 Creates a dictionary from a rave argument list.
 
 Lib.rave_pgf_gra_plugin.strToNumber (sval)
 Converts a string into a number, either int or float.
 
 Lib.rave_pgf_gra_plugin.get_backup_gra_coefficient (db, maxage)
 
 Lib.rave_pgf_gra_plugin.calculate_gra_coefficient (distancefield, interval, adjustmentfile, etime, edate, acrrproduct, db)
 Creates a composite.
 
 Lib.rave_pgf_gra_plugin.generate (files, arguments)
 

Variables

 Lib.rave_pgf_gra_plugin.logger = rave_pgf_logger.create_logger()
 
 Lib.rave_pgf_gra_plugin.ravebdb = None
 

Detailed Description

Plugin for generating the gra coefficients that is initiated from the beast framework.

Register in pgf with –name=eu.baltrad.beast.GenerateGraCoefficients –strings=date,time,quantity,distancefield –floats=zra,zrb –ints=hours,N,accept -m rave_pgf_acrr_plugin -f generate

The ACRR generation is executed by specifying a number of composites/images with the same resolution and containing the same parameter (quantity) and a quality field specifying the distance to the radar.

Then the gra coefficient algorithm will create an acrr product and after that match synop-entries with corresponding points in the acrr product and generate the coefficients.

acrr = new acrr for each file in files: acrr.sum (file.parameter(quantity), zrA, zrB) result = acrr.accumulate(accept, N, hours)

accept is the percent of N that is allowed to be nodata for each observation N is the expected number of fields to be used in the accumulation hours is the number of hours the accumulation covers

Author
Anders Henja, SMHI
Date
2013-08-08