IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42024


Ignore:
Timestamp:
Feb 7, 2022, 4:32:37 PM (4 years ago)
Author:
eugene
Message:

getting close to a full ippCheck suite

Location:
branches/eam_branches/ipp-20211108/ippTests/ippCheck
Files:
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20211108/ippTests/ippCheck/Makefile.am

    r41986 r42024  
    44
    55module_files = \
     6  tap.pro   \
     7  truth.pro     \
    68  cammask.pro   \
    79  camstats.pro  \
    810  diffmask.pro  \
    9   truth.pro     \
    1011  warpmask.pro  \
    11   warpstats.pro
     12  warpstats.pro \
     13  smfcheck.pro
    1214
    1315ippchecksdir = $(datadir)/dvo/modules
  • branches/eam_branches/ipp-20211108/ippTests/ippCheck/ippCheck

    r41982 r42024  
    22
    33# 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
     6input $HOME/.ippcheckrc
    77
    88module truth.pro
    99module cammask.pro
     10module camstats.pro
    1011module warpmask.pro
     12module warpstats.pro
    1113module diffmask.pro
    12 module camstats.pro
    13 module warpstats.pro
     14module smfcheck.pro
    1415
    1516#####
     
    227228  echo "   EG: ippCheck mpc  (expname) (label) [mpcfile]"
    228229  echo "   EG: ippCheck dvo  (expname) (label)"
     230  echo "   EG: ippCheck smf  (outroot) (smf1) (smf2) [+plot]"
    229231  echo "   EG: ippCheck plot (expname)"
    230232  echo "   EG: ippCheck plot.glob (expglob) (outroot)"
     
    256258
    257259  if ("$argv:0" == "smf")
    258     check.exposure.smf $arglist
     260    smf.compare.all.extensions $arglist
    259261    exit 0
    260262  end
  • branches/eam_branches/ipp-20211108/ippTests/ippCheck/smfcheck.pro

    r42007 r42024  
    11#!/usr/bin/env dvo
    2 
    32# compare smf-to-smf
     3
    44if (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
     6module tap.pro
     7
     8macro smf.compare.all.extensions
     9  getargs +plot   BOOL  -var SAVEPLOT
     10
    5311  if ($0 != 4)
    54     echo "USAGE: check.extensions (output) (smf1) (smf2)"
     12    echo "USAGE: smf.compare.all.extensions (output) (smf1) (smf2) [-plot]"
    5513    break
    5614  end
     
    6422  mkdir $mydir
    6523
    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
    6728
    6829  # load psfField definitions
    69   smf.compare.parse.book fields.bk psfFields
    70   smf.compare.parse.book hdrKeys.bk hdrKeys
    71   smf.compare.parse.book psfKeys.bk psfKeys
    72 
    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?
    7435  list ext0 -x "ftable -list $smf1"
    7536  list ext1 -x "ftable -list $smf2"
     
    140101  # load in the full set of data for this extension
    141102  # NOTE : t0 and t1 are used to label the sets of vectors
    142   load.smf.fields $smf1 $extnum t1
    143   load.smf.fields $smf2 $extnum t2
     103  smf.load.fields $smf1 $extnum t1
     104  smf.load.fields $smf2 $extnum t2
    144105
    145106  # generate the matched lists (index1, index2)
     
    151112
    152113# load in the data for a pair of smf fields for a single chip
    153 macro load.smf.fields
     114macro smf.load.fields
    154115  if ($0 != 4)
    155     echo "USAGE: load.smf.fields (smffile) (extension) (version)"
     116    echo "USAGE: smf.load.fields (smffile) (extension) (version)"
    156117    echo "  loads all fields and saves them with version appended to the names"
    157118    break
     
    251212
    252213macro smf.fields.magplot.init
     214  if (not($SAVEPLOT)) return
     215
    253216  clear -s
    254217  antialias 0.4
     
    568531end
    569532
    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:
     536macro 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
     541end
     542
     543### example of plotting all outputs for a single chip:
     544macro 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
     549end
     550
     551### example of plotting all outputs for a single chip:
     552macro 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
     558end
     559
     560### example of plotting all outputs for a single chip:
     561macro 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
     570end
     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.