I have now incorporated glob into the program to get the data files
from the relevant directory.