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.
| Step | Windographer (2019) | OpenWindAxis |
|---|---|---|
| Open the first file | File › Open | Arquivo › Adicionar dataset(s)… (File › Add Dataset(s)…) |
| Join the other files | File › Append | Arquivo › Anexar dados… (File › Append Data…) |
| Configure the columns and the site | Configure Data Set | Revisar › Configurar dataset… (Revise › Configure Dataset…) |
| Calculation settings | Data Set › Calculation settings | Ferramentas › Opções… (Tools › Options…) |
| Vane offset | Calibration | Revisar › Calibração… (Revise › Calibration…) |
| Main charts | Summary, Time Series, Wind Rose, Scatter Plot | Gráficos-resumo (Summary Graphs) and the Analisar (Analyze) menu |
| Flags | Flag Manually, Flag With Rules | Flag › Flag manual… (Flag Manually…), Flag por regras… (Flag With Rules…) and Tratamento passo a passo… (Step-by-Step Treatment…) |
| Analyses | Tower Distortion, Wind Shear, Wind Speed Distribution, Turbulence | Analisar › Distorção da torre, Cisalhamento do vento, Distribuição de velocidade, Turbulência (Analyze › Tower Distortion, Wind Shear, Wind Speed Distribution, Turbulence) |
| Vertical extrapolation | Revise › Vertical Extrapolation | Revisar › Extrapolação vertical… (Revise › Vertical Extrapolation…) |
| Long-term reference | Tools › Data Downloader and Compare › Measure Correlate Predict | wind download and Revisar › Ajuste de longo prazo… (Revise › Long Term Adjustments…) |
| Export to Openwind | File › Export Data › Openwind | Arquivo › Exportar dados… › Openwind (File › Export Data… › Openwind) |
| Tower shading | Flag › Flag Tower Shading | Flag › 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.

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.

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 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 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.

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.

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 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 wind rose, with the offset already applied, shows the prevailing wind from the northeast and east-northeast in the period.

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.

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.

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.

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.

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.

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.

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.

| Algorithm | k (2019) | k (OpenWindAxis) | A in m/s (2019) | A in m/s (OpenWindAxis) | R² (2019) | R² (OpenWindAxis) |
|---|---|---|---|---|---|---|
| Maximum likelihood | 2.641 | 2.641 | 4.282 | 4.283 | 0.9805 | 0.9805 |
| Least squares | 2.775 | 2.775 | 4.270 | 4.270 | 0.9861 | 0.9861 |
| WAsP | 2.722 | 2.723 | 4.312 | 4.313 | 0.9833 | 0.9833 |
| Openwind | 2.633 | 2.633 | 4.286 | 4.286 | 0.9800 | 0.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.

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.

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.

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.

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 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.

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.