McIDAS-XCD Administrator's Guide
Version 2011.1

[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]


xcdscour

Unix command for deleting real-time GRIB1, GRIB2, or BUFR files, and their associated database entries.


Formats

xcdscour GRIB numdays
xcdscour BUFR numdays


Parameters

GRIB

deletes GRIB1 and GRIB2 files

BUFR

deletes BUFR files

numdays

number of days of real-time data to store online; the range is 1 to 9 (no default)


Remarks

The xcdscour command is used to maintain the real-time GRIB1, GRIB2, and BUFR files by deleting all but the numdays most recent files. If xcdscour is not run, GRIB1, GRIB2, and BUFR data files will not be removed and will continue to accumulate and use disk space.

If the GRIB decoder is configured to use a MySQL database the corresponding entries will be removed and the database will be optimized before the data files are removed.

SSEC recommends scheduling xcdscour to run at a time when the load on the -XCD workstation is low because the MySQL database cleaning and optimizing step can cause data access delays while it is running.


Example

5 1 * * * /home/oper/mcidas/bin/xcdscour GRIB 3 /data/grib

This entry creates a cron job that, at 1:05 a.m. local machine time, removes any GRIB1 and GRIB2 files in the /data/grib directory from more than three days ago. Data from the current day as well as three full previous days is retained.


[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]