Closed Bartdoekemeijer closed 7 months ago
Just requires some formatting to accommodate Ruff and then it's good to go, I think!
This looks really great @Bartdoekemeijer , we will try to spend some time on it soon, thank you!
hi @Bartdoekemeijer , this looks great and will be a very useful tool!
I pushed up a few small changes, then I think there are a few additional little issues:
In energy_ratio_heterogeneity_mapper
Thanks Paul!
plotting_dict
except
The arrow plot indeed shows the direction where the wind is blowing. Could optionally swap this. I like it like this, but happy to be convinced otherwise and happy to accommodate both options too. Let me know!
This PR is ready to be merged.
Feature or improvement description This PR adds a separate class for the heterogeneity estimation process, including automatic conversion to FLORIS'
het_map
variable and various visualizations.Related issue, if one exists N/A
Impacted areas of the software Energy ratio class.
Additional supporting information This class is useful for quickly deriving the heterogeneous inflow profiles over all wind directions and formatting it to a FLORIS-compatible format. The class allows you to directly output the heterogeneity profiles to a FLORIS-compatible format so that it can be used in the
het_map
variable. Note that this function linearly extends the measured heterogeneous wind speeds along the wind direction:Test results, if applicable The example![image](https://github.com/NREL/flasc/assets/22119448/7c4aa773-1dee-49f9-b558-11ba4695107b)
05_estimate_heterogeneity_from_energy_ratios.py
now produces the figures:and this is how the variable
df_fi_hetmap
looks like in the example: