FasorX
PTENES

Dorguinha’s Blog · Report

Harmonizing, formatting and reconciling meteorological data in OpenWindAxis

Summary

  • What it is: the step-by-step report that UTFPR's Energy Efficiency Laboratory (LEFE) wrote in 2019 to treat the met mast data of the Curitiba region, redone in OpenWindAxis instead of Windographer.
  • What it was for: the treatment was the step before the wind map. Each mast's treated series went on to Openwind, where the map was calculated.
  • The data: the daily logger files of mast 5, in Quatro Barras, from 27 August to 15 October 2019, the same as in the original report.
  • The result: the four Weibull fits and the wind shear match Windographer's, with a difference of at most 0.001.
  • The program: OpenWindAxis runs in the browser, with nothing to install, and the code is on GitHub.

How to read this report

In 2019, the treatment of the Curitiba-region met mast data was done in Windographer and documented in a LEFE report, with the step-by-step of each window. Each mast's treated series went on to Openwind, where the wind map was calculated. This report retraces the same path in OpenWindAxis, with the same numbering: initial setup, main windows, flags, analyses, vertical extrapolation, long-term reference, export to Openwind and tower shading. Each step gives the menu path, the figure captured in the program itself and what it showed with the data of mast 5.

The figures were captured with the Portuguese interface, and the callouts on them are in Portuguese too. OpenWindAxis also has an English interface: menu paths are given as they appear in the figures, followed by the English name.

The table takes each Windographer command used in 2019 to its equivalent in OpenWindAxis.

StepWindographer (2019)OpenWindAxis
Open the first fileFile › OpenArquivo › Adicionar dataset(s)… (File › Add Dataset(s)…)
Join the other filesFile › AppendArquivo › Anexar dados… (File › Append Data…)
Configure the columns and the siteConfigure Data SetRevisar › Configurar dataset… (Revise › Configure Dataset…)
Calculation settingsData Set › Calculation settingsFerramentas › Opções… (Tools › Options…)
Vane offsetCalibrationRevisar › Calibração… (Revise › Calibration…)
Main chartsSummary, Time Series, Wind Rose, Scatter PlotGráficos-resumo (Summary Graphs) and the Analisar (Analyze) menu
FlagsFlag Manually, Flag With RulesFlag › Flag manual… (Flag Manually…), Flag por regras… (Flag With Rules…) and Tratamento passo a passo… (Step-by-Step Treatment…)
AnalysesTower Distortion, Wind Shear, Wind Speed Distribution, TurbulenceAnalisar › Distorção da torre, Cisalhamento do vento, Distribuição de velocidade, Turbulência (Analyze › Tower Distortion, Wind Shear, Wind Speed Distribution, Turbulence)
Vertical extrapolationRevise › Vertical ExtrapolationRevisar › Extrapolação vertical… (Revise › Vertical Extrapolation…)
Long-term referenceTools › Data Downloader and Compare › Measure Correlate Predictwind download and Revisar › Ajuste de longo prazo… (Revise › Long Term Adjustments…)
Export to OpenwindFile › Export Data › OpenwindArquivo › Exportar dados… › Openwind (File › Export Data… › Openwind)
Tower shadingFlag › Flag Tower ShadingFlag › Sombra da torre… (Flag › Flag Tower Shading…)

Mast 5 data

Mast 5 stands in Quatro Barras (Paraná), at 938 m above sea level, and is one of the project's five masts, together with those of Almirante Tamandaré, São José dos Pinhais, Lapa and Curitiba (Neoville). It has two anemometers at 30 m, one at 20 m, wind vanes at 30 and 20 m, temperature, humidity and pressure, with 10-minute averages. The logger writes one file per day, and the period of this report has 50 files, from 27 August to 15 October 2019. The columns keep the same names as in the 2019 figures, such as Average Vel_Vento_1_30m.

1. Initial setup

1.1 Open the first file and append the others

As in 2019, the work starts with a single file, which is configured before the others come in. Arquivo › Adicionar dataset(s)… (File › Add Dataset(s)…) opens YDOC_Torre_5_65107008_190901_000038.csv, the same file as in figure 2 of the original report.

The OpenWindAxis File menu open, with the first daily file of mast 5 already loaded in the dataset table
Figure 1: the File menu, with the first daily file of mast 5 open.

After the setup (1.2), Arquivo › Anexar dados… (File › Append Data…) adds the other 49 files, which inherit the first one's configuration. The append status says what happened to each of them. Here, 48 came in, and YDOC_Torre_5_65107008_190827_103004.csv was refused because it has a single line. That is why the dataset has 6,993 steps, one fewer than the 6,994 of 2019. Arquivo › Abrir pasta como dataset… (File › Open Folder as Dataset…) does both at once, with the whole folder.

The append status window, with the list of appended daily files and the notice of one file refused for having fewer than two time-stamped lines
Figure 2: the append status, with 48 files appended and 1 refused.

1.2 Configure the dataset

Revisar › Configurar dataset… (Revise › Configure Dataset…) is where you tell the program what each column is. The same window opens from the gear on the toolbar, as in Windographer. In 2019, the speeds came in without a type, and you had to choose Wind Speed, enter the height and associate the maximum, minimum and standard deviation with each sensor's mean. With the YDOC files, OpenWindAxis recognizes each column's type, subtype and height by itself and already associates the statistics with the same sensor's mean. What is left is to check.

The Columns tab of Configure Dataset, with each mast 5 column, its type, subtype, height of 30 or 20 m and associated mean
Figure 3: the mast 5 columns, with type, height and associated mean recognized on import.

The logger does not record the mast's location. Latitude, longitude and elevation go in the basic properties: −25.381667, −49.074044 and 938 m. They place the mast on the map and go out in the Openwind file.

The dataset's basic properties, with latitude, longitude and elevation of mast 5 filled in
Figure 4: the site and the elevation of the mast.

The calculation settings that the 2019 report chose in the Data Set tab are in Ferramentas › Opções… (Tools › Options…), as defaults for new windows: the Openwind Weibull fit, the 3rd edition of IEC 61400-1 and wind shear aggregated by the mean of monthly means.

The Options window, with the defaults for the Weibull fit, the IEC 61400-1 edition and the shear aggregation
Figure 5: the calculation settings, the same as in 2019.

1.3 Calibration: the vane offset

Revisar › Calibração… (Revise › Calibration…) applies the vane orientation offset, 39° on this mast, to Average Dir_Vento_1_30m and Average Dir_Vento_3_20m. At the bottom of the window, choose "Guardar as constantes e aplicá-las aos dados" (Keep the constants and apply them to the data). The other option stores the offset without changing the directions. As the 2019 report pointed out, each mast has its own orientation and therefore its own offset.

The calibration window, with an offset of 39 on both vanes and the option to apply the constants to the data selected
Figure 6: the 39° offset on both vanes.

2. Main windows

The main window shows the datasets, the map and the summary graphs: data coverage, the vertical shear profile, direction frequency, the monthly mean speed and the mean diurnal profile. Every flag you mark updates these graphs.

The main window with mast 5 on the map, in Quatro Barras, and the summary graphs of coverage, shear, direction, monthly mean and diurnal profile
Figure 7: the main window, with the mast on the map and the summary graphs.

The analyses are in the Analisar (Analyze) menu, and each one opens in a tab. In Analisar › Série temporal (Analyze › Time Series), the Médias diárias (Daily means) option shows each day's mean, the same view that in 2019 was used to compare with the Node-RED charts.

The time series of daily means of the three anemometers of mast 5
Figure 8: the daily means of the three anemometers.

The wind rose, with the offset already applied, shows the prevailing wind from the northeast and east-northeast in the period.

The wind rose of mast 5, with northeast and east-northeast prevailing
Figure 9: the wind rose.

The scatter plot between the two 30 m anemometers is the first check on the sensors: two instruments at the same height should agree. Over the 6,993 steps, the line is y = 0.991·x − 0.0394, with R² of 0.982.

The scatter plot between the two 30 m anemometers, with the fitted line
Figure 10: the scatter between the two 30 m anemometers.

3. Flags

Flags set bad data apart without deleting it. The analyses leave out what is flagged, every flag can be undone and keeps the evidence of why it was set. The program comes with the flags Inválido (invalid), Sombra da torre (tower shading) and Gelo (icing), and others can be created in Flag › Definir flags… (Flag › Define Flags…).

3.1 Manual flag

Flag › Flag manual… (Flag › Flag Manually…) is where you pick the time interval and the columns and apply the flag. It is the way to record what visual inspection finds and no rule describes.

The manual flag window, with the selection of the interval, the columns and the flag to apply
Figure 11: the manual flag.

3.2 Flag with rules

In Flag › Flag por regras… (Flag › Flag With Rules…), each rule has the test, the limits, the minimum duration, the flag and the columns. As the 2019 report recommended, it pays to test before executing: Testar todas (Test all) shows what would be flagged without flagging anything. Here, with speeds outside 0.01 to 60 m/s and the same value repeated for 18 steps (3 hours), no step of mast 5 would be flagged in the period.

The flag with rules window, with two speed rules tested and the test result with no step flagged
Figure 12: two rules tested, with nothing to flag.

3.3 Step-by-step treatment

OpenWindAxis also has a path that the 2019 report did not have, Flag › Tratamento passo a passo… (Flag › Step-by-Step Treatment…). It first checks what the tests will need and then checks one set of sensors at a time. On the speed of mast 5, the test found 5 spikes that rise 5 m/s and come back within 2 steps and, on Average Vel_Vento_1_30m, 2 days whose mean differs from the twin anemometer's by more than 5%, 17 and 19 September. Testing flags nothing. Each stretch has the Ver (See) button, which takes you to the time series, and Tratar (Treat), with the fixes that suit it.

The step-by-step treatment on the speed check, with the checks, the stretches found and the See and Treat buttons
Figure 13: the speed check in the step-by-step treatment.

4. Analyses

4.1 Tower distortion

Analisar › Distorção da torre (Analyze › Tower Distortion) compares the two 30 m anemometers in each direction sector, to show from where the mast shades one of them. On the 30 m pair, with 6,993 occurrences, the distortion factor is 0.03 and the scatter factor 0.032.

The tower distortion analysis, with the difference between the two 30 m anemometers by direction sector
Figure 14: the tower distortion on the 30 m pair.

4.2 Wind shear

Analisar › Cisalhamento do vento (Analyze › Wind Shear) fits the change of speed with height, by the power law and by the log law, with the three anemometers. The exponent α came out at 0.199 (interval from 0.182 to 0.218) and the roughness z0 at 0.1604 m. Figure 28 of 2019 gave α of 0.199 and z0 of 0.160 m.

The wind shear analysis, with the mean vertical profile from the three anemometers and the power and log laws
Figure 15: the vertical shear profile.

4.3 Wind speed distribution

Analisar › Distribuição de velocidade (Analyze › Wind Speed Distribution) fits the Weibull distribution to the 30 m speed with the same four algorithms as Windographer and compares the curves with the histogram. A is the scale factor, tied to the mean, and k the shape factor. Maximum likelihood picks the k and A that make the observed data most probable, and least squares fits a line to the cumulative distribution. The WAsP algorithm reproduces the measured power density and the fraction of steps above the mean, and the Openwind one, the mean and the power density.

The wind speed distribution window, with the table of the four Weibull algorithms and the histogram with the fitted curves
Figure 16: the four Weibull fits of the 30 m speed.
Algorithmk (2019)k (OpenWindAxis)A in m/s (2019)A in m/s (OpenWindAxis)R² (2019)R² (OpenWindAxis)
Maximum likelihood2.6412.6414.2824.2830.98050.9805
Least squares2.7752.7754.2704.2700.98610.9861
WAsP2.7222.7234.3124.3130.98330.9833
Openwind2.6332.6334.2864.2860.98000.9800

The measured mean is the same, 3.808 m/s, and the power density at 1.225 kg/m³ is 51.5 W/m², against 51.4 in 2019. The 0.001 difference in three values comes from the missing step. With the mast's merged file, which has the 6,994 steps of 2019, the four fits come out identical to Windographer's.

4.4 Turbulence

Analisar › Turbulência (Analyze › Turbulence) computes each step's turbulence intensity, the standard deviation divided by the mean, and compares it with the IEC 61400-1 curves. The IEC category is defined at 15 m/s, and the period had a single step in that bin. With 49 days of a low-wind site, a mean of 3.8 m/s, the window shows turbulence by speed, but there is no basis for the category.

The turbulence analysis, with turbulence intensity by speed bin and the IEC 61400-1 curves
Figure 17: turbulence intensity by speed.

5. Vertical extrapolation

Revisar › Extrapolação vertical… (Revise › Vertical Extrapolation…) synthesizes the speed at another height, step by step, from the shear. As in 2019, the target is 50 m, by the power law. The new column has a mean of 4.256 m/s, and the Openwind Weibull fit at 50 m gives k of 2.647 and A of 4.789 m/s. It is a derived column and inherits the flags of the sensors it reads.

The vertical extrapolation window, with the 50 m target height and the power law
Figure 18: the extrapolation to 50 m.

6. Long-term reference

In 2019, the reference was MERRA-2, downloaded from Windnavigator and saved as .windog before Measure Correlate Predict. Here, the reference is NASA POWER from 2010 to 2019, 87,648 hours downloaded with wind download nasa_power, the OpenWindAxis command line, and opened as one more dataset.

In Revisar › Ajuste de longo prazo… (Revise › Long Term Adjustments…), the first step is the time shift. The logger records local time, three hours behind the reanalysis UTC, and the window looks for the shift that maximizes the correlation. It recommended −3 h, the same "3 hours back" as in the 2019 report. With it, the speed correlation rises from 0.3471 to 0.4809, and the temperature one from 0.798 to 0.9235.

The optimal time shift table, with the speed, direction and temperature correlations before and after the 3-hour shift
Figure 19: the optimal reference shift, −3 h.

After the shift, there are 1,165 concurrent hours, from 27 August to 14 October. In the reference, the long-term mean is 3.36 m/s, and the mean of the concurrent period 3.57 m/s. The local direction sits 8.4° below the reference. A correlation of 0.48 is far from the R of 0.8 that MEASNET recommends, and 49 days are far from the year of concurrency it asks for. The 2019 one was also low, with R² of 0.168. With this period, the long-term adjustment shows the way, not the mast's long-term wind.

The long-term adjustment window after the shift, with the concurrent period between mast 5 and NASA POWER
Figure 20: the long-term adjustment with the shifted reference.

7. Exporting data to Openwind

Arquivo › Exportar dados… › Openwind (File › Export Data… › Openwind) writes the Openwind met mast file (MM 2.1), with speed, direction, temperature, air density and turbulence intensity for each step where all values are valid. The window picks the sensors by itself and shows the simple mean (3.808 m/s), the distribution mean (3.818 m/s), the mean without seasonal bias (3.741 m/s) and the exported steps (6,993).

The Openwind tab of the Export Data window, with the automatic sensors, the means and the number of exported steps
Figure 21: the export to Openwind.

The start of the exported file:

MM,2.1
-25.381667,-49.074044,1
30
2
1.400
938
Year,Month,Day,Hour,Minute,Average Vel_Vento_1_30m [m/s],Average Dir_Vento_1_30m [°],Average Temperatura [°C],Density 30m [kg/m³],Average Vel_Vento_1_30m TI [%],L [m]
2019,8,27,10,40,1.930,351.2,14.25,1.104,22.28,0
2019,8,27,10,50,1.540,352.0,14.99,1.101,25.32,0

In the file of figure 43 of 2019, the site line was 0.000000,0.000000,1 and the elevation line 0. Here they come out with the site and the elevation filled in at 1.2.

8. Tower shading

Flag › Sombra da torre… (Flag › Flag Tower Shading…) generates rules that flag with Sombra da torre (tower shading) the steps in which the wind comes from the side where the mast shades each anemometer. By the detected pattern, the program computes the ratio between the two 30 m sensors at each step and the median of that ratio in each direction sector, and the extremes of the median are the centers of the shaded sectors. There is also the mode based on boom orientation, as in Windographer.

With the 39° offset, the sectors are centered at 220°, which flags Average Vel_Vento_1_30m, and at 30°, which flags Average Vel_Vento_2_30m, 30° wide: the rules go from 205° to 235° and from 15° to 45°. The sectors turn with the vane offset. Without it, OpenWindAxis finds 175° and 350°, close to the 185° and 345° of figure 45 of 2019. The flag does not correct the wind: it takes the shaded anemometer out of the analysis in that sector, and the other one covers the sector.

The tower shading window by detected pattern on the 30 m pair, with the shaded sectors and the generated rules
Figure 22: the shading sectors of the 30 m pair, with the offset applied.

After OpenWindAxis: the map in Openwind

The 2019 report went on in Openwind. A Wind Map layer was calculated from the reanalyses, with the roughness and elevation maps, and adjusted to the masts through each mast's exported file. The speed maps went out as TIF to QGIS, and the gridded wind roses came from fake masts. OpenWindAxis delivers each mast's file, and the map is still Openwind's job, as in 2019.

OpenWindAxis is an independent implementation, with no affiliation to UL Solutions, and may give values different from Windographer's. Windographer is a product of UL Solutions.

← All posts