|
HWRF
trunk@4391
|
This class represents a GRIBGrid that must be computed from some other input, usually a GRIB file. More...
This class represents a GRIBGrid that must be computed from some other input, usually a GRIB file.
This is used to create storm-centered or E-grid GRIB-centered grids for the HWRF.
Public Member Functions | |
| def | __init__ (self, name, action, args) |
| Creates a new GRIBGridCompute with the given name and action. More... | |
| def | is_ready (self, args, kwargs) |
| Returns the logical "or" of is_ready(*args,**kwargs) called on all subobjects. More... | |
| def | input_valid (self, args, kwargs) |
| Returns the logical "or" 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... | |
Public Member Functions inherited from hwrf.regrib.GRIBBase | |
| 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... | |
| def hwrf.regrib.GRIBGridCompute.__init__ | ( | self, | |
| name, | |||
| action, | |||
| args | |||
| ) |
Creates a new GRIBGridCompute with the given name and action.
The action is a function or callable object that takes this object, the regrib, the name and the contents of args. Also, any keyword arguments given to self.make are passed on as well.
| name | The name of the computed grid. |
| action | The function that computes the grid. |
| args | Additional positional arguments are sent to the function. |
| def hwrf.regrib.GRIBGridCompute.input_valid | ( | self, | |
| args, | |||
| kwargs | |||
| ) |
| def hwrf.regrib.GRIBGridCompute.is_ready | ( | self, | |
| args, | |||
| kwargs | |||
| ) |
| def hwrf.regrib.GRIBGridCompute.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.
1.8.10