Hi,
This question is for people who have worked on Python's imdlib package.
The rasters downloaded using imdlib has the following affine transformation:
| 0.25, 0.00, 66.38|
| 0.00, 0.25, 6.38|
| 0.00, 0.00, 1.00|
If I'm not wrong, the general standard is to define the pixel height in negative with top-left bounding box coordinates as X,Y. At least, the images downloaded from GEE follow that format.
But in the array above you can see (in bold blue) that the pixel height is specified in the positive. And the bottom-left bounding box coordinates are specified (bold red).
The issue I faced with this is that when I try to calculate zonal statistics using rasterstats, the positive height becomes a problem (negative dimensions error). I changed the transformation matrix and flipped the array to be able to run zonal stats.
Want to know if there is a standard in defining affine transformation matrix and if imdlib is not using that.
Thanks!