I'm beginner to python. Each directory has two rasters named A.tiff and B.tiff. I need to subtract B.tiff from A.tiff and store the resultant file in the same directory. The directory paths are named by their date of creation(ex: /home/hash/images/20210121T123308/*A.tiff"). In a similar way I have directories created for each week from January with files A and B. Below is my example code to fetch A and B's path
import glob A_path = glob.glob("/home/hash/images/**/*A.tiff", recursive = True) B_path= glob.glob(("/home/hash/images/**/*B.tiff", recursive = True)
Note: Both the file's metadata are same.