(shape, frac_nan, chunks)
| 6 | |
| 7 | |
| 8 | def make_bench_data(shape, frac_nan, chunks): |
| 9 | vals = randn(shape, frac_nan) |
| 10 | coords = {"time": pd.date_range("2000-01-01", freq="D", periods=shape[0])} |
| 11 | da = xr.DataArray(vals, dims=("time", "x", "y"), coords=coords) |
| 12 | |
| 13 | if chunks is not None: |
| 14 | da = da.chunk(chunks) |
| 15 | |
| 16 | return da |
| 17 | |
| 18 | |
| 19 | class DataArrayMissingInterpolateNA: |