home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 340757861

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
340757861 MDU6SXNzdWUzNDA3NTc4NjE= 2284 interp over time coordinate 6153603 closed 0     2 2018-07-12T18:54:45Z 2018-07-29T06:09:41Z 2018-07-29T06:09:41Z CONTRIBUTOR      

Before I start, I'm very excited about the interp addition in 0.10.7. Great addition and thanks to @fujiisoup and @shoyer.

I see there was a bit of a discussion in the interp pull request, #2104, about interpolating over times and that it was suggested to wait for use cases. I can think of an immediate use case in my line of work. I frequently use regular gridded geophysical data (time, lat, lon), not unlike the sample tutorial air_temperature data, and the data must be interpolated to line up with corresponding satellite measurements that are irregularly spaced in lat, lon and time.

Being able to interpolate in one quick step would be fantastic. For example:

python ds = xr.tutorial.load_dataset('air_temperature') ds.interp(lat=60.5, lon=211, time='2013-01-01T03:14:37')

Problem description

Currently issues TypeError: cannot perform reduce with flexible type.

Desired Output

<xarray.Dataset> Dimensions: () Coordinates: lat float64 60.5 lon int64 211 time datetime64[ns] 2013-01-01T03:14:37 Data variables: air float64 273.5

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

Links from other tables

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