(self)
| 240 | raise NotImplementedError |
| 241 | |
| 242 | def to_dataarray(self) -> DataArray: |
| 243 | from xarray.core.dataarray import DataArray |
| 244 | |
| 245 | return DataArray( |
| 246 | data=self.data, dims=(self.name,), coords=self.coords, name=self.name |
| 247 | ) |
| 248 | |
| 249 | def to_array(self) -> DataArray: |
| 250 | """Deprecated version of to_dataarray.""" |
no test coverage detected