Compositing class instance.
More...
|
| __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) |
|
|
| mpname = multiprocessing.current_process().name |
|
| ravebdb = rbdb |
|
str | pcsid = "gmaps" |
|
float | xscale = 2000.0 |
|
float | yscale = 2000.0 |
|
list | detectors = [] |
|
list | filenames = [] |
|
bool | ignore_malfunc = False |
|
| prodpar = 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 |
|
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 |
|
str | product = "cappi": |
|
str | selection_method = "HEIGHT_ABOVE_SEALEVEL": |
|
str | interpolation_method = "LINEAR_HEIGHT": |
|
str | use_lazy_loading_preloads = self.quantity |
|
|
| _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.
|
|
Compositing class instance.
◆ __init__()
Lib.compositing.compositing.__init__ |
( |
| self, |
|
|
| rbdb = None ) |
◆ _apply_gra()
Lib.compositing.compositing._apply_gra |
( |
| self, |
|
|
| result, |
|
|
| d, |
|
|
| t ) |
|
protected |
Apply gra coefficient adjustment.
- Parameters
-
result | The cartesian product to be adjusted |
d | the date string representing now (YYYYmmdd) |
t | the 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
-
objects | the objects to write to disk |
◆ _generate()
Lib.compositing.compositing._generate |
( |
| self, |
|
|
| dd, |
|
|
| dt, |
|
|
| area = None ) |
|
protected |
Generates the cartesian image.
- Parameters
-
dd | date in format YYYYmmdd |
dt | time in format HHMMSS |
area | the 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
-
sval | the string to translate |
- Returns
- the translated value
- Exceptions
-
ValueError | if 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
-
generator | the 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: