Skip to content

DataArrayResample.interpolate and passing kwargs #8762

Closed
@stackjohn

Description

@stackjohn

What is your issue?

The docs here state that it is possible to use polynomial interpolation when resampling.

If you try this though:

data_per_minute = ds.resample(
    valid_time="1min"
).interpolate("polynomial")

You get the following:

ValueError: order is required when method=polynomial

The docs here state that you need to pass in order, how is this possible?

If you then try:

data_per_minute = ds.resample(
    valid_time="1min"
).interpolate(kind="polynomial", order=3)

You get:

TypeError: Resample.interpolate() got an unexpected keyword argument 'order'

How can the order be specified? Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageIssue that has not been reviewed by xarray team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions