stackstac.rio_reader.SingleThreadedRioDataset

class stackstac.rio_reader.SingleThreadedRioDataset(env, ds, vrt=None)

Interface for a rasterio dataset whose driver is inherently single-threaded (like hdf5).

Concurrent reads are protected by a lock.

__init__(env, ds, vrt=None)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(env, ds[, vrt])

Initialize self.

close()

Acquire the lock, then close the dataset

read(window, **kwargs)

Acquire the lock, then read from the dataset