stackstac.rio_reader.AutoParallelRioReader

class stackstac.rio_reader.AutoParallelRioReader(*, url, spec, resampling, dtype, fill_value, rescale, gdal_env=None, errors_as_nodata=())

rasterio-based Reader that picks the appropriate concurrency mechanism after opening the file.

After opening the url and seeing which GDAL driver it uses, it’ll use ThreadLocalRioDataset (full concurrency, but higher memory usage) if the driver is in MULTITHREADED_DRIVER_ALLOWLIST, otherwise SingleThreadedRioDataset for non-thread-safe drivers.

__init__(*, url, spec, resampling, dtype, fill_value, rescale, gdal_env=None, errors_as_nodata=())

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

Methods

__init__(*, url, spec, resampling, dtype, …)

Initialize self.

close()

rtype

None

read(window, **kwargs)

rtype

np.ndarray

Attributes

dataset