RAVE
Lib.qitotal_options Namespace Reference

Classes

class  qifield_information
 Relation between a name (how/task quality field name) and a weight. More...
 
class  qitotal_site_information
 Information on what quality fields that should be used for generating the qi-total field. More...
 

Functions

 strToFloat (sval)
 Atempts to convert a string into a float.
 
 parse_qitotal_site_information (cfile)
 
 get_global_qitotal_site_information ()
 
 get_qitotal_site_information (cfile=None)
 Creates the qitotal site information.
 

Variables

 CONFIG_FILE
 
int initialized = 0
 
dict QITOTAL_REGISTRY = {}
 

Detailed Description

Copyright (C) 2014- Swedish Meteorological and Hydrological Institute (SMHI)

This file is part of 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/>.

Function Documentation

◆ get_qitotal_site_information()

Lib.qitotal_options.get_qitotal_site_information ( cfile = None)

Creates the qitotal site information.

◆ strToFloat()

Lib.qitotal_options.strToFloat ( sval)

Atempts to convert a string into a float.

Parameters
svalthe string value
Returns
: a float value if possible @raise ValueError: if it wasn't possible to convert to a float

Variable Documentation

◆ CONFIG_FILE

Lib.qitotal_options.CONFIG_FILE
Initial value:
1= os.path.join(os.path.join(os.path.split(os.path.split(os.path.abspath(__file__))[0])[0],
2 'config'), 'qitotal_options.xml')