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)#

Methods

__init__(env, ds[, vrt])

close()

Acquire the lock, then close the dataset

read(window, **kwargs)

Acquire the lock, then read from the dataset