yatsm.io.stack_line_readers moduleΒΆ

Helper classes for reading individual lines from stacked timeseries images

The classes, and instances of these classes, are designed to decrease the number of relatively expensive file open calls that are made unnecessarily if reading from the same files over and over. When using GDAL, for example, tests have shown that unnecessary opening and closing of images and image bands is slower compared to keeping the file reference and opening the files only once.

ivar bip_reader:
 instance of _BIPStackReader that reads from Band-Interleave-by-Pixel (BIP) images
vartype bip_reader:
 _BIPStackReader
ivar gdal_reader:
 instance of _GDALStackReader that reads from file formats supported by GDAL
vartype gdal_reader:
 _GDALStackReader