Changeset 16195 for trunk/ippTasks/camera.pro
- Timestamp:
- Jan 22, 2008, 5:35:42 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/camera.pro (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/camera.pro
r16173 r16195 122 122 book getword camPendingExp $pageName exp_tag -var EXP_TAG 123 123 book getword camPendingExp $pageName cam_id -var CAM_ID 124 book getword camPendingExp $pageName workdir -var WORKDIR 124 book getword camPendingExp $pageName workdir -var WORKDIR_TEMPLATE 125 125 book getword camPendingExp $pageName dvodb -var DVODB 126 126 book getword camPendingExp $pageName dbname -var DBNAME … … 130 130 set.host.for.camera $camera FPA 131 131 132 # output log from filerule 133 if ("$WORKDIR" == "NULL") 134 $outpath = `pwd` 135 else 136 $outpath = `ipp_datapath.pl $WORKDIR` 137 end 138 sprintf outpath "%s/%s" $outpath $EXP_TAG 139 sprintf outroot "%s/%s.cm.%s" $outpath $EXP_TAG $CAM_ID 132 # raw workdir examples: 133 # file://data/@HOST@.0/gpc1/20080130 134 # neb:///@HOST@-vol0/gpc1/20080130 (need to supply volname?, or are we re-defining this each time?) 135 set.workdir.by.camera $CAMERA FPA $WORKDIR_TEMPLATE $default_host WORKDIR 136 # out workdir examples: 137 # file://data/ipp004.0/gpc1/20080130 138 # neb:///ipp004-vol0/gpc1/20080130 139 140 ## generate outroot specific to this exposure (& chip) 141 sprintf outroot "%s/%s/%s.cm.%s" $WORKDIR $EXP_TAG $EXP_TAG $CAM_ID 142 143 ## generate output log based on filerule (convert the URI to a PATH) 140 144 $logfile = `ipp_filename.pl --filerule LOG.EXP --camera $CAMERA --class_id NONE --basename $outroot` 141 145 if ("$logfile" == "") 142 $logfile = $outroot.log 146 echo "WARNING: logfile not defined in camera.pro:146" 147 break 143 148 end 144 149 145 150 stdout $logfile 146 151 stderr $logfile 147 exec mkdir -p $outpath148 152 149 $run = camera_exp.pl --exp_tag $EXP_TAG --cam_id $CAM_ID --camera $CAMERA 150 if ("$WORKDIR" != "NULL") 151 $run = $run --workdir $WORKDIR 152 end 153 $run = camera_exp.pl --exp_tag $EXP_TAG --cam_id $CAM_ID --camera $CAMERA --outroot $outroot 153 154 if ("$REDUCTION" != "NULL") 154 155 $run = $run --reduction $REDUCTION
Note:
See TracChangeset
for help on using the changeset viewer.
