windkit.ltc.mcp.LinRegMCP.wd_to_sector

LinRegMCP.wd_to_sector(wd, recalc_sectors=False)

Convert wind direction to sectors using the object n_sectors and constant_sector_width values

Parameters:

wd (array, float, shape (n_samples,)) – Wind directions.

Returns:

sector – Wind direction sector indicies.

Return type:

array, int, shape (n_samples, )