RAVE
Lib.compositing.compositing Class Reference

Compositing class instance. More...

Inheritance diagram for Lib.compositing.compositing:

Public Member Functions

 __init__ (self, rbdb=None)
 Constructor.
 generate (self, dd, dt, area=None)
 remove_CMT_from_source (self, str)
 Removes CMT:<...> from the string.
 get_next_radar_index (self)
 Returns the next available radar.
 set_product_from_string (self, prodstr)
 set_method_from_string (self, methstr)
 set_interpolation_method_from_string (self, methstr)
 set_quality_control_mode_from_string (self, modestr)
 quality_control_objects (self, objects)
 fetch_objects (self)
 Generates the objects that should be used in the compositing.
 add_how_task_from_scan (self, scan, tasks)
 create_filename (self, pobj)
 get_backup_gra_coefficient (self, db, agedt, nowdt)
 Returns the backup coefficients to use.
 test_func (self, a)

Public Attributes

 mpname = multiprocessing.current_process().name
 ravebdb = rbdb
str pcsid = "gmaps"
float xscale = 2000.0
float yscale = 2000.0
list detectors = []
 detector_arguments = None
list filenames = []
bool ignore_malfunc = False
 prodpar = None
 prodstr = None
 product = _rave.Rave_ProductType_PCAPPI
float height = 1000.0
float elangle = 0.0
float range = 200000.0
 selection_method = _pycomposite.SelectionMethod_NEAREST
 interpolation_method = _pycomposite.InterpolationMethod_NEAREST
 quality_control_mode = rave_quality_plugin.QUALITY_CONTROL_MODE_ANALYZE_AND_APPLY
 qitotal_field = None
 gra_id = None
bool applygra = False
float zr_A = 200.0
float zr_b = 1.6
bool applygapfilling = False
bool applyctfilter = False
str quantity = "DBZH"
 gain = GAIN
 offset = OFFSET
float minvalue = -30.0
bool reprocess_quality_field = False
bool verbose = False
 logger = logger
 dumppath = None
bool dump = False
bool use_site_source = False
bool use_azimuthal_nav_information = True
dict radar_index_mapping = {}
bool use_lazy_loading = True
bool use_lazy_loading_preloads = True
bool use_legacy_compositing = True
 strategy = None
 properties_file = COMPOSITE_GENERATOR_PROPERTY_FILE

Protected Member Functions

 _debug_generate_info (self, area)
 _generate (self, dd, dt, area=None)
 Generates the cartesian image.
 _dump_objects (self, objects)
 Dumps the objects on the ingoing polar objects onto the file system.
 _apply_gra (self, result, d, t)
 Apply gra coefficient adjustment.
 _selection_method_repr (self)
 _interpolation_method_repr (self)
 _product_repr (self)
 _update_generator_with_prodpar (self, generator)
 If prodpar has been set, the generator is updated with the apropriate values.
 _strToNumber (self, sval)
 Converts a string into a number, either int or float.

Detailed Description

Compositing class instance.

Constructor & Destructor Documentation

◆ __init__()

Lib.compositing.compositing.__init__ ( self,
rbdb = None )

Constructor.

Member Function Documentation

◆ _apply_gra()

Lib.compositing.compositing._apply_gra ( self,
result,
d,
t )
protected

Apply gra coefficient adjustment.

Parameters
resultThe cartesian product to be adjusted
dthe date string representing now (YYYYmmdd)
tthe time string representing now (HHMMSS)
Returns
the gra field with the applied corrections

◆ _dump_objects()

Lib.compositing.compositing._dump_objects ( self,
objects )
protected

Dumps the objects on the ingoing polar objects onto the file system.

The names will contain a unique identifier to allow for duplicate versions of the same object.

Parameters
objectsthe objects to write to disk

◆ _generate()

Lib.compositing.compositing._generate ( self,
dd,
dt,
area = None )
protected

Generates the cartesian image.

Parameters
dddate in format YYYYmmdd
dttime in format HHMMSS
areathe area to use for the cartesian image. If none is specified, a best fit will be atempted.

◆ _interpolation_method_repr()

Lib.compositing.compositing._interpolation_method_repr ( self)
protected
Returns
the string representation of the interpolation method

◆ _product_repr()

Lib.compositing.compositing._product_repr ( self)
protected
Returns
the string representation of the product type

◆ _selection_method_repr()

Lib.compositing.compositing._selection_method_repr ( self)
protected
Returns
the string representation of the selection method

◆ _strToNumber()

Lib.compositing.compositing._strToNumber ( self,
sval )
protected

Converts a string into a number, either int or float.

If value already is an int or float, that value is returned.

Parameters
svalthe string to translate
Returns
the translated value
Exceptions
ValueErrorif value not could be translated

◆ _update_generator_with_prodpar()

Lib.compositing.compositing._update_generator_with_prodpar ( self,
generator )
protected

If prodpar has been set, the generator is updated with the apropriate values.

Parameters
generatorthe generator to be updated with the information from the prodpar

◆ fetch_objects()

Lib.compositing.compositing.fetch_objects ( self)

Generates the objects that should be used in the compositing.

returns a triplet with [objects], nodes (as comma separated string), 'how/tasks' (as comma separated string)

◆ get_backup_gra_coefficient()

Lib.compositing.compositing.get_backup_gra_coefficient ( self,
db,
agedt,
nowdt )

Returns the backup coefficients to use.

First the newest coefficient between dt - maxage <= found <= dt is located. If none is found, then the climatologic coefficients are used instead.

◆ get_next_radar_index()

Lib.compositing.compositing.get_next_radar_index ( self)

Returns the next available radar.

◆ remove_CMT_from_source()

Lib.compositing.compositing.remove_CMT_from_source ( self,
str )

Removes CMT:<...> from the string.

Parameters
[in]str- the string from which CMT should be removed
Returns
the source with CMT removed

The documentation for this class was generated from the following file: