_images/calypso.png

Rose plot

This function provides annual, seasonal or monthly rose plots for wind, wave, current or any direcional variable. This function is using https://github.com/python-windrose/windrose

Parameters

magstr

Name of the column from which to get stats.

drrstr

Column name representing the directions.

args: dict

Dictionnary with the folowing keys: title: str

Graph title

speed bins (optional): list

Speed to plot

% quadran (optional): list

Percentage of each occurence to plot

display: str

On or Off to display image

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 South hemisphere seasons

if Time blocking=='Seasonal (North hemisphere)',

Statistics will be calculated for North hemisphere seasons

if Time blocking=='Monthly',

Statistics will be calculated for each month.

Examples:

>>> df=tf['test1']['dataframe'].StatPlots.plot_roses(mag='U',drr='drr',args={'time blocking':'Yearly'})
>>>