Open cmichelenstrofer opened 2 years ago
Below are the functions that need to be migrated from WDRT:
def steepness():
"""Calculate the breaking wave steepness curve to be plotted in a
Hs-Tp plot.
Can be used to modify calculated contours by setting the contour
Hs values to the breaking value if the contour Hs is larger than
the breaking Hs for any given period.
"""
raise NotImplementedError()
def outside_points():
"""Return the (buoy) points outside a specific contour. """
raise NotImplementedError()
def contour_integrator():
"""Calculate the area enclosed by a contour. """
raise NotImplementedError()
def bootstrap():
"""Add confidence intervals (e.g. 95%) to calculated contours. """
raise NotImplementedError()
def data_contour():
"""Create a contour around the data. """
raise NotImplementedError()
def steepness():
"""Calculate the breaking wave steepness curve to be plotted in a
Hs-Tp plot.
Can be used to modify calculated contours by setting the contour
Hs values to the breaking value if the contour Hs is larger than
the breaking Hs for any given period.
"""
raise NotImplementedError()
def outside_points():
"""Return the (buoy) points outside a specific contour. """
raise NotImplementedError()
def contour_integrator():
"""Calculate the area enclosed by a contour. """
raise NotImplementedError()
def bootstrap():
"""Add confidence intervals (e.g. 95%) to calculated contours. """
raise NotImplementedError()
def data_contour():
"""Create a contour around the data. """
raise NotImplementedError()
There are some functions in WDRT left to migrate into MHKiT.
Task: Migrate missing functionalities from WDRT Contours. I added place holder functions for these in
waves.contours
. This include calculating steepness curve and modifying contours appropriately, adding confidence intervals on the calculated contours using bootstrap, etc. These would need tests and examples too (e.g. the existing environmental contours example).