HWRF
trunk@4391
|
This exception is raised when an invalid Tropical Cyclone basin is found. More...
This exception is raised when an invalid Tropical Cyclone basin is found.
The invalid basin is available as self.basin, and the subbasin is self.subbasin (which might be None).
Definition at line 46 of file storminfo.py.
Public Member Functions | |
def | __init__ |
InvalidBasinError constructor. More... | |
def | __str__ (self) |
Return a human-readable string representation of this error. | |
def | __repr__ (self) |
Return a Pythonic representation of this error. More... | |
Public Attributes | |
basin | |
The problematic basin. | |
subbasin | |
The problematic subbasin, or None if no subbasin was given. More... | |
def hwrf.storminfo.InvalidBasinError.__init__ | ( | self, | |
basin, | |||
subbasin = None |
|||
) |
InvalidBasinError constructor.
basin | the basin in question |
subbasin | the subbasin, if known. For example, the North Indian Ocean (IO) is split into subbasins Arabian Sea (AA) and Bay of Bengal (BB) |
Definition at line 50 of file storminfo.py.
def hwrf.storminfo.InvalidBasinError.__repr__ | ( | self | ) |
Return a Pythonic representation of this error.
Definition at line 72 of file storminfo.py.
Referenced by produtil.prog.Runner.__str__().
hwrf.storminfo.InvalidBasinError.subbasin |
The problematic subbasin, or None if no subbasin was given.
For example, the North Indian Ocean (IO) is split into subbasins Arabian Sea (AA) and Bay of Bengal (BB)
Definition at line 57 of file storminfo.py.
Referenced by hwrf.storminfo.InvalidBasinError.__repr__(), and hwrf.storminfo.InvalidBasinError.__str__().