def set_dimension(self, name, length):
        if name in self.dimensions:
            raise ValueError('%s does not support modifying dimensions'
                             % type(self).__name__)
        self.ds.createDimension(name, length)
dataset/ETHPy150Open pydata/xarray/xarray/backends/scipy_.py/ScipyDataStore.set_dimension/original