I'm looking for command line gdal or python code for cropping/extracting a rectangle from a geotiff. The code would use longitude/latitude referenced from a .RXF text file with the same file name. The resulting cropped image would be saved as a geotiff to a cropped subfolder.
I would like this code to process all the .tif files in the folder.