Public Member Functions | |
def | __init__ |
def | get_diff_grid |
def | mean_absolute_error |
def | max_absolute_error |
def | max_error |
def | mean_bias |
def | rmse |
Private Member Functions | |
def | _get_grid |
Private Attributes | |
_control_output | |
_test_output | |
A class that takes two FlexpartOutput objects as input and provides methods for calculation of errors on slices, volumes and timeseries. The following arguments are included in most of the calls to methods, so are described here rather than in each method. There are a variety of combinations, which might get confusing, as not all arguments are used in all cases. timestamp : If it has a value, and if this is not a timeseries, then the indicated timestamp is used timestamp_list : if timeseries is True, then this will be used to provide the list of timestamps to use. level : specifies the level to use for a slice. Indexed from 1. level_list : if volume is True, then this will be used to provide the list of levels to use. species : species number to use. Indexed from 1 release : release number to use. Indexed from 1 age_class : age_class number to use. Indexed from 1 wet : if True, use the wet deposition. If dry is also True, the result is non-deterministic dry : if True, use the dry deposition. If wet is also True, the result is non-deterministic timeseries : if True, then it will use a timeseries as defined in timestamp_list. If timestamp_list is None, then a timeseries of all available timestamps will be used volume : if True, then it will use a volume as defined in level_list. If level_list is None, then a volume of all available levels will be used.
Definition at line 12 of file FlexpartErrors.py.
def flextest.FlexpartErrors.FlexpartErrors.__init__ | ( | self, | |
control = None , |
|||
test = None |
|||
) |
Constructor control: a FlexpartOutput object to be used as control data test: a FlexpartOutput object to be used as test data
Definition at line 61 of file FlexpartErrors.py.
|
private |
Gets the grid as specified by the parameters. This is a private method and flexout_obj is intended to be the control or test grid that this class contains. Note the True/False values of the last parameters. They will dictate the flow of this routine.
Definition at line 327 of file FlexpartErrors.py.
def flextest.FlexpartErrors.FlexpartErrors.get_diff_grid | ( | self, | |
timestamp = None , |
|||
timestamp_list = None , |
|||
level = 1 , |
|||
level_list = None , |
|||
species = 1 , |
|||
release = 1 , |
|||
age_class = 1 , |
|||
wet = False , |
|||
dry = False , |
|||
timeseries = False , |
|||
volume = False |
|||
) |
Gets the difference grid as specified by the parameters. Note the True/False values of the last parameters:
Definition at line 104 of file FlexpartErrors.py.
def flextest.FlexpartErrors.FlexpartErrors.max_absolute_error | ( | self, | |
timestamp = None , |
|||
timestamp_list = None , |
|||
level = 1 , |
|||
level_list = None , |
|||
species = 1 , |
|||
release = 1 , |
|||
age_class = 1 , |
|||
wet = False , |
|||
dry = False , |
|||
timeseries = False , |
|||
volume = False |
|||
) |
Returns the max absolute error of the test and control grid, as defined by the parameters
Definition at line 191 of file FlexpartErrors.py.
def flextest.FlexpartErrors.FlexpartErrors.max_error | ( | self, | |
timestamp = None , |
|||
timestamp_list = None , |
|||
level = 1 , |
|||
level_list = None , |
|||
species = 1 , |
|||
release = 1 , |
|||
age_class = 1 , |
|||
wet = False , |
|||
dry = False , |
|||
timeseries = False , |
|||
volume = False |
|||
) |
Returns the max error of the test and control grid, as defined by the parameters. NOTE - I "think" this is the same as max_abs_error as written, and maybe shouldn't have the key=abs...
Definition at line 222 of file FlexpartErrors.py.
def flextest.FlexpartErrors.FlexpartErrors.mean_absolute_error | ( | self, | |
timestamp = None , |
|||
timestamp_list = None , |
|||
level = 1 , |
|||
level_list = None , |
|||
species = 1 , |
|||
release = 1 , |
|||
age_class = 1 , |
|||
wet = False , |
|||
dry = False , |
|||
timeseries = False , |
|||
volume = False |
|||
) |
Returns the mean absolute error of the test and control grid, as defined by the parameters
Definition at line 160 of file FlexpartErrors.py.
def flextest.FlexpartErrors.FlexpartErrors.mean_bias | ( | self, | |
timestamp = None , |
|||
timestamp_list = None , |
|||
level = 1 , |
|||
level_list = None , |
|||
species = 1 , |
|||
release = 1 , |
|||
age_class = 1 , |
|||
wet = False , |
|||
dry = False , |
|||
timeseries = False , |
|||
volume = False |
|||
) |
Returns the mean of the biases of the test and control grid, as defined by the parameters
Definition at line 255 of file FlexpartErrors.py.
def flextest.FlexpartErrors.FlexpartErrors.rmse | ( | self, | |
timestamp = None , |
|||
timestamp_list = None , |
|||
level = 1 , |
|||
level_list = None , |
|||
species = 1 , |
|||
release = 1 , |
|||
age_class = 1 , |
|||
wet = False , |
|||
dry = False , |
|||
timeseries = False , |
|||
volume = False |
|||
) |
Returns the root mean square error of the test and control grid, as defined by the parameters
Definition at line 286 of file FlexpartErrors.py.
|
private |
Definition at line 83 of file FlexpartErrors.py.
|
private |
Definition at line 84 of file FlexpartErrors.py.