handle multiple input files

now handles multiple inputs of timeseries files with the same mask