Skip to content

Conversation

@jtgrasb
Copy link
Contributor

@jtgrasb jtgrasb commented May 2, 2023

This PR adds a function to BEMIO to allow the h5 file to be read in as a hydro structure. This allows the hydro data in an h5 file to be plotted even without access to the BEM files that it was read from. A couple lines were added to writeBEMIO to make sure all the hydro data was written to the h5 file, and this lead to small additions to rm3.h5 and oswec.h5. This also adds an example to compareBEMIO.m to show how the h5file can be read into a hydro data structure.

@akeeste akeeste added the BEM/BEMIO related to BEMIO or BEM hydro data label May 3, 2023
@akeeste akeeste requested a review from nathanmtom May 3, 2023 14:48
Copy link

@nathanmtom nathanmtom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jtgrasb Thanks for building this function to allow a user to quickly check their hydrodynamic coefficients without re-running the full BEMIO script. I approve this PR.

One note, is that when looking at the plots for the comparison you added in compareBEMIO.m, it is hard to tell there are four lines because the line style is solid. I am not requesting this as part of this PR, but potentially a nice change would be to update the linestyles for each new line in the formatPlot.m.

@nathanmtom
Copy link

Thanks for creating this function and updating the writeBEMIOh5.m to reflect other values that should be stored in the .h5. I'll merge this shortly.

@nathanmtom nathanmtom merged commit 60ef1d2 into WEC-Sim:dev May 5, 2023
@jtgrasb jtgrasb deleted the readH5 branch October 18, 2023 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BEM/BEMIO related to BEMIO or BEM hydro data

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants