wave/wind get methods in ocean module
Currently, the Ocean class only has a generic 'wave' method for getting interpolated wave/wind data with the following interface:
def wave(self, x, y, grid=False, geometry='planar'):
# method implementation ...
Instead, we want two separate methods, one for wave data and one for wind speeds. Moreover, the wave method should include an argument for specifying the type of data (height, period, direction). That is, we want something like this
def wave_data(self, x, y, data_type, grid=False, geometry='planar'):
# data_type can be either height, period, or direction
# method implementation ...
def wind_speed(self, x, y, grid=False, geometry='planar'):
# method implementation ...
Alternatively, we could create separate methods for each wave data type, like this
def wave_height(self, x, y, grid=False, geometry='planar'):
# method implementation ...
def wave_period(self, x, y, grid=False, geometry='planar'):
# method implementation ...
def wave_direction(self, x, y, grid=False, geometry='planar'):
# method implementation ...
@matt_s , do you have a preference?
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information