windkit.ltc.VarRatMCP.wd_to_sector#
- VarRatMCP.wd_to_sector(wd, recalc_sectors=False)#
Convert wind direction to sector indices using the object’s n_sectors and quantiles settings.
The sector cut points are computed on
wdwhenrecalc_sectorsis True or no cut points are cached yet, and cached on the object. Later calls reuse the cached cut points, so predictions are binned with the sectors the model was fitted with.