- Timestamp:
- Feb 9, 2022, 5:34:17 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20211108/ippTests/ippCheck/smfcheck.pro
r42031 r42032 6 6 module tap.pro 7 7 8 macro smf.compare.by.datagroups 8 macro smf.compare.allexp.by.datagroups 9 $CAMERA = gpc1 10 11 getargs +plot BOOL -var SAVEPLOT 12 getargs -camera VALUE -var CAMERA 13 14 if ($0 != 4) 15 echo "USAGE: smf.compare.allexp.by.datagroups (outdir) (DG1) (DG2) [+plot] [-camera gpc2]" 16 break 17 end 18 19 local outdir dgrp1 dgrp2 command i npages expname 20 $outdir = $1 21 $dgrp1 = $2 22 $dgrp2 = $3 23 24 # identify the list of exposures in the data groups 25 $command = camtool -dbname $CAMERA -processedexp -data_group $dgrp2 26 27 queueload myqueue -x "$command" 28 queue2book myqueue mybook 29 30 $camPath = NONE 31 book npages mybook -var npages 32 33 if ($npages < 1) 34 echo "ERROR: missing exposures for $dgrp2 : $command" 35 book delete mybook 36 next 37 end 38 39 for i 0 $npages 40 sprint pagename page.%03d $i 41 book getword mybook $pagename exp_name -var expname 42 $expnames:$i = $expname 43 end 44 $expnames:n = $npages 45 46 book delete mybook 47 48 $options = 49 setargs +plot BOOL $SAVEPLOT 50 setargs -camera VALUE $CAMERA 51 52 mkdir $outdir 53 54 for i 0 $expnames:n 55 echo smf.compare.exp.by.datagroups $outdir/$expnames:$i $expnames:$i $dgrp1 $dgrp2 $options 56 exec ippCheck smf.dgrp.exp $outdir/$expnames:$i $expnames:$i $dgrp1 $dgrp2 $options >& $outdir/$expnames:$i.log 57 end 58 end 59 60 macro smf.compare.exp.by.datagroups 9 61 $CAMERA = gpc1 10 62 … … 31 83 $smf2 = `neb-locate -p $smffile` 32 84 33 $saveplot = 34 if ($SAVEPLOT) 35 $saveplot = +plot 36 end 37 smf.compare.all.extensions $output $smf1 $smf2 85 $options = 86 setargs +plot BOOL $SAVEPLOT 87 smf.compare.all.extensions $output $smf1 $smf2 $options 38 88 end 39 89 … … 697 747 end 698 748 749 ## XXX this macro is sort of the opposite of getargs: it 750 ## appends values to the variable options 751 macro setargs 752 if ("$2" == "BOOL") 753 if ($3) 754 $options = $options $1 755 end 756 end 757 758 if ("$2" == "VALUE") 759 $options = $options $1 $3 760 end 761 end 762 699 763 ########## EXAMPLES: 700 764
Note:
See TracChangeset
for help on using the changeset viewer.
