ROPO
Loading...
Searching...
No Matches
ropo_quality_plugin.py
Go to the documentation of this file.
1'''
2Copyright (C) 2011- Swedish Meteorological and Hydrological Institute (SMHI)
3
4This file is part of the bRopo extension to RAVE.
5
6RAVE is free software: you can redistribute it and/or modify
7it under the terms of the GNU Lesser General Public License as published by
8the Free Software Foundation, either version 3 of the License, or
9(at your option) any later version.
10
11RAVE is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14See the GNU Lesser General Public License for more details.
15
16You should have received a copy of the GNU Lesser General Public License
17along with RAVE. If not, see <http://www.gnu.org/licenses/>.
18'''
19
21
22
26
27from rave_quality_plugin import rave_quality_plugin
28from rave_quality_plugin import QUALITY_CONTROL_MODE_ANALYZE_AND_APPLY
29import _polarvolume
30import rave_pgf_logger
31logger = rave_pgf_logger.create_logger()
32
33class ropo_quality_plugin(rave_quality_plugin):
34
36 def __init__(self):
37 super(ropo_quality_plugin, self).__init__()
38
39
42 return ["fi.fmi.ropo.detector.classification"]
43
44
50 def process(self, obj, reprocess_quality_flag=True, quality_control_mode=QUALITY_CONTROL_MODE_ANALYZE_AND_APPLY, arguments=None):
51 try:
52 import ropo_realtime
53 obj = ropo_realtime.generate(obj, reprocess_quality_flag, quality_control_mode)
54 except:
55 logger.exception("Failure during processing")
56 return obj
process(self, obj, reprocess_quality_flag=True, quality_control_mode=QUALITY_CONTROL_MODE_ANALYZE_AND_APPLY, arguments=None)
generate(inobj, reprocess_quality_flag=True, quality_control_mode=QUALITY_CONTROL_MODE_ANALYZE_AND_APPLY)
Generate - does the real work.