RAVE
Lib.rave_pgf_gra_plugin Namespace Reference

Functions

 arglist2dict (arglist)
 Creates a dictionary from a rave argument list.
 
 strToNumber (sval)
 Converts a string into a number, either int or float.
 
 get_backup_gra_coefficient (db, maxage)
 
 calculate_gra_coefficient (distancefield, interval, adjustmentfile, etime, edate, acrrproduct, db)
 Creates a composite.
 
 generate (files, arguments)
 

Variables

 logger = rave_pgf_logger.create_logger()
 
 ravebdb = None
 

Detailed Description

Copyright (C) 2010- 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

◆ arglist2dict()

Lib.rave_pgf_gra_plugin.arglist2dict ( arglist)

Creates a dictionary from a rave argument list.

Parameters
arglistthe argument list
Returns
a dictionary

◆ calculate_gra_coefficient()

Lib.rave_pgf_gra_plugin.calculate_gra_coefficient ( distancefield,
interval,
adjustmentfile,
etime,
edate,
acrrproduct,
db )

Creates a composite.

Parameters
filesthe list of files to be used for generating the composite
argumentsthe arguments defining the composite
Returns
a temporary h5 file with the composite

◆ strToNumber()

Lib.rave_pgf_gra_plugin.strToNumber ( sval)

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

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