html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue
https://github.com/pydata/xarray/issues/3299#issuecomment-530242012,https://api.github.com/repos/pydata/xarray/issues/3299,530242012,MDEyOklzc3VlQ29tbWVudDUzMDI0MjAxMg==,3460034,2019-09-11T06:32:44Z,2019-09-11T20:47:29Z,CONTRIBUTOR,"Based on your input and expected result, I would guess that you are looking to regrid your data from the x/y curvilinear grid of your GRIB weather data to a new rectilinear (lon/lat) grid?
If so, I would suggest using xESMF ([example here](https://xesmf.readthedocs.io/en/latest/notebooks/Curvilinear_grid.html)), since [xarray itself does not appear to support this type of interpolation yet](https://github.com/pydata/xarray/issues/2281). As an example, given the dimension names you currently have and expect in the output, your code could look something like the following:
```python
import xesmf as xe
# ...load data...
ds_xy_grid = ds_xy_grid.rename(latitude='lat', longitude='lon')
ds_out = xr.Dataset({'lat': (['lat'], np.linspace(44.77, 56.14, 421)),
'lon': (['lon'], np.linspace(2.976, 19.84, 461)})
regridder = xe.Regridder(ds_xy_grid, ds_out, 'bilinear')
ds_lonlat_grid = regridder(ds_xy_grid)
ds_lonlat_grid = ds_lonlat_grid.rename(lat='latitude', lon='longitude')
```
(updated as per comment below)","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,491719758