brightwind-dev / brightwind

Python library containing wind analysis functions
MIT License
50 stars 18 forks source link

IEA Task 43 - Digital WRA Data Standard #391

Open geekwg opened 1 year ago

geekwg commented 1 year ago

Hi,

I recently came across _IEA Wind Task 43 - Digital WRA Data Standard_, a data model being adopted in the wind industry as standard. Also, to my excitement in the release notes of version 2.0.0 of brightwind package, I found that this WRA data model has been incorporated (see the screenshot below).

image

The data model can definitely make the WRA process more efficient and reproducible and its incorporation in such a useful library like brightwind can make the process more automated. However, so far I have not been able to find a function or API in the brightwind package with which the data model can be applied to the WRA data. Can you please guide how is the data model incorporated in the brightwind package or which purpose does this incorporation serve.

Thank you.

@BiancaMorandi @stephenholleran

stephenholleran commented 1 year ago

Hi @geekwg,

Thanks for the question!

Yes, you are correct that this is not clear. It is actually within the MeasurementStation class.

import brightwind as bw

# set the filepath to your data model file or use the one in the demo datasets
wra_data_model = bw.demo_datasets.demo_wra_data_model

# load it into a Measurement Station
mm1 = bw.MeasurementStation(wra_data_model)

# then you can start pulling out the info. Below are just some of the functions available.
mm1.get_table()
mm1.lat
mm1.long
mm1.name

mm1.header.get_table()

mm1.logger_main_configs.get_table(True)

mm1.measurements.get_table()
mm1.measurements.get_heights()
mm1.measurements.wspd_names
mm1.measurements.wspd_heights

Then if you load in the matching timeseries data you can do some data processing automatically.

data = bw.load_csv(bw.demo_datasets.demo_data)

bw.apply_wspd_slope_offset_adj(data, mm1.measurements, inplace=True)

Just to let you know we are doing lots of work and pushing to the dev branch. In the next few weeks we will be merging all the work we have done into the master branch and releasing a new version.

Thanks,

cc @BiancaMorandi

geekwg commented 1 year ago

Hi @stephenholleran,

Thank you for replying and updating me about the upcoming release.

I see that in the demo dataset bw.demo_datasets.demo_wra_data_model, WRA data model is already implemented.

Is there any data processing function available in the Brightwind package which processes the data and transforms it to WRA model . Later using the MeasurementStation(wra_data_model_transformed_data) to utilize it.

Thank you.

cc @BiancaMorandi

stephenholleran commented 1 year ago

Hi @geekwg ,

If you mean a process to actually create the WRA Data Model in the first place, then no there isn't unfortunately. It is a process that is not straight forward. At the moment, parsing a logger data file can fill out a lot of the information required but a person then needs to add in a little extra. On the Task 43 GitHub repo there is a form app which can populate a data model but it is tedious.

We are currently working on this problem with our BrightHub wind resource data management platform. We have a process built which can read in logger files to help populate the data model and provide feedback to the user to help them fill in the missing info. We are still testing it and hope to open it up to the public very soon for certain logger types. But in the meantime there are other real datasets on BrightHub that might help you which have the data model files, specifically the Grady Joinery and Castlecool masts.

Thanks,