You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having trouble writing multiple BLOCK commands for the SWAN INPUT file using the current output.py in rompy/swan/components. I would like to be able to create multiple BLOCK commands and combine them using another class that can handle multiple blocks, similar to the CURVES as below:
block1 = BLOCK(
sname="COMPGRID",
fname="./output-grid1.nc",
output=["hsign", "dir"],
)
block2 = BLOCK(
sname="BOTTGRID",
fname="./output-grid2.nc",
output=["watlev"],
)
blocks = BLOCKS(blocks=[block1, block2])
print(blocks.cmd())
Questions
Is there a current way to achieve this functionality that I'm overlooking?
If not, could this feature be added to the rompy package?
Are there any plans to extend the SWAN output functionality in rompy to handle such instances with lists?
The text was updated successfully, but these errors were encountered:
@alsonathif sorry I missed this issue. I'll have a look at this, if multiple block commands isn't supported it won't be difficult to implement it. I'll look into this soon and get back to you.
I am having trouble writing multiple BLOCK commands for the SWAN INPUT file using the current output.py in rompy/swan/components. I would like to be able to create multiple BLOCK commands and combine them using another class that can handle multiple blocks, similar to the CURVES as below:
block1 = BLOCK(
sname="COMPGRID",
fname="./output-grid1.nc",
output=["hsign", "dir"],
)
block2 = BLOCK(
sname="BOTTGRID",
fname="./output-grid2.nc",
output=["watlev"],
)
blocks = BLOCKS(blocks=[block1, block2])
print(blocks.cmd())
Questions
Is there a current way to achieve this functionality that I'm overlooking?
If not, could this feature be added to the rompy package?
Are there any plans to extend the SWAN output functionality in rompy to handle such instances with lists?
The text was updated successfully, but these errors were encountered: