You are here

RDFS deployment at LNEC

In the rdfs account's cron file are the commands used to prepare, launch, and clean up the forecast.

As user 'rdfs' run 'crontab -l' to get a listing of the contents of the crontab file:

########## aveiro ####################
10 0 * * * /home/rdfs/forecasts/aveiro/bin/simlink.pl /home/rdfs/forecasts/aveiro > /home/rdfs/forecasts/aveiro/log/simlink.pl.out 2>&1
0 10 * * * /home/rdfs/forecasts/aveiro/bin/prep.pl /home/rdfs/forecasts/aveiro 90 > /home/rdfs/forecasts/aveiro/tomorrow/log/prep.pl.out 2>&1
0 11 * * * /home/rdfs/forecasts/aveiro/bin/checkinputs.pl /home/rdfs/forecasts/aveiro > /home/rdfs/forecasts/aveiro/tomorrow/log/checkinputs.pl.out 2>&1
15 18 * * * /home/rdfs/forecasts/aveiro/bin/start.pl /home/rdfs/forecasts/aveiro/ > /home/rdfs/forecasts/aveiro/tomorrow/log/start.pl.out 2>&1
# cleanup data older than 18 days.
40 22 * * * find /home/rdfs/forecasts/aveiro -name '?_????.6?' -mtime +18 -exec /bin/rm {} \; -ls > /home/rdfs/forecasts/aveiro/cleanup.log 2>&1
########## aveiro ####################

* simlink.pl: creates the directory for the next day's forecasts and the today, tomorrow, yesterday links. Runs just after midnight local time.

* prep.pl: gathers forcings, makes links to or copies atmospheric forcings to the run directory - to deploy this script fro another forecast modifications will most likely be needed to adjust for model differences.

* checkinputs.pl: check inputs such as atmospheric forcings, nudging files, *.th files to make sure all is OK. - to deploy this script for another forecast modifications will most likely be needed to adjust for model differences.

* start.pl: Start the execution of the forecast - to deploy this script for another forecast modifications will most likely be needed to adjust for model differences.

The last executable line in the crontab file is the clean up command, in this case is a simple 'find' and delete but a script can be put here to take other actions.

There is a daemon called 'master_process.pl' that runs all the time to process model output results, isolines, model/data comparison plots, transects, etc. Run 'ps auxwww | grep master_process' to locate this process.

rdfs 12776 0.0 0.2 89248 4256 ? Ss 2009 0:46 /usr/bin/perl -w ./master_process.pl /home/rdfs/forecasts/aveiro aveiro

'master_process.pl' is found in the forecast 'bin' directory.

To deploy a new forecast use the aveiro forecast as a prototype. The aveiro directory structure looks like:

/home/rdfs/forecasts
aveiro
bin
log
reference
stationplot_scripts