I have a drone image with no spatial reference (ungeoreferenced). I know from some calculations the coordinates of the upper left corner, and X and Y resolutions. I was able to georeference the image using Python by setting the geotransform. See example below;
ulx = 5
uly = 10
xres = 0.1
yres = -0.1
xskew = 0
yskew = 0
ulx, xres, xskew, uly, yskew, yres = gtf
raster.SetGeoTransform(gtf)
The above code placed the image in its approximate location. Then I noticed that the image is supposed to be rotated (about 120 degrees). I tried to set the x and y skew to 120
ulx = 5
uly = 10
xres = 0.1
yres = -0.1
xskew = 120
yskew = 120
ulx, xres, xskew, uly, yskew, yres = gtf
raster.SetGeoTransform(gtf)
This takes the image away from its location and the pixels are extremely larger. What went wrong and how to fix it?