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/486#issuecomment-550239231,https://api.github.com/repos/pydata/xarray/issues/486,550239231,MDEyOklzc3VlQ29tbWVudDU1MDIzOTIzMQ==,26384082,2019-11-06T10:06:56Z,2019-11-06T10:06:56Z,NONE,"In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity
If this issue remains relevant, please comment here or remove the `stale` label; otherwise it will be marked as closed automatically
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-349582067,https://api.github.com/repos/pydata/xarray/issues/486,349582067,MDEyOklzc3VlQ29tbWVudDM0OTU4MjA2Nw==,167802,2017-12-06T09:24:16Z,2017-12-06T09:24:16Z,CONTRIBUTOR,"@shoyer absolutely, I will look into it, soon I hope","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-349016244,https://api.github.com/repos/pydata/xarray/issues/486,349016244,MDEyOklzc3VlQ29tbWVudDM0OTAxNjI0NA==,1217238,2017-12-04T16:27:51Z,2017-12-04T16:27:51Z,MEMBER,"For nearest-neighbor style resampling, we already have support for 1-dimensional resampling in `.reindex()`/`.sel()`. It would feel pretty natural to add support for N-dimensional resampling, too, if those lookups can use an index of some sort (i.e., a KDTree) to do things efficiently.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-348910192,https://api.github.com/repos/pydata/xarray/issues/486,348910192,MDEyOklzc3VlQ29tbWVudDM0ODkxMDE5Mg==,167802,2017-12-04T09:43:02Z,2017-12-04T09:43:02Z,CONTRIBUTOR,"@jhamman One possibility would be to have a `.resample` on a DataArray (or equivalent independent function) that would be provided also a set of new coordinates, and that would return a new DataArray resampled to the new coordinates. One step further would be to implement this in `sel` or `isel` directly somehow.","{""total_count"": 3, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 3, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-348556569,https://api.github.com/repos/pydata/xarray/issues/486,348556569,MDEyOklzc3VlQ29tbWVudDM0ODU1NjU2OQ==,2443309,2017-12-01T17:28:13Z,2017-12-01T17:28:13Z,MEMBER,@mraspaud - What functionality are you interested in bringing over? I've been watching pyresample for a while and would love to see our two packages leverage each other's functionality (where possible).,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-348165798,https://api.github.com/repos/pydata/xarray/issues/486,348165798,MDEyOklzc3VlQ29tbWVudDM0ODE2NTc5OA==,167802,2017-11-30T11:47:06Z,2017-11-30T11:47:06Z,CONTRIBUTOR,thanks @shoyer ,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-348163073,https://api.github.com/repos/pydata/xarray/issues/486,348163073,MDEyOklzc3VlQ29tbWVudDM0ODE2MzA3Mw==,1217238,2017-11-30T11:34:19Z,2017-11-30T11:34:19Z,MEMBER,@mraspaud of pyresample expressed interest to me offline about bringing some of pyresample's resampling features into xarray -- welcome to the conversation!,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-325717752,https://api.github.com/repos/pydata/xarray/issues/486,325717752,MDEyOklzc3VlQ29tbWVudDMyNTcxNzc1Mg==,25473287,2017-08-29T16:23:07Z,2017-11-09T02:10:28Z,NONE,"I've wrapped ESMF/ESMPy by xarray: https://github.com/JiaweiZhuang/xESMF
It supports remapping between arbitrary quadrilateral grids, using ESMF's regridding algorithms including bilinear, conservative, nearest neighbour, etc... See [this notebook](https://github.com/JiaweiZhuang/xESMF/blob/master/examples/illustration_highlevel.ipynb) for an example.
The package is still preliminary but **it already works**. See ""Issues & Plans"" in the main page for more details.","{""total_count"": 7, ""+1"": 7, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-343024897,https://api.github.com/repos/pydata/xarray/issues/486,343024897,MDEyOklzc3VlQ29tbWVudDM0MzAyNDg5Nw==,25473287,2017-11-09T02:09:13Z,2017-11-09T02:09:13Z,NONE,I am thinking about the API design for xESMF (JiaweiZhuang/xESMF#9). Any comments are welcome 😃,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-325999424,https://api.github.com/repos/pydata/xarray/issues/486,325999424,MDEyOklzc3VlQ29tbWVudDMyNTk5OTQyNA==,950575,2017-08-30T14:00:26Z,2017-08-30T14:00:26Z,CONTRIBUTOR,@JiaweiZhuang let's discuss that in the feedstock issue tracker to avoid cluttering xarray's.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-325998681,https://api.github.com/repos/pydata/xarray/issues/486,325998681,MDEyOklzc3VlQ29tbWVudDMyNTk5ODY4MQ==,25473287,2017-08-30T13:58:00Z,2017-08-30T13:58:00Z,NONE,@ocefpaf Any plan for Python3-compatible ESMPy? I only see Python2.7 here: https://github.com/conda-forge/esmpy-feedstock,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-325974604,https://api.github.com/repos/pydata/xarray/issues/486,325974604,MDEyOklzc3VlQ29tbWVudDMyNTk3NDYwNA==,4992424,2017-08-30T12:26:07Z,2017-08-30T12:26:07Z,NONE,"@ocefpaf Awesome, good to know that hurdle has already been leaped :)","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-325973754,https://api.github.com/repos/pydata/xarray/issues/486,325973754,MDEyOklzc3VlQ29tbWVudDMyNTk3Mzc1NA==,950575,2017-08-30T12:22:13Z,2017-08-30T12:22:13Z,CONTRIBUTOR,"> then some effort needs to be made to build conda recipes and other infrastructure for distributing and building the platform.
Like https://github.com/conda-forge/esmf-feedstock :wink:
(Windows is still a problem b/c of the `Fortran` compiler.)","{""total_count"": 3, ""+1"": 3, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-325969302,https://api.github.com/repos/pydata/xarray/issues/486,325969302,MDEyOklzc3VlQ29tbWVudDMyNTk2OTMwMg==,4992424,2017-08-30T12:01:29Z,2017-08-30T12:01:29Z,NONE,"If ESMF is the way to go, then some effort needs to be made to build conda recipes and other infrastructure for distributing and building the platform. It's a heavy dependency to haul around.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-325861556,https://api.github.com/repos/pydata/xarray/issues/486,325861556,MDEyOklzc3VlQ29tbWVudDMyNTg2MTU1Ng==,25473287,2017-08-30T02:36:08Z,2017-08-30T03:25:43Z,NONE,"@rabernat Thanks for the suggestion! I'll add tests&docs when time allows.
If you want to look into details: The package contains the two layers (explained in the ""Design Idea"" section). The first layer has nothing to do with xarray, but just provides a convenient way (only with numpy) to access a useful subset of ESMPy functions. This layer is important because ESMPy's API is too complicated, but once it is done it doesn't need to be changed too often. The second layer wraps the first layer using xarray. Most of the crafts will be added to the second layer.
As a temporary workaround, I've added [another notebook](https://github.com/JiaweiZhuang/xESMF/blob/master/illustration_lowlevel.ipynb) for using the low-level wrapper, for interested developers.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-325724614,https://api.github.com/repos/pydata/xarray/issues/486,325724614,MDEyOklzc3VlQ29tbWVudDMyNTcyNDYxNA==,703722,2017-08-29T16:47:37Z,2017-08-29T16:47:37Z,NONE,"Super cool, thanks!","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-325723036,https://api.github.com/repos/pydata/xarray/issues/486,325723036,MDEyOklzc3VlQ29tbWVudDMyNTcyMzAzNg==,1197350,2017-08-29T16:42:07Z,2017-08-29T16:42:07Z,MEMBER,Awesome work @JiaweiZhuang! This could be a great way forward for this important need. I think lots of us would be keen to contribute to your project. I encourage you to add tests and docs...that will help other contributors feel comfortable getting involved.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-305114655,https://api.github.com/repos/pydata/xarray/issues/486,305114655,MDEyOklzc3VlQ29tbWVudDMwNTExNDY1NQ==,206773,2017-05-31T07:56:43Z,2017-05-31T07:56:43Z,NONE,"@PeterDSteinberg please have a look at module `gridtools.resampling` of repo https://github.com/CAB-LAB/gridtools. There are various up- and downsampling methods, which can deal with NaNs, and which are fast as C thanks to JIT through Numba. We use this package successfully in two projects.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-305033710,https://api.github.com/repos/pydata/xarray/issues/486,305033710,MDEyOklzc3VlQ29tbWVudDMwNTAzMzcxMA==,1445602,2017-05-30T23:05:49Z,2017-05-30T23:05:49Z,NONE,Regridding is of interest to NASA and other clients of ours. It is important to them to be able to do broadcast operations between rasters that differ in resolution or are otherwise offset. We'll follow the XMap repo mentioned above ( @jhamman ) and see about building on that style. Our clients and open source tools like datashader for viz and [elm](https://github.com/ContinuumIO/elm) for ML could use XMap and benefit from coordinate transformations and regridding. We have a meeting internally to discuss approaches to the coordinates' metadata and resampling / regridding and I'll be in touch further soon about how we can help here (see also the issues on this experimental [earthio repo](https://github.com/ContinuumIO/earthio)).,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-291953242,https://api.github.com/repos/pydata/xarray/issues/486,291953242,MDEyOklzc3VlQ29tbWVudDI5MTk1MzI0Mg==,3169620,2017-04-05T18:29:33Z,2017-04-05T18:29:53Z,CONTRIBUTOR,"@jhamman @godfrey4000 - I'm not sure of the status of this, but I'm the lead developer on a package called [CIS](https://github.com/cedadev/cis) which might be useful/relevant.
It was designed as a command line tool to allow easy collocation (resampling) between different model and observation datasets, but is now also a Python library. We spent a fair amount of time thinking about the various permutations and you can see some of the details in our paper [here](http://www.geosci-model-dev.net/9/3093/2016/). Internally we currently use [Iris](https://github.com/scitools/iris) Cube-like objects but it would be pretty easy to operate on xarray Datasets since they share a similar design.
The basic syntax is:
```
from CIS import read_data
X = read_data('some_obs_data.nc')
Y = read_data('some_other_data.nc')
X.sampled_from(Y)
# or...
Y.collocated_onto(X)
```
Happy to discuss further here, or in `xmap`.","{""total_count"": 5, ""+1"": 5, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-272585787,https://api.github.com/repos/pydata/xarray/issues/486,272585787,MDEyOklzc3VlQ29tbWVudDI3MjU4NTc4Nw==,1217238,2017-01-14T00:43:35Z,2017-01-14T00:43:35Z,MEMBER,"> Is there a style guide that I can/should follow? Something like this: https://google.github.io/styleguide/pyguide.html? Does it or something else define naming conventions?
It's pretty standard to follow Python's PEP8 with NumPy-style docstrings.
I generally like the Google style guide, too, but it leans towards being overly strict -- sometimes it's OK to be more relaxed (e.g., it's rules for valid `import` statements). Also, the public facing version has gotten out of date (I think there are plans to update it).","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-272582585,https://api.github.com/repos/pydata/xarray/issues/486,272582585,MDEyOklzc3VlQ29tbWVudDI3MjU4MjU4NQ==,18623439,2017-01-14T00:17:05Z,2017-01-14T00:17:05Z,NONE,"I'm ready to start working on this project. I already have a prototype regridding class that I developed as part of another project. Working on that, I discovered these points:
- regridding takes a long time because the lattices can be huge
- the design should accomodate parallel processing on a cluster
- data needs to be normalized first (deal with missing values, etc.)
- the user will want choices
Some of these choices are:
- the destination lattice
- the interpolation algorithm
- subset of the dimension space
Â
As the first step in a strategy to achieve this with a sequence of realizable goals, I plan to implement a regridding of just the latitude and longitude dimensions.
Is there a style guide that I can/should follow? Something like this: https://google.github.io/styleguide/pyguide.html? Does it or something else define naming conventions?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-271682285,https://api.github.com/repos/pydata/xarray/issues/486,271682285,MDEyOklzc3VlQ29tbWVudDI3MTY4MjI4NQ==,2443309,2017-01-10T20:03:19Z,2017-01-10T20:03:19Z,MEMBER,"@rabernat - I've more or less settled that this belongs in a separate package that uses xarray's [accessor](http://xarray.pydata.org/en/stable/internals.html#extending-xarray) features.
I've setup a little project (`xmap`) to get this started that I hope we can garner some volunteers to help push forward (nudge @godfrey4000 and @forman): https://github.com/jhamman/xmap
There will likely be some overlap between features that `xmap` and `xarray`. In those cases, we can try to push relevant features toward `xarray`. ","{""total_count"": 5, ""+1"": 5, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-271597986,https://api.github.com/repos/pydata/xarray/issues/486,271597986,MDEyOklzc3VlQ29tbWVudDI3MTU5Nzk4Ng==,1197350,2017-01-10T15:02:40Z,2017-01-10T15:02:40Z,MEMBER,"@godfrey4000: lots of us in the climate community would like xarray-backed regridding. It is a hard problem, however. It wold be great if you wanted to work on it.
At a recent workshop, a group of xarray users developed a draft design document for a regridding package.
https://aospy.hackpad.com/Regridding-Design-Document-tENJARIeg83
Your comments on this would be very welcome. An open question is whether the regridding belongs within xarray or in a standalone package (which would of course have xarray as a dependency).","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-271447717,https://api.github.com/repos/pydata/xarray/issues/486,271447717,MDEyOklzc3VlQ29tbWVudDI3MTQ0NzcxNw==,18623439,2017-01-10T00:07:16Z,2017-01-10T00:07:16Z,NONE,"I have an immediate need in this area. My objective is to create a tool that will enable arithmetic on variables defined on lattices whose points don't coincide. Through my attempts thus far, it has become clear that I need data structures that incorporate spacial indexing and lattice indexing.
Since I have to tackle this issue to proceed, I thought I should follow the thinking discussed in this forum, so that it may be useful to others.
","{""total_count"": 4, ""+1"": 4, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-207539263,https://api.github.com/repos/pydata/xarray/issues/486,207539263,MDEyOklzc3VlQ29tbWVudDIwNzUzOTI2Mw==,1197350,2016-04-08T18:02:07Z,2016-04-08T18:02:07Z,MEMBER,"I feel like the biggest application of the multi-dimensional groupby will be with ""conservative resampling"" and coarse-graining, where you want to make sure to conserve certain integrals (e.g. total heat content) while changing coordinates.
pyresample will be more useful for fine-graining and interpolating missing data.
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-207529535,https://api.github.com/repos/pydata/xarray/issues/486,207529535,MDEyOklzc3VlQ29tbWVudDIwNzUyOTUzNQ==,2443309,2016-04-08T17:34:37Z,2016-04-08T17:34:37Z,MEMBER,"@forman - no progress on my end and no plans to work on this in the next 6 months. If your team is interested in working on this, we can discuss the api further and I'm happy to provide input and guidance along the way. One option is to wrap `pyresample` and possibly fill in some of the missing pieces in their api. I'd like to see a user interface that looks something like this:
``` python
da.resample_like(other, kind='bilinear', dims=('lat', 'lon'))
```
As @rabernat mentions, for some remapping/resampling, the multi-dimensional groupby will help with some of these applications.
","{""total_count"": 3, ""+1"": 3, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-123413440,https://api.github.com/repos/pydata/xarray/issues/486,123413440,MDEyOklzc3VlQ29tbWVudDEyMzQxMzQ0MA==,2443309,2015-07-21T17:45:51Z,2016-04-08T17:22:48Z,MEMBER,"I'd be interested in helping build a wrapper / api that supports the following types of regridding operations. I don't think pyresample handles all of these:
1. Bilinear interpolation
2. Bicubic interpolation
3. Distance-weighted average remapping
4. Nearest neighbor remapping
5. Conservative (area) remapping
6. Largest area fraction remapping
I would also like to see some better support for 2D coordinate variables. These are specifically outlined in the [cf-conventions](http://cfconventions.org/Data/cf-conventions/cf-conventions-1.6/build/cf-conventions.html#coordinate-types) in section: _5.2. Two-Dimensional Latitude, Longitude, Coordinate Variables_. Maybe we can open an additional issue for that...
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-207385461,https://api.github.com/repos/pydata/xarray/issues/486,207385461,MDEyOklzc3VlQ29tbWVudDIwNzM4NTQ2MQ==,1197350,2016-04-08T11:20:26Z,2016-04-08T11:20:26Z,MEMBER,"@forman I am starting to suspect that this might be possible to implement through #818
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-207382507,https://api.github.com/repos/pydata/xarray/issues/486,207382507,MDEyOklzc3VlQ29tbWVudDIwNzM4MjUwNw==,206773,2016-04-08T11:14:20Z,2016-04-08T11:14:20Z,NONE,"@jhamman: any progress on this? Our team would be happy to contribute as we have similar requirements in our project.
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-123405417,https://api.github.com/repos/pydata/xarray/issues/486,123405417,MDEyOklzc3VlQ29tbWVudDEyMzQwNTQxNw==,1217238,2015-07-21T17:10:34Z,2015-07-21T17:10:34Z,MEMBER,"Indeed, SciPy's `ndimage.interpolation.zoom` would probably be more appropriate (and faster) for regular grids.
Xray currently doesn't have any built-in support for handling projected data, but basic selection and regridding (from explicit arrays of 2D coordinates) seems in scope for the project.
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612
https://github.com/pydata/xarray/issues/486#issuecomment-123305768,https://api.github.com/repos/pydata/xarray/issues/486,123305768,MDEyOklzc3VlQ29tbWVudDEyMzMwNTc2OA==,1197350,2015-07-21T13:35:29Z,2015-07-21T13:36:32Z,MEMBER,"Pyresample is probably overkill for that case. Aggregating / decimating regular lat-lon grids could probably be done much more simply. For example
``` python
N = 10
fac = 2
x = np.arange(N, dtype=np.float64)
np.add.reduceat(x, np.arange(0,N,fac)) / fac
```
This gives `array([ 0.5, 2.5, 4.5, 6.5, 8.5])`
This type of resampling has the advantage of preserving certain integral invariants, as opposed to the nearest neighbor resampling in the example above. (Imagine if there had been lots of spatial variance below the 5 degree scale in that example--it would have been aliased horribly. That was only avoided because the original field was very smooth.) It is also very fast.
Pyresample seems best for complicated transformations from one map projection to another. I'm not sure I fully understand how xray handles grids where the coordinates are themselves 2d fields, as in [this example](http://earthpy.org/interpolation_between_grids_with_pyresample.html).
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,96211612