stackstac.rio_reader.AutoParallelRioReader#

class stackstac.rio_reader.AutoParallelRioReader(*, url, spec, resampling, dtype, fill_value, scale_offset, 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, scale_offset, gdal_env=None, errors_as_nodata=())#

Methods

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

close()

rtype:

None

read(window, **kwargs)

rtype:

ndarray

Attributes

dataset