Hi Pedja,
Thanks for asking... Based on the images that you shared seems the alignment of your rows and columns is not straight. In other words, when you correct the rotation for columns (as the example shared) you are losing the alignment for the rows.
The best approach to fix this problem is to align the field using the rows and drawing a shapefile for each row. For example following the command line below:
EX1<- mosaic # Your image
n.row<-16 # Number of rows
n.cols<-10 # Number of columns
EX1.Shape.1<-list()
for(i1 in 1:n.row){
print(i1)
EX1.Crop<- fieldCrop(mosaic = EX1) # Select and crop one row per time
EX1.Shape.1[[i1]]<-fieldShape(mosaic = EX1.Crop,
ncols = n.cols, # All columns
nrows = 1 # Only 1 row per time
)}
EX1.Shape.2<-EX1.Shape.1[[1]]$fieldShape # Combining all partial shapefiles (rows) in one complete shapefile (full)
for(i2 in 2:n.row){
EX1.Shape.2<-rbind(EX1.Shape.2,EX1.Shape.1[[i2]]$fieldShape)
}
plot(EX1.Shape.2) # Final shapefile
Hope it helps you.
Best,
Filipe