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 useThreadLocalRioDataset
(full concurrency, but higher memory usage) if the driver is inMULTITHREADED_DRIVER_ALLOWLIST
, otherwiseSingleThreadedRioDataset
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:
Attributes
dataset