-
Notifications
You must be signed in to change notification settings - Fork 9
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
Boundary #30
Boundary #30
Conversation
…ated from rompy.swan.boundary.DataBoundary
…inheriting from BoundaryWaveStation
@@ -929,8 +929,8 @@ | |||
"source": [ | |||
"# The boundary object work in a similar way but is a little more complex as it must determine points around the boundary of the model domain.\n", | |||
"# First lets have a look at the boundary object\n", | |||
"from rompy.swan import DataBoundary\n", | |||
"DataBoundary?" | |||
"from rompy.swan import Boundnest1\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whilst the DataBoundary as an abstract class is new - I would argue that Boundnest1 is an inappropriate default boundary type for SWAN as this is mostly for nested swan simulations. Arguably most swan simulations will be nested within a global/regional model or forced with wave buoy data so BOUNDSPEC in most cases.
I have had a look, I think this all makes sense, but I wonder if the default boundary type for SWAN should be BOUNDSPEC rather than BOUNDNEST1. |
We can make The main thing with this current pull request though is the separation of the previously-defined |
@benjaminleighton would you be able to also review this and merge if happy please since you have been working with that boundary object? This implements some changes from DataBoundary. |
Hi @rafa-guedes this looks good to me. |
This pull request moves the old
rompy.swan.boundary.DataBoundary
into a new core objectrompy.core.boundary.BoundaryWaveStation
. The old swan boundary object is now calledrompy.swan.boundary.Boundnest1
and inherits fromBoundaryWaveStation
with only small changes to theget
method to create SWAN ASCII boundary files instead of netcdf.Addresses #27.