I need to write a function that would check the file names to what you would expect all of the files are named in a logical way.
The file names are written as: 'T_PAAH72_C_EIDB_YYYYMMDDHHmmSS.hdf'
Where YYYY is the year, MM is the month, DD is the day, HH is the hours, mm is the minutes and SS is the seconds.
For example, if the file was from today at 2pm, the file would be named:
T_PAAH72_C_EIDB_20210204140000.hdf
I have been recommend using the functions strcmp and join to do this.
Each file progresses by 5 minutes. So the next file would be:
T_PAAH72_C_EIDB_20210204140500.hdf
then
T_PAAH72_C_EIDB_20210204141000.hdf
and so on
I need to be able to use it to find any possible missing data in a set of 8000 files. e.g if a time stamp was missing from one of the days.
question from:
https://stackoverflow.com/questions/66048771/how-to-search-a-file-directory-for-missing-data-time-stamped 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…