I have the next transform (using sentinelhub functionvector that I have gotten from bbox.get_transform_vector()) with sentinelhub:
transform=bbox.get_transform_vector(10,10)
>>>
(-101.7359960059834, 10.0, 0, 20.8312118894487, 0, -10.0)
The type of this affine vector is tuple:
type(transform)
>>>tuple
I want to define this transform to be affine transform in rasterio, we.g to change it type to be affine.Affine a,so it will look like this type:
Affine((-101.7359960059834, 10.0, 0, 20.8312118894487, 0, -10.0)
meaningI haven't found any way to make my tuple (-101.7359960059834, 10.0, 0, 20.8312118894487, 0change it, -10I have tried:
#try1
Affine(transform)
#try2
affine(transform)
but obviously non of them work.0) int orasterio
I have also tried:
rasterio.transform.guard_transform(transform)
but then I get this error:
TypeError: GDAL-style transforms have been deprecated. This exception will be raised for a period of time to highlight potentially confusing errors, but will eventually be removed.
I still haven't found the way to create affine type from tuple.
How can I do that?My end goal: to get my tuple as type affine in rasterio