RAVE
Lib.rave_pgf_scansun_plugin Namespace Reference

Functions

 NODfromSourceString (source)
 Convenience function.
 
 Source2File (isource)
 Creates a file name, preferably containing the NOD identifier for that radar.
 
 writeHits (source, hits)
 Writes hits to file.
 
 generate (files, arguments)
 Performs the sun scan.
 

Variables

 scansun_outputpath = None
 
 ravebdb = None
 
str HEADER = "#Date Time Elevatn Azimuth ElevSun AzimSun N dBSunFlux SunMean SunStdd ZdrMean ZdrStdd Refl ZDR\n"
 
str FORMAT = "%08i %010.3f %7.3f %7.2f %7.4f %7.4f %4i %9.2f %9.2f %6.3f %9.2f %6.3f %s %s\n"
 
 logger = rave_pgf_logger.create_logger()
 

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_scansun_plugin.generate ( files,
arguments )

Performs the sun scan.

Parameters
fileslist of files to scan. Keep in mind that each file can be from a different radar.
Returns
nothing

◆ NODfromSourceString()

Lib.rave_pgf_scansun_plugin.NODfromSourceString ( source)

Convenience function.

Gets the NOD identifier from /what/source string. Assumes that the NOD is there or can be looked up based on the WMO identifier. If WMO isn't there either, then a 'n/a' (not available) is returned.

Parameters
objinput SCAN or PVOL object
Returns
the NOD identifier or 'n/a'

◆ Source2File()

Lib.rave_pgf_scansun_plugin.Source2File ( isource)

Creates a file name, preferably containing the NOD identifier for that radar.

If it can't be found, converts the whole /what/source string to a file string. If its parent directory doesn't exist, it is created.

Parameters
sourcestring containing the full value of /what/source
Returns
string containing the complete path to a file

◆ writeHits()

Lib.rave_pgf_scansun_plugin.writeHits ( source,
hits )

Writes hits to file.

Parameters
sourcestring containing the full value of /what/source
listcontaining sun hits