IEAWindTask37 / windIO

Apache License 2.0
19 stars 11 forks source link

How to write WindIO #10

Closed James-Ilosta closed 8 months ago

James-Ilosta commented 1 year ago

Hi,

Is there a package or a set of options that I can use to open, modify and write WindIO files? I've tried using the ruamel.yaml package to modify a yaml file that has a windIO format and it changes the format of specific parameters. It transposes certain variables and renames others. For example:

grid: [0.0, 0.4, 0.8, 1.0]

becomes:

grid:

gbarter commented 1 year ago

The WindIO project really just aims to define the ontology / parameterization and not push any particular tool or workflow. If it helps, there are some python tools for the WindIO schema in WISDEM here.

For the example you showed, putting an array of numbers in brackets or sub-bullets is equivalent in yaml language, just a style thing.