()
| 1074 | |
| 1075 | |
| 1076 | def make_da(): |
| 1077 | da = xr.DataArray( |
| 1078 | np.ones((10, 20)), |
| 1079 | dims=["x", "y"], |
| 1080 | coords={"x": np.arange(10), "y": np.arange(100, 120)}, |
| 1081 | name="a", |
| 1082 | ).chunk({"x": 4, "y": 5}) |
| 1083 | da.x.attrs["long_name"] = "x" |
| 1084 | da.attrs["test"] = "test" |
| 1085 | da.coords["c2"] = 0.5 |
| 1086 | da.coords["ndcoord"] = da.x * 2 |
| 1087 | da.coords["cxy"] = (da.x * da.y).chunk({"x": 4, "y": 5}) |
| 1088 | |
| 1089 | return da |
| 1090 | |
| 1091 | |
| 1092 | def make_ds(): |
no test coverage detected
searching dependent graphs…