Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes #167.
ds_out
are transferred to the regridder's output (DataArray or Dataset). A "spatial coordinate" is any member ofds_out.coords
whose dimensions are a subset of those oflon
andlat
.out_coords
dict. Ifds_out
was passed as a dictionary, the conversion to xarray objects now happens in the__init__
.cf-xarray
has a way to parse those. Thus, I needed to guess their names from the data variables attributes. This means this feature is a bit limited for now, and it feels sketchy for the regridder object to inspect the data ofds_out
rather than only the coordinates. A better mechanism should wait for such a feature incf-xarray
.Other unrelated changes:
After this PR, I think we could publish v0.6.3 to fix the conda builds?