OpenFAST / openfast_toolbox

Miscellaneous Python tools for OpenFAST
20 stars 19 forks source link

Small python script to create png from binary OpenFast output *.outb #5

Open Ninon77 opened 10 months ago

Ninon77 commented 10 months ago

Dear readers,

I have written a small Python script that creates a png file from an OpenFast binary output .outb file. A template "variable_color_list.json" can be used to define variables, colors,... I also created a batch that executes this script when an .outb file is found but no *.outb.png file exists yet...

It is useful to browse the created png files to check if the wind turbine behaves as expected.

I'm not sure how to add my code to this repository, so I created this topic. Here are the four files I uploaded - since I can't upload .py and .bat files, I renamed 2 of my files. If you are interested in testing, please rename them:

Example_CreatePng.docx to Example_CreatePng.py CreatePng.docx to CreatePng.bat

variable_color_list.json Example_CreatePng.docx CreatePng.docx 12_11_seed_03_ye0n outb

I would be pleased if this script can be useful for someone.

BR, Heike

ebranlard commented 1 month ago

Hi @Ninon77

I think you script could go into the postpro folder, something like postpro/figures.py Could you maybe create a pull request with an example python script in postpro/examples/ that reads one of the files in data/examples_files ?

Thanks a lot

Ninon77 commented 1 month ago

Hi Emmanuel,

thank you very much for your email. I have tried to upload the script and an example (it is the first time for me, so I am not sure if everything works fine).

By the way – I want to thank you for the development of “PyDatView” – it is a great tool which I use quite often 😊

BR, Heike

@.***

M.Sc. Heike von Waaden

Jörss – Blunck – Ordemann | JBO

T E

+49 40 429 292 76 @.**@.> Jörss – Blunck – Ordemann GmbH Friedrichstraße 24 D-49076 Osnabrück

www.j-b-o.dehttp://www.j-b-o.de/

@.***https://www.linkedin.com/company/j-b-o Geschäftsführer: Horst-Ulrich Ordemann, Falk Lüddecke, Frank Heitmann, Walid Al Otaibi Sitz der Gesellschaft: Kaiser-Wilhelm-Straße 50, D-20355 Hamburg • AG Hamburg: HRB 132433

Please consider the environment – only print this e-mail if absolutely necessary

Von: E. Branlard @.> Gesendet: Freitag, 11. Oktober 2024 16:32 An: OpenFAST/openfast_toolbox @.> Cc: Heike von Waaden @.>; Mention @.> Betreff: Re: [OpenFAST/openfast_toolbox] Small python script to create png from binary OpenFast output *.outb (Issue #5)

Sie erhalten nicht häufig E-Mails von @.**@.>. Erfahren Sie, warum dies wichtig isthttps://aka.ms/LearnAboutSenderIdentification

Hi @Ninon77https://github.com/Ninon77

I think you script could go into the postpro folder, something like postpro/figures.py Could you maybe create a pull request with an example python script in postpro/examples/ that reads one of the files in data/examples_files ?

Thanks a lot

— Reply to this email directly, view it on GitHubhttps://github.com/OpenFAST/openfast_toolbox/issues/5#issuecomment-2407541651, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2KVWYLKLN4KSBYZGACX6A3Z27OMHAVCNFSM6AAAAABPZBQ5CSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBXGU2DCNRVGE. You are receiving this because you were mentioned.Message ID: @.**@.>>