;+ ; NAME: ; run_mean ; PURPOSE: ; IDL main program to update final (average) files for ; corotating tomography. ; CATEGORY: ; WWW ; CALLING SEQUENCE: ; idl $pro/run_mean ; INPUTS: ; (none) ; OUTPUTS: ; (none) ; CALLED_BY: ; sync_daily_ips ; CALLS: ; vu_update_hours, forecast_ice, vu_prefix, forecast_env ; RESTRICTIONS: ; Can onLy be run on Linux. ; idl_startup.pro needs to be run. This requires that the environment ; variable IDL_STARTUP is set. ; PROCEDURE: ; This is run as part of the cron job sync_daily_ips after new ; tomography files have been created. ; ; First all hourly tomography files that are affected by the ; new tomography file are updated (by overwriting them). ; Then a number of new hourly files are created by extending ; the range of hourly to at most 3 days beyond the time of ; the new tomography file. ; MODIFICATION HISTORY: ; APR-2000, Paul Hick (UCSD/CASS) ; SEP-2002, Paul Hick (UCSD/CASS) ; Added processing of 'bb3d' files ; Added call to forecast_ice to move older files out of the way. ; JUN-2003, Paul Hick (UCSD/CASS) ; bb3d files are now called wson files. ; JUL-2004, Paul Hick (UCSD/CASS) ; Modified to process more than one type of magnetic field data. ;- nfuture = 2 npast = 2 silent = 0 rounds = 3600 kind = 'slow' nv_prefix = vu_prefix() forecast_env, kind, /magnetic, bb_prefix_slow print print vu_update_hours, kind, filter=nv_prefix, nday_future=nfuture, $ nday_past=npast, /setbad, silent=silent, rounds=rounds, /gzip print print FOR i=0,n_elements(bb_prefix_slow)-1 DO BEGIN & $ setenv, 'bb_filter='+bb_prefix_slow[i] & $ vu_update_hours, kind, filter=bb_prefix_slow[i], nday_future=nfuture, $ nday_past=npast, /setbad, silent=silent, rounds=rounds, /gzip & $ ENDFOR print print ;forecast_ice, kind, silent=silent EXIT ; Exit IDL