RAVE
Lib.rave_pgf Namespace Reference

Classes

class  RavePGF
 The product generation framework class containing the product generation functionality. More...
 

Functions

 generate (jobid, algorithm, files, arguments, host=PGF_HOST, port=PGF_PORT)
 Convenience function for running several jobs asynchronously with \multiprocessing.apply_async.
 

Variables

dict METHODS
 
 PGF_REGISTRY = rave_pgf_registry.PGF_Registry(filename=REGFILE)
 

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

◆ generate()

Lib.rave_pgf.generate ( jobid,
algorithm,
files,
arguments,
host = PGF_HOST,
port = PGF_PORT )

Convenience function for running several jobs asynchronously with \multiprocessing.apply_async.

Parameters
jobidstring job ID, used to keep track of jobs
algorithmstring to the desired product generation call
fileslist of file strings
argumentslist of strings, ordered as 'key-value' pairs, so that even items are argument names and odd ones are their values. These must be parsed into their corrects formats, ie. int, float, list, etc.
hoststring URI of the RAVE PGF server to which to connect
portint port of the RAVE PGF server to which to connect

Variable Documentation

◆ METHODS

dict Lib.rave_pgf.METHODS
Initial value:
1= {'generate' : '("algorithm",[files],[arguments])',
2 'get_quality_controls' : '',
3 'get_areas' : '',
4 'get_pcs_definitions' : '',
5 'execute' : '("shell command")',
6 'register': '("name", "module", "function", Help="", strings=",", ints=",", floats=",", seqs=",")',
7 'deregister': '("name")',
8 'flush': '("stupid_password")',
9 'job_done': '("jobid")',
10 'Help': ''
11 }