This is the abstract base class for all GRIB1 and GRIB2 files and operators. More...
This is the abstract base class for all GRIB1 and GRIB2 files and operators.
It should never be instantiated directly.
Public Member Functions | |
def | __init__ (self, action, args) |
Creates a GRIBOp that has a number of child GRIBBase objects, with a specified action to perform in the GRIBOp.make method. More... | |
def | getaction (self) |
Returns the action, a function or callable object. More... | |
def | args (self) |
Iterates over all child GRIBBase objects. More... | |
def | is_ready (self, args, kwargs) |
Returns the logical "and" of is_ready(*args,**kwargs) called on all subobjects. More... | |
def | input_valid (self, kwargs) |
Returns the logical "and" of input_valid(**kwargs) called on all subobjects. More... | |
def | make (self, regrib, kwargs) |
Runs the action specified in the constructor, providing as arguments regrib, and the result of running make on all of the other arguments sent to the constructor. More... | |
def | __repr__ (self) |
A string representation of this GRIB operation. More... | |
![]() | |
def | is_ready (self, args, kwargs) |
Returns True if this object and its subobjects are all ready for a call to make, and False otherwise. More... | |
def | input_valid (self, kwargs) |
Returns True if the specified kwargs are valid and False otherwise. More... | |
def | make (self, regrib, kwargs) |
Runs the action this object should perform and returns another GRIBBase object. More... | |
Properties | |
action | |
A read-only property: this objects action function. More... | |
def hwrf.regrib.GRIBOp.__init__ | ( | self, | |
action, | |||
args | |||
) |
Creates a GRIBOp that has a number of child GRIBBase objects, with a specified action to perform in the GRIBOp.make method.
The action should be a callable object that takes as input a Regrib, the contents of args and any keyword arguments sent to make.
action | the function that performs the operation |
args | arguments to the action |
def hwrf.regrib.GRIBOp.__repr__ | ( | self | ) |
A string representation of this GRIB operation.
Definition at line 1522 of file regrib.py.
Referenced by produtil.prog.Runner.__str__().
def hwrf.regrib.GRIBOp.args | ( | self | ) |
Iterates over all child GRIBBase objects.
Definition at line 1478 of file regrib.py.
Referenced by hwrf.regrib.GRIBOp.__repr__(), hwrf.regrib.GRIBOp.input_valid(), hwrf.regrib.GRIBOp.is_ready(), hwrf.tracker.GRIB1VintTave.make(), hwrf.regrib.GRIBOp.make(), and produtil.mpiprog.MPIRank.validate().
def hwrf.regrib.GRIBOp.getaction | ( | self | ) |
def hwrf.regrib.GRIBOp.input_valid | ( | self, | |
kwargs | |||
) |
Returns the logical "and" of input_valid(**kwargs) called on all subobjects.
kwargs | Passed to source.has_data. The meaning is implementation-specific, but generally the kwargs are used for string replacement in an hwrf.config.HWRFConfig |
def hwrf.regrib.GRIBOp.is_ready | ( | self, | |
args, | |||
kwargs | |||
) |
Returns the logical "and" of is_ready(*args,**kwargs) called on all subobjects.
args,kwargs | Passed to arg.is_ready. The meaning is implementation-specific, but generally the kwargs are used for string replacement in an hwrf.config.HWRFConfig |
def hwrf.regrib.GRIBOp.make | ( | self, | |
regrib, | |||
kwargs | |||
) |
Runs the action specified in the constructor, providing as arguments regrib, and the result of running make on all of the other arguments sent to the constructor.
regrib | a Regrib for data storage |
kwargs | Passed to the action. The meaning is implementation-specific, but generally the kwargs are used for string replacement in an hwrf.config.HWRFConfig |
|
static |