HWRF
trunk@4391
|
This is the abstract base class of Regrib and RegribMany and should not be instantiated directly. More...
This is the abstract base class of Regrib and RegribMany and should not be instantiated directly.
It exists only to reduce code duplication.
Public Member Functions | |
def | __init__ |
Creates a RegribBase. More... | |
def | getcopygb (self) |
Returns the copygb ImmutableRunner. | |
def | getcnvgrib_g12 (self) |
Returns the cnvgrib -p32 -g12 command, which should be an ImmutableRunner. | |
def | getcnvgrib_g21 (self) |
Returns the cnvgrib -g21 command, which should be an ImmutableRunner. More... | |
def | getwgrib (self) |
Returns the wgrib command, which should be an ImmutableRunner. More... | |
def | getlog (self) |
Returns the logger.Logging object to use for logging messages, or None if no logger was provided to the constructor. More... | |
def | setlog (self, val) |
Sets the logger.Logging object to use for logging messages. More... | |
def | getprodargs (self) |
Returns the array of arguments to send to the products iterators. More... | |
def | getprodkwargs (self) |
Returns a dict of keyword arguments to send to the products iterators. More... | |
def | setsync_frequently (self, flag) |
Sets the sync_frequently flag. More... | |
def | getsync_frequently (self) |
Returns the value of the sync_frequently flag. More... | |
Properties | |
sync_frequently | |
Boolean flag: should we call sync frequently? More... | |
logger | |
A logging.Logger for log messages. More... | |
prodargs | |
A list of additional positional arguments to send to Task.products. More... | |
prodkwargs | |
A dict of additional keyword arguments to send to Task.products. More... | |
wgrib | |
A produtil.prog.ImmutableRunner for running wgrib, or None if unavailable. More... | |
copygb | |
A produtil.prog.ImmutableRunner for running copygb, or None if unavailable. More... | |
cnvgrib_g21 | |
A produtil.prog.ImmutableRunner for running cnvgrib to convert from GRIB2 to GRIB1, or None if unavailable. More... | |
cnvgrib_g12 | |
A produtil.prog.ImmutableRunner for running cnvgrib to convert from GRIB1 to GRIB2, or None if unavailable. More... | |
def hwrf.regrib.RegribBase.__init__ | ( | self, | |
logger = None , |
|||
prodargs = None , |
|||
prodkwargs = None , |
|||
_base = None , |
|||
cnvgrib_g12 = None , |
|||
cnvgrib_g21 = None , |
|||
wgrib = None , |
|||
copygb = None |
|||
) |
Creates a RegribBase.
_base | Do not use. The _base should be another RegribBase to copy. If this is specified, all other arguments are ignored, and the _base is copied. This is the implementation of self.copy() |
logger | the logging.Logger that should be used when regribbing |
prodargs | a list of additional arguments to send to "products" iterators. |
prodkwargs | a dict of additional keyword arguments to send to "products" iterators. |
cnvgrib_g12 | The "cnvgrib -p32 -g12" program (a produtil.prog.ImmutableRunner) to convert from GRIB1 to GRIB2. (Other compression types besides -p32 are okay.) |
cnvgrib_g21 | The "cnvgrib -g21" program (a produtil.prog.ImmutableRunner) to convert from GRIB2 to GRIB1 |
wgrib | the wgrib program, with no arguments, a produtil.prog.ImmutableRunner |
copygb | the copygb program, with no arguments, a produtil.prog.ImmutableRunner |
def hwrf.regrib.RegribBase.getcnvgrib_g21 | ( | self | ) |
def hwrf.regrib.RegribBase.getlog | ( | self | ) |
def hwrf.regrib.RegribBase.getprodargs | ( | self | ) |
def hwrf.regrib.RegribBase.getprodkwargs | ( | self | ) |
def hwrf.regrib.RegribBase.getsync_frequently | ( | self | ) |
def hwrf.regrib.RegribBase.getwgrib | ( | self | ) |
def hwrf.regrib.RegribBase.setlog | ( | self, | |
val | |||
) |
def hwrf.regrib.RegribBase.setsync_frequently | ( | self, | |
flag | |||
) |
|
static |
A produtil.prog.ImmutableRunner for running cnvgrib to convert from GRIB1 to GRIB2, or None if unavailable.
|
static |
A produtil.prog.ImmutableRunner for running cnvgrib to convert from GRIB2 to GRIB1, or None if unavailable.
|
static |
A produtil.prog.ImmutableRunner for running copygb, or None if unavailable.
|
static |
A logging.Logger for log messages.
Definition at line 149 of file regrib.py.
Referenced by produtil.workpool.WorkPool.__exit__(), produtil.rusage.RUsage.__exit__(), hwrf.revital.Revital.__init__(), hwrf.revital.Revital.add_stormtype(), hwrf.namelist.Conf2Namelist.copy(), hwrf.coupling.CouplingStatus.get(), hwrf_scrub.Deleter.go(), hwrf.coupling.CouplingStatus.read(), hwrf.revital.Revital.readcarq(), hwrf.revital.Revital.readfiles(), hwrf.revital.Revital.readvitals(), hwrf.revital.Revital.rename(), hwrf.revital.Revital.renumber(), hwrf.revital.Revital.renumber_one(), setup_hurricane.StormCurses.resort(), setup_hurricane.StormCurses.setup(), and hwrf.coupling.CouplingStatus.unset().
|
static |
|
static |
|
static |
Boolean flag: should we call sync frequently?
Definition at line 144 of file regrib.py.
Referenced by pom.init.fbtr.setrun(), pom.init.g3.setrun(), pom.init.na.setrun(), and pom.init.phase.setrun().
|
static |
A produtil.prog.ImmutableRunner for running wgrib, or None if unavailable.