Weather window¶
This function calculates the averaged number of full windows for data -exceeding specific values during a specific duration (persistence exceedence) -non-exceeding specific values during a specific duration (persistence non-exceedence) Note: if a window overlaps to the next month/season/year, it is assumed to belong to the month/season/year when the window starts.
Parameters¶
- datastr
Name of the column from which to get stats.
- args: dict
- Dictionnary with the folowing keys:
- method: str
It can be persistence exceedence or persistence non-exceedence
- Exceedance bins: Min Res Max(optional): list
Minimum, resolution and maximum value of X axis to use
- Duration Min Res Max: list
Minimum, resolution and maximum duration to use in hours
- folder out: str
Path to save the output
- Time blocking: str
- if
Time blocking=='Annual', Statistics will be calculated for the whole timeserie
- if
Time blocking=='Seasonal (South hemisphere)', Statistics will be calculated for each South hemisphere seasons
- if
Time blocking=='Seasonal (North hemisphere)', Statistics will be calculated for each North hemisphere seasons
- if
Time blocking=='Monthly', Statistics will be calculated for each month
- if
Examples:¶
>>> df=tf['test1']['dataframe'].Statistics.weather_window(data='U',args={'time blocking':'Monthly'})
>>>
Outputs:¶
6 |
12 |
18 |
24 |
36 |
|
|---|---|---|---|---|---|
>0.2 |
|||||
>0.4 |
|||||
>0.6 |