Comparison statistics¶
Extract statistics for the selected directionnal bins
Parameters¶
- magstr
Name of the column from which to get stats.
- drrstr
Column name representing the directions.
- args: dict
- Dictionnary with the folowing keys:
- function: str
Name of the function to use, can be Max, Mean, Median, Min, Percentile Prod, Quantile, Std, Sum, Var
- Percentile or Quantile: float
Percentile or Quantile value depending on the function
- direction binning: str
Can be centered or not-centered depending if the directionnal are centered over 0
- direction interval: int
Dirctionnal interval for the bins in degrees
- folder out: str
Path to save the output
- Time blocking: str
- if
Time blocking=='Yearly', Statistics will be calculated for the whole timeserie
- if
Time blocking=='South hemisphere(Summer/Winter)', Statistics will be calculated for South hemisphere summer and winter seasons
- if
Time blocking=='South hemisphere 4 seasons', Statistics will be calculated for each South hemisphere seasons
- if
Time blocking=='North hemishere(Summer/Winter)', Statistics will be calculated for North hemisphere summer and winter seasons
- if
Time blocking=='North hemisphere 4 seasons', Statistics will be calculated for each North hemisphere seasons
- if
Time blocking=='North hemisphere moosoon(SW,NE,Hot season)', Statistics will be calculated for the North hemisphere moonsoon seasons
- if
Examples:¶
>>> df=tf['test1']['dataframe'].Statistics.Directional_statistics(mag='U',drr='drr',args={'direction interval':45,Time blocking':'Yearly'})
>>>
Outputs:¶
MEAN |
N |
S |
E |
W |
Total |
|---|---|---|---|---|---|
January |
|||||
February |
|||||
Annual |