Index: /trunk/ippTasks/detrend.norm.pro
===================================================================
--- /trunk/ippTasks/detrend.norm.pro	(revision 16517)
+++ /trunk/ippTasks/detrend.norm.pro	(revision 16518)
@@ -152,9 +152,8 @@
 
     ## generate outroot specific to this exposure (& chip)
-    sprintf outroot "%s/%s.%s.%s/%s.%s.norm.%s.%s" $WORKDIR $CAMERA $DET_TYPE $DET_ID $CAMERA $DET_TYPE $DET_ID $ITERATION
-
-    ## generate output log (NOT based on filerule?)
-    $logfile = "$outroot.log"
-    $logfile = `ipp_datapath.pl $logfile`
+    sprintf outroot "%s/%s.%s.%s/%s.%s.normstat.%s.%s" $WORKDIR $CAMERA $DET_TYPE $DET_ID $CAMERA $DET_TYPE $DET_ID $ITERATION
+
+    ## generate output log
+    $logfile = `ipp_filename.pl --filerule LOG.EXP --camera $CAMERA --basename $outroot`
 
     stdout $logfile
@@ -273,7 +272,6 @@
     sprintf outroot "%s/%s.%s.%s/%s.%s.norm.%s.%s" $WORKDIR $CAMERA $DET_TYPE $DET_ID $CAMERA $DET_TYPE $DET_ID $ITERATION
 
-    ## generate output log (NOT based on filerule?)
-    $logfile = "$outroot.log"
-    $logfile = `ipp_datapath.pl $logfile`
+    ## generate output log
+    $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot`
 
     stdout $logfile
@@ -387,9 +385,8 @@
 
     ## generate outroot specific to this exposure (& chip)
-    sprintf outroot "%s/%s.%s.%s/%s.%s.norm.%s.%s" $WORKDIR $CAMERA $DET_TYPE $DET_ID $CAMERA $DET_TYPE $DET_ID $ITERATION
+    sprintf outroot "%s/%s.%s.%s/%s.%s.normexp.%s.%s" $WORKDIR $CAMERA $DET_TYPE $DET_ID $CAMERA $DET_TYPE $DET_ID $ITERATION
 
     ## generate output log (NOT based on filerule?)
-    $logfile = "$outroot.log"
-    $logfile = `ipp_datapath.pl $logfile`
+    $logfile = `ipp_filename.pl --filerule LOG.EXP --camera $CAMERA --basename $outroot`
 
     stdout $logfile
