This class represents a GRIB2 file that is produced by this workflow.
It is a direct subclass of both GRIB2File and FileProduct.
Definition at line 1963 of file regrib.py.
|
| def | __init__ (self, dstore, args, kwargs) |
| | Creates a new GRIB2Product. More...
|
| |
| def | input_valid (self, kwargs) |
| | Returns True. More...
|
| |
| def | is_ready (self, args, kwargs) |
| | Calls self.check to see if the product is available. More...
|
| |
| def | make (self, regrib, args, kwargs) |
| | Calls deliver_file to copy the file to a new temporary location from regrib.gribtemp. More...
|
| |
| def | setgrib2grid (self, grid) |
| | Sets the grib2 grid information. More...
|
| |
| def | getgrib2grid (self) |
| | Returns the grib2 grid information. More...
|
| |
| def | delgrib2grid (self) |
| | Clears the grib2 grid information. More...
|
| |
| def | setgrib2index (self, index) |
| | Sets the grib2 index information. More...
|
| |
| def | getgrib2index (self) |
| | Gets the grib2 index information, or returns None if unknown. More...
|
| |
| def | delgrib2index (self) |
| | Cleares the stored information about the index location. More...
|
| |
| def | getgrib2file (self) |
| | Returns the location of the GRIB2 file from self.location. More...
|
| |
| def | setgrib2file (self, val) |
| | Sets the location of the GRIB2 file by setting self.location. More...
|
| |
| def | deliver |
| | Delivers a GRIB2 file to its destination. More...
|
| |
| def | undeliver (self) |
| | Deletes the delivered GRIB2 file and discards the index and grid information. More...
|
| |
| def | undeliver |
| | Undoes the effect of deliver() More...
|
| |
| def | deliver |
| | Delivers the file to a destination. More...
|
| |
| def | add_callback |
| | Adds a delivery callback function. More...
|
| |
|
def | has_callbacks (self) |
| | Returns True if this Product has any callback functions and False otherwise.
|
| |
| def | call_callbacks |
| | Calls all delivery callback functions. More...
|
| |
| def | check (self, kwargs) |
| | Asks the product to check its own availability and update the database. More...
|
| |
| def | deliver (self, kwargs) |
| | Asks the Product to deliver itself. More...
|
| |
| def | undeliver (self, kwargs) |
| | "Undelivers" a product. More...
|
| |
| def | setavailable (self, val) |
| | Sets the availability to the specified value. More...
|
| |
| def | is_available (self) |
| | Is the product available? More...
|
| |
| def | validate (self) |
| | Validates this object's Datastore, prodname and category. More...
|
| |
| def | __init__ (self, dstore, prodname, category, meta=None, cache=30, location=None, kwargs) |
| | Datum constructor. More...
|
| |
| def | __enter__ (self) |
| | Acquires this object's thread lock. More...
|
| |
| def | __exit__ (self, etype, evalue, traceback) |
| | Releases this object's thread lock. More...
|
| |
| def | validate (self) |
| | Validates this object's Datastore, prodname and category. More...
|
| |
| def | getid (self) |
| | Returns the database ID of this datum. More...
|
| |
| def | getdatastore (self) |
| | Returns the datastore of this datum. More...
|
| |
| def | transaction (self) |
| | Creates, but does not lock, a Transaction for this datum's datastore. More...
|
| |
| def | getprodtype (self) |
| | Returns the product type of this Datum. More...
|
| |
| def | getprodname (self) |
| | Returns the product name part of the database ID. More...
|
| |
| def | getcategory (self) |
| | Returns the product category part of the database ID. More...
|
| |
| def | getlocation (self) |
| | Returns the "location" field of this Datum's database entry. More...
|
| |
| def | setlocation (self, v) |
| | Sets the "location" field of this Datum's database entry. More...
|
| |
| def | __hash__ (self) |
| | Integer hash function. More...
|
| |
| def | __str__ (self) |
| | Human-readable description of this Datum. More...
|
| |
| def | __repr__ (self) |
| | Python code-like description of this Datum. More...
|
| |
| def | __cmp__ (self, other) |
| | Compares two Datums' prodnames and categories. More...
|
| |
| def | set_loc_avail (self, loc, avail) |
| | Sets the location and availability of this Datum in a single transaction. More...
|
| |
| def | update (self) |
| | Discards all cached metadata and refreshes it from the Datastore. More...
|
| |
| def | __getitem__ (self, k) |
| | Returns the value of the specified metadata key or raises KeyError. More...
|
| |
| def | meta |
| | Return the value of a metadata key. More...
|
| |
| def | get |
| | Alias for self.meta() Returns the value of the specified metadata key or returns default if it is unset. More...
|
| |
| def | __setitem__ (self, k, v) |
| | Sets the value of the specified metadata key. More...
|
| |
| def | __delitem__ (self, k) |
| | Deletes the specified metadata key, which must not be "available" or "location". More...
|
| |
| def | __contains__ (self, k) |
| | Determines if a metadata key is set. More...
|
| |
| def | iteritems (self) |
| | Iterates over all metadata (key,value) pairs for this Datum, including "available" and "location". More...
|
| |
| def | __init__ (self, grib2file, grib2index, grib2grid) |
| | GRIB2File constructor. More...
|
| |
| def | is_ready (self, args, kwargs) |
| | Returns True. More...
|
| |
| def | input_valid (self, kwargs) |
| | Returns True. More...
|
| |
| def | make (self, args, kwargs) |
| | Returns self. More...
|
| |
| def | getgrib2file (self) |
| | Returns the GRIB2 file's location. More...
|
| |
| def | getgrib2index (self) |
| | This is a placeholder for future development. More...
|
| |
| def | getgrib2grid (self) |
| | This is a placeholder for future development. More...
|
| |
| def | __init__ (self, action, args) |
| | GRIB2Op constructor. More...
|
| |
|
def | to_grib1 (self) |
| | Returns a GRIB2Op that converts this operation's output to GRIB1.
|
| |
|
def | to_grib2 (self) |
| | Returns self (converting GRIB2 to GRIB2 is a no-op)
|
| |
| def | __mul__ (self, grid) |
| | If grid is the special constant GRIB1, this is the same as to_grib1(), if GRIB2, then returns self. More...
|
| |
| 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...
|
| |
|
| | grib2grid |
| | The GRIB2 grid information if known. More...
|
| |
| | grib2index |
| | The disk location of the GRIB2 index file. More...
|
| |
| | grib2file |
| | The location of the grib2 file, synonym for self.location. More...
|
| |
| | resultfile |
| | The location of the grib2 file, synonym for self.location. More...
|
| |
| | available |
| | Read-write property: is the product available? More...
|
| |
| | prodname = property(getprodname,None,None,) |
| | Read-only property, an alias for getprodname(): the product name part of the database ID. More...
|
| |
| | category = property(getcategory,None,None,) |
| | Read-only property, an alias for getcategory(), the category name part of the database ID. More...
|
| |
| | prodtype |
| | Read-only property, an alias for getprodtype(), the product type. More...
|
| |
| | did |
| | Read-only property, an alias for getid(). More...
|
| |
| | dstore |
| | Read-only property, an alias for getdatastore(), the Datastore in which this Datum resides. More...
|
| |
| | location |
| | Read-write property, an alias for getlocation() and setlocation(). More...
|
| |
| | resultfile |
| | The path to the result file, in this case the GRIB2 file. More...
|
| |
| | grib2file |
| | The path to the GRIB2 file which is assumed to already exist. More...
|
| |
| | grib2index |
| | This is a placeholder for future GRIB2 subsetting support. More...
|
| |
| | grib2grid |
| | This is a placeholder for future GRIB2 regridding support. More...
|
| |
| | action |
| | A read-only property: this objects action function. More...
|
| |