home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 537936090

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
537936090 MDU6SXNzdWU1Mzc5MzYwOTA= 3622 custom interpolation 34062862 closed 0     2 2019-12-14T16:43:16Z 2020-01-17T08:06:05Z 2020-01-17T08:06:04Z NONE      

I need to interpolate (wave) forces on a ship between headings and/or frequencies.

heading and frequency are both dimensions. force is a phase + amplitude pair.

What I would normally do is linear interpolation of the force amplitude and linear interpolation of the unwrapped phase. Interpolation of the amplitude works fine, but interpolation of the phase is troublesome because I can not unwrap the phases in two dimensions (heading and frequency) at the same time.

A solution that I can think of is storing the phase as a complex number, interpolate that, and then get the phase of the interpolated value. But calculating the angle (phase) from the interpolated values would be slow and it feels like a workaround rather than a good solution.

It would be great if I could pass a custom interpolation function to the interpolate method to use instead of scipy.interpolate.interp1d. But as far as I can see this is not (yet) an option.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/3622/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 2 rows from issue in issue_comments
Powered by Datasette · Queries took 0.505ms · About: xarray-datasette