Index: trunk/ippTasks/flatcorr.pro
===================================================================
--- trunk/ippTasks/flatcorr.pro	(revision 16274)
+++ trunk/ippTasks/flatcorr.pro	(revision 16298)
@@ -1,19 +1,8 @@
+## flatcorr.pro : tasks to run flat-field correction : -*- sh -*-
 ## this file contains the tasks for running the flatcorr stage
 ## these tasks use the book 'flatcorrBook'
 
-if ($?network == 0)
-  $network = 1
-end
-if ($?parallel == 0)
-  $parallel = 0
-end
-if ($?VERBOSE == 0)
-  echo "VERBOSE not defined: load pantasks.pro first"
-  break
-end
-if ($?LOGDIR == 0)
-  echo "LOGDIR not defined: load pantasks.pro first"
-  break
-end
+# test for required global variables
+check.globals
 
 $LOGSUBDIR = $LOGDIR/flatcorr
@@ -107,6 +96,6 @@
   host         local
 
-  periods      -poll $loadpoll
-  periods      -exec $loadexec
+  periods      -poll $LOADPOLL
+  periods      -exec $LOADEXEC
   periods      -timeout 60
   # trange     Hourly@00:00 Hourly@00:10
@@ -121,5 +110,5 @@
     book npages flatcorrBook -var N
     if ($N == 0) break
-    if ($network == 0) break
+    if ($NETWORK == 0) break
     
     # look for new images in flatcorrBook
@@ -140,5 +129,5 @@
     # specify choice of remote host
     # set a specific DVO host here 
-    if ($parallel)
+    if ($PARALLEL)
       host anyhost
     else
