ROPO
|
Classes | |
class | options |
Class used to organize options and argument values to ropo. More... | |
Functions | |
init () | |
Initializes the ARGS dictionary by reading content from XML file. | |
get_options (inobj) | |
Based on the /what/source attribute, find site-specific options/arguments. | |
copy_topwhat (ino, outo) | |
Copies the top-level 'what' attributes from one object to another. | |
process_scan (scan, options, quality_control_mode=QUALITY_CONTROL_MODE_ANALYZE_AND_APPLY) | |
TODO: activate parameters list. | |
process_pvol (pvol, options, quality_control_mode=QUALITY_CONTROL_MODE_ANALYZE_AND_APPLY) | |
Loops through a volume and processes scans using process_scan. | |
generate (inobj, reprocess_quality_flag=True, quality_control_mode=QUALITY_CONTROL_MODE_ANALYZE_AND_APPLY) | |
Generate - does the real work. | |
PadNrays (scan, options) | |
Internal function to wrap rays near 360-0 degrees. | |
UnpadNrays (scan, classification, gates) | |
Internal function to unwrap a scan from overlapping rays. | |
Variables | |
CONFIG_FILE | |
Contains site-specific argument settings. | |
dict | THRESHOLDS |
Dictionary containing static reflectivity thresholds, one for each month of the year. | |
int | initialized = 0 |
dict | ARGS = {} |
Copyright (C) 2011- Swedish Meteorological and Hydrological Institute (SMHI) This file is part of the bRopo extension to 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/>.
copy_topwhat | ( | ino, | |
outo ) |
Copies the top-level 'what' attributes from one object to another.
Fixes /what/source in the process, if it doesn't contain the NOD identifier.
ino | input PVOL or SCAN object |
outo | output PVOL or SCAN object |
Definition at line 130 of file ropo_realtime.py.
generate | ( | inobj, | |
reprocess_quality_flag = True, | |||
quality_control_mode = QUALITY_CONTROL_MODE_ANALYZE_AND_APPLY ) |
Generate - does the real work.
inobj | SCAN or PVOL object |
reprocess_quality_flag | Specifies if the quality flag should be reprocessed or not. |
Definition at line 218 of file ropo_realtime.py.
get_options | ( | inobj | ) |
Based on the /what/source attribute, find site-specific options/arguments.
inobj | input SCAN or PVOL object |
Definition at line 117 of file ropo_realtime.py.
init | ( | ) |
Initializes the ARGS dictionary by reading content from XML file.
Definition at line 68 of file ropo_realtime.py.
PadNrays | ( | scan, | |
options ) |
Internal function to wrap rays near 360-0 degrees.
This addresses a design flaw in ropo's original C code that leads to data being removed in this sector. NOTE that this fix is only being made available at the Python level.
scan | input scan object |
ref options instance containing options and their values.
Definition at line 254 of file ropo_realtime.py.
process_pvol | ( | pvol, | |
options, | |||
quality_control_mode = QUALITY_CONTROL_MODE_ANALYZE_AND_APPLY ) |
Loops through a volume and processes scans using process_scan.
pvol | input PVOL object |
options | variable-length object containing argument names and values |
Definition at line 191 of file ropo_realtime.py.
process_scan | ( | scan, | |
options, | |||
quality_control_mode = QUALITY_CONTROL_MODE_ANALYZE_AND_APPLY ) |
TODO: activate parameters list.
This first version uses only the default, assumes DBZH. TODO: separation of probability fields.
scan | input SCAN object |
options | variable-length object containing argument names and values |
Definition at line 145 of file ropo_realtime.py.
UnpadNrays | ( | scan, | |
classification, | |||
gates ) |
Internal function to unwrap a scan from overlapping rays.
scan | input scan object |
classification | input RaveField object containing probability of anomaly |
gates | int number of gates the scan has been wrapped with. |
Definition at line 284 of file ropo_realtime.py.
dict ARGS = {} |
Definition at line 65 of file ropo_realtime.py.
CONFIG_FILE |
Contains site-specific argument settings.
Definition at line 43 of file ropo_realtime.py.
int initialized = 0 |
Definition at line 63 of file ropo_realtime.py.
dict THRESHOLDS |
Dictionary containing static reflectivity thresholds, one for each month of the year.
To be used when initially thresholding reflectivity data. Add and use entries as you please.
Definition at line 53 of file ropo_realtime.py.