Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • kadlu kadlu
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 17
    • Issues 17
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • public_projects
  • kadlukadlu
  • Issues
  • #18

Closed
Open
Created Jan 15, 2020 by Oliver Kirsebom@kirsebomOwner

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
Assignee
Assign to
Time tracking