Changeset 42024
- Timestamp:
- Feb 7, 2022, 4:32:37 PM (4 years ago)
- Location:
- branches/eam_branches/ipp-20211108/ippTests/ippCheck
- Files:
-
- 3 edited
- 1 moved
-
Makefile.am (modified) (1 diff)
-
ippCheck (modified) (3 diffs)
-
smfcheck.pro (modified) (6 diffs)
-
tap.pro (moved) (moved from branches/eam_branches/ipp-20211108/ippTests/ippCheck/tap.sh )
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20211108/ippTests/ippCheck/Makefile.am
r41986 r42024 4 4 5 5 module_files = \ 6 tap.pro \ 7 truth.pro \ 6 8 cammask.pro \ 7 9 camstats.pro \ 8 10 diffmask.pro \ 9 truth.pro \10 11 warpmask.pro \ 11 warpstats.pro 12 warpstats.pro \ 13 smfcheck.pro 12 14 13 15 ippchecksdir = $(datadir)/dvo/modules -
branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippCheck
r41982 r42024 2 2 3 3 # XXX need alternate source for camID (if !cam) and warpID (if !warp) 4 # XXX create a config file to hold values like PV3_CATDIR 5 6 $PV3_CATDIR = /data/ipp105.0/eugene/3pi.dvo.masters/3pi.pv3.20170919 4 5 # .ippcheckrc defines smf.compare books, dvo databases, and other references 6 input $HOME/.ippcheckrc 7 7 8 8 module truth.pro 9 9 module cammask.pro 10 module camstats.pro 10 11 module warpmask.pro 12 module warpstats.pro 11 13 module diffmask.pro 12 module camstats.pro 13 module warpstats.pro 14 module smfcheck.pro 14 15 15 16 ##### … … 227 228 echo " EG: ippCheck mpc (expname) (label) [mpcfile]" 228 229 echo " EG: ippCheck dvo (expname) (label)" 230 echo " EG: ippCheck smf (outroot) (smf1) (smf2) [+plot]" 229 231 echo " EG: ippCheck plot (expname)" 230 232 echo " EG: ippCheck plot.glob (expglob) (outroot)" … … 256 258 257 259 if ("$argv:0" == "smf") 258 check.exposure.smf$arglist260 smf.compare.all.extensions $arglist 259 261 exit 0 260 262 end -
branches/eam_branches/ipp-20211108/ippTests/ippCheck/smfcheck.pro
r42007 r42024 1 1 #!/usr/bin/env dvo 2 3 2 # compare smf-to-smf 3 4 4 if (not($?SAVEPLOT)) set SAVEPLOT = 0 5 if (not($?PLOTROOT)) 6 $PLOTROOT = smfcompare 7 end 8 9 input tap.sh 10 11 # for a single chip, I want outputs with names like: 12 # expname.chipID.smfcmp.field.png 13 # expname.chipID.smfcmp.txt 14 15 ### example of plotting all outputs for a single chip: 16 macro go.sample 17 $SAVEPLOT = 1 18 $KAPA = kapa -noX 19 smf.compare.parse.book fields.bk psfFields 20 smf.compare.onechip o9451g0319o/o9451g0319o.XY01 o9451g0319o.1833521.cm.2467375.smf o9451g0319o.1833521.cm.2467377.smf 2 21 end 22 23 ### example of plotting all outputs for a single chip: 24 macro go.warp 25 $SAVEPLOT = 1 26 $KAPA = kapa 27 smf.compare.parse.book fields.bk psfFields 28 smf.compare.onechip w1.phot.rnd w1.phot.v0.fpa.cmf w1.phot.v1.fpa.cmf 0 29 end 30 31 ### example of plotting all outputs for a single chip: 32 macro go.test 33 $SAVEPLOT = 1 34 $KAPA = kapa -noX 35 # smf.compare.parse.book test.bk psfFields 36 # smf.compare.onechip test o9451g0319o.1833521.cm.2467375.smf o9451g0319o.1833521.cm.2467377.smf 2 37 smf.compare.onechip o9451g0319o/o9451g0319o.XY01 o9451g0319o.1833521.cm.2467375.smf o9451g0319o.1833521.cm.2467377.smf 2 38 end 39 40 ### example of plotting all outputs for a single chip: 41 macro full.test 42 if ($0 != 2) 43 echo "USAGE: full.test (version)" 44 break 45 end 46 47 $SAVEPLOT = 0 48 $KAPA = kapa -noX 49 check.extensions o9451g0319o.$1/o9451g0319o.$1 o9451g0319o.1833521.cm.2467375.smf o9451g0319o.1833521.cm.2467377.smf 50 end 51 52 macro check.extensions 5 6 module tap.pro 7 8 macro smf.compare.all.extensions 9 getargs +plot BOOL -var SAVEPLOT 10 53 11 if ($0 != 4) 54 echo "USAGE: check.extensions (output) (smf1) (smf2)"12 echo "USAGE: smf.compare.all.extensions (output) (smf1) (smf2) [-plot]" 55 13 break 56 14 end … … 64 22 mkdir $mydir 65 23 66 plan 3125 24 # XXX this number depends on the schema of the smfs and the camera (gpc1 vs gpc2) 25 # XXX can we calculate the number of tests based on the number of smf extensions? 26 # plan 3125 27 plan 3065 67 28 68 29 # load psfField definitions 69 smf.compare.parse.book fields.bkpsfFields70 smf.compare.parse.book hdrKeys.bk hdrKeys71 smf.compare.parse.book psfKeys.bk psfKeys72 73 # 30 smf.compare.parse.book $PSF_FIELDS psfFields 31 smf.compare.parse.book $PSF_KEYS psfKeys 32 smf.compare.parse.book $HDR_KEYS hdrKeys 33 34 # does the smf have the right number of extensions? 74 35 list ext0 -x "ftable -list $smf1" 75 36 list ext1 -x "ftable -list $smf2" … … 140 101 # load in the full set of data for this extension 141 102 # NOTE : t0 and t1 are used to label the sets of vectors 142 load.smf.fields $smf1 $extnum t1143 load.smf.fields $smf2 $extnum t2103 smf.load.fields $smf1 $extnum t1 104 smf.load.fields $smf2 $extnum t2 144 105 145 106 # generate the matched lists (index1, index2) … … 151 112 152 113 # load in the data for a pair of smf fields for a single chip 153 macro load.smf.fields114 macro smf.load.fields 154 115 if ($0 != 4) 155 echo "USAGE: load.smf.fields (smffile) (extension) (version)"116 echo "USAGE: smf.load.fields (smffile) (extension) (version)" 156 117 echo " loads all fields and saves them with version appended to the names" 157 118 break … … 251 212 252 213 macro smf.fields.magplot.init 214 if (not($SAVEPLOT)) return 215 253 216 clear -s 254 217 antialias 0.4 … … 568 531 end 569 532 570 if ($SCRIPT) 571 if ($argv:n != 1) 572 echo "USAGE: smfcheck.pro (version)" 573 break 574 end 575 576 full.test $argv:0 577 exit 0 578 end 533 ########## EXAMPLES: 534 535 ### example of plotting all outputs for a single chip: 536 macro go.sample 537 $SAVEPLOT = 1 538 $KAPA = kapa -noX 539 smf.compare.parse.book fields.bk psfFields 540 smf.compare.onechip o9451g0319o/o9451g0319o.XY01 o9451g0319o.1833521.cm.2467375.smf o9451g0319o.1833521.cm.2467377.smf 2 541 end 542 543 ### example of plotting all outputs for a single chip: 544 macro go.warp 545 $SAVEPLOT = 1 546 $KAPA = kapa 547 smf.compare.parse.book fields.bk psfFields 548 smf.compare.onechip w1.phot.rnd w1.phot.v0.fpa.cmf w1.phot.v1.fpa.cmf 0 549 end 550 551 ### example of plotting all outputs for a single chip: 552 macro go.test 553 $SAVEPLOT = 1 554 $KAPA = kapa -noX 555 # smf.compare.parse.book test.bk psfFields 556 # smf.compare.onechip test o9451g0319o.1833521.cm.2467375.smf o9451g0319o.1833521.cm.2467377.smf 2 557 smf.compare.onechip o9451g0319o/o9451g0319o.XY01 o9451g0319o.1833521.cm.2467375.smf o9451g0319o.1833521.cm.2467377.smf 2 558 end 559 560 ### example of plotting all outputs for a single chip: 561 macro full.test 562 if ($0 != 2) 563 echo "USAGE: full.test (version)" 564 break 565 end 566 567 $SAVEPLOT = 0 568 $KAPA = kapa -noX 569 check.extensions o9451g0319o.$1/o9451g0319o.$1 o9451g0319o.1833521.cm.2467375.smf o9451g0319o.1833521.cm.2467377.smf 570 end 571 ######### 572 573 ## if ($SCRIPT) 574 ## if ($argv:n != 3) 575 ## echo "USAGE: smfcheck.pro (output) (smf1) (smf1) [+plot]" 576 ## break 577 ## end 578 ## 579 ## list argv -join arglist 580 ## 581 ## smf.compare.all.extensions $arglist 582 ## exit 0 583 ## end
Note:
See TracChangeset
for help on using the changeset viewer.
