Viewing

check_files

Purpose
check whether all required files in a date range are in a certain directory
Call
cfu check_files <ystartdate> <yenddate> <hh:mm:ss> <prefix12> <prefix2> <suffix><input directory> <last output> [<itype_calendar>]
Result
0=success, 1=error. In case of error the file check_files.log contains the names of the missing files. The file check_files.log is written to the directory where the program check_files is called.
Meanings
ystartdate
has the form YYYYMMDDHH[mmss]
 
yenddate
has the form YYYYMMDDHH[mmss]
 
hh:mm:ss
is the time increment of the files in the date range
 
prefix1
is the primary prefix to be checked (e.g. caf, laf, …), i.e. the characters preceding the YYYYMMDDHH[mmss] sequence.
 
prefix2
is the secondary prefix to be checked (e.g. cas, lbfd, …), if prefix1 gives errors.In case only one prefix should be checked set prefix1=prefix2.
 
suffix
is the suffix to be checked (e.g. .nc, c.nc, …), i.e. the characters following the YYYYMMDDHH[mmss] sequence.
 
last output
should be set to true T in case the yenddate should be included in the check, otherwise it should be set to false F.
 
itype_calendar
is 0 for 365 days (plus taking into account for leap years) a year and 1 for 360 days a year
 Viewing