Skip to content
#

xarray

Here are 162 public repositories matching this topic...

xarray
TomNicholas
TomNicholas commented Jul 7, 2021

Is your feature request related to a problem? Please describe.
Sometimes you want to check that data values are present in another array, but only up to a certain tolerance.

Describe the solution you'd like
da.isin(test_values, tolerance=1e-6), where the tolerance argument is optional.

Not sure what the implementation should be but there are two vectorized [suggestions here](http

djhoese
djhoese commented Feb 22, 2021

Code Sample, a minimal, complete, and verifiable piece of code

from pyresample.boundary import Boundary
b = Boundary(my_lons, my_lats)
print(b.contour_poly.area())

Problem description

The above code doesn't fail if the provided lons/lats are 2D (not sure on 3D+), but the class and all functions/utilities underneath it assume 1D arrays. The end results are incor

climpred
aaronspring
aaronspring commented Jul 21, 2021

Is your feature request related to a problem? Please describe.
I'd like to use all metadata available using https://cf-xarray.readthedocs.io/en/latest/generated/xarray.DataArray.cf.add_canonical_attributes.html#xarray.DataArray.cf.add_canonical_attributes.

Describe the solution you'd like
happens automatic upon instantiation of PredictionEnsemble

**Describe alternatives you've co

RichardScottOZ
RichardScottOZ commented Mar 25, 2021

Without thinking I put resampling="bilinear" and got an error when I called .compute()

Traceback (most recent call last):
  File "carajas.py", line 92, in <module>
    band_medianNP = band_median.compute()
  File "/home/ubuntu/anaconda3/envs/richard/lib/python3.8/site-packages/xarray/core/dataarray.py", line 899, in compute
    return new.load(**kwargs)
  File "/home/ubuntu/anaco

Improve this page

Add a description, image, and links to the xarray topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the xarray topic, visit your repo's landing page and select "manage topics."

Learn more