Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scaling spectral-line boundary (dfsu) with different scaling for each point along the boundary #777

Open
JeppeMathiasen opened this issue Jan 20, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@JeppeMathiasen
Copy link

I am at the moment trying to scale a spectral-line boundary (dfsu-format) for a SW model with different scaling for each point along the boundary. This is going to be used for a climate assessment study, to propagate the "future" waves, to help Port of Brisbane with their operability assessment.
I tried to use the mikeio.generic function to do the scaling, but it scales all points along the boundary with the same scaling. Furthermore, I need to do the scaling for each point differently for each month. The scaling of different months I could do by using the generic.extract and create each month as its individual .dfsu file and then return them all to one file with generic.concat. However, I still cannot scale the boundary points along the line differently.

Hope you guys can help me out!
Have a great day!

Cheers,
Jeppe

@jsmariegaard jsmariegaard added the enhancement New feature or request label Jan 24, 2025
@jsmariegaard
Copy link
Member

Hi @JeppeMathiasen , it sounds like a very relevant use case. Unfortunately, I don't see a way to achieve this with the current version of MIKE Core as it does not support writing dfsu-spectra files. But that could be made of course... The https://github.com/DHI/mikecore-python/blob/master/mikecore/DfsuBuilder.py needs to extended with the spectra information similar to the read part of https://github.com/DHI/mikecore-python/blob/master/mikecore/DfsuFile.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants