IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40264 for trunk


Ignore:
Timestamp:
Dec 8, 2017, 1:32:58 PM (9 years ago)
Author:
eugene
Message:

updates to mag/meas checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/test/mkgpc1data.dr2.dvo

    r40261 r40264  
    9191  exec dvomerge -matched-tables testdata/catdir.stk into testdata/catdir.mrg
    9292  exec dvomerge -matched-tables testdata/catdir.wrp into testdata/catdir.mrg
     93
     94  exec cp RegionHost.dat testdata/catdir.mrg
     95
     96# test parallel-regions version:
     97# exec relphot -parallel-regions -region-hosts RegionHost.dat -D CATDIR testdata/catdir.mrg -D CAMERA simtest -region 8 12 18 22 -update -vv g,r -reset -reset-zpts -D STAR_TOOFEW 0 -boundary-tree tess.3pi.fits -cloud-limit 0.1 -imfreeze -mosfreeze -only-stacks-and-warps -update-catformat PS1_V6
    9398
    9499  echo relphot -D CATDIR testdata/catdir.mrg -D CAMERA simtest -region 8 12 18 22 -update -vv -images g,r -reset -reset-zpts -D STAR_TOOFEW 0 -boundary-tree tess.3pi.fits -cloud-limit 0.1
     
    720725
    721726macro check.mags
     727  if ($0 != 3)
     728    echo "USAGE: check.mags (catdir) (ver)"
     729    break
     730  end
    722731
    723732  # NOTE: relphot refuses to set the warp averages if there is no boundary tree: otherwise it cannot choose the correct subset of measurements
     
    725734  # relphot -D CATDIR testdata/catdir.mrg -D CAMERA simtest -region 8 12 18 22 -update -vv -images g,r -reset -reset-zpts -D STAR_TOOFEW 0 -boundary-tree tess.3pi.fits
    726735
    727   catdir testdata/catdir.mrg
     736  catdir $1
    728737  skyregion 8 12 18 22
    729738  avextract ra dec g:psf:chp g:kron:chp g:psf:stk g:kron:stk g:psf:wrp g:kron:wrp
     
    739748  set dg:psf:kron:wrp = g:psf:wrp - g:kron:wrp
    740749
    741   lim -n 0 g:psf:chp -0.2 0.2; clear; box; plot g:psf:chp dg:psf:chp:stk -c blue -pt 7; plot g:psf:chp dg:psf:chp:wrp -c red -pt 2
    742 
    743   lim -n 1 g:kron:chp -0.2 0.2; clear; box; plot g:kron:chp dg:kron:chp:stk -c blue -pt 7; plot g:kron:chp dg:kron:chp:wrp -c red -pt 2
    744 
    745   lim -n 2 g:psf:chp -0.2 0.2; clear; box; plot g:psf:chp dg:psf:kron:chp -c blue -pt 7; plot g:psf:chp dg:psf:kron:stk -c red -pt 2; plot g:psf:chp dg:psf:kron:wrp -c green -pt 2
     750  lim -n 0$2 g:psf:chp -0.2 0.2; clear; box; plot g:psf:chp dg:psf:chp:stk -c blue -pt 7; plot g:psf:chp dg:psf:chp:wrp -c red -pt 2
     751  label -x "g:psf:chp" -y "g:psf:chp - g:psf:stk(blue),wrp(red)"
     752  resize 600 400
     753
     754  lim -n 1$2 g:kron:chp -0.2 0.2; clear; box; plot g:kron:chp dg:kron:chp:stk -c blue -pt 7; plot g:kron:chp dg:kron:chp:wrp -c red -pt 2
     755  label -x "g:kron:chp" -y "g:kron:chp - g:kron:stk(blue),wrp(red)"
     756  resize 600 400
     757
     758  lim -n 2$2 g:psf:chp -0.2 0.2; clear; box; plot g:psf:chp dg:psf:kron:chp -c green -pt 7; plot g:psf:chp dg:psf:kron:stk -c blue -pt 2; plot g:psf:chp dg:psf:kron:wrp -c red -pt 2
     759  label -x "g:psf:chp" -y "g:psf:chp - g:kron:chp(green),stk(blue),wrp(red)"
     760  resize 600 400
    746761
    747762# for i 0 10
     
    751766
    752767macro check.mags.meas
     768  if ($0 != 3)
     769    echo "USAGE: check.mags.meas (catdir) (ver)"
     770    break
     771  end
    753772
    754773  # NOTE: relphot refuses to set the warp averages if there is no boundary tree: otherwise it cannot choose the correct subset of measurements
     
    756775  # relphot -D CATDIR testdata/catdir.mrg -D CAMERA simtest -region 8 12 18 22 -update -vv -images g,r -reset -reset-zpts -D STAR_TOOFEW 0 -boundary-tree tess.3pi.fits
    757776
    758   catdir testdata/catdir.mrg
     777  catdir $1
    759778  skyregion 8 12 18 22
    760779
    761780  mextract ra dec mag:rel:psf mag:rel:kron mag:ave:psf mag:ave:kron photcode
    762781  set dM:psf = mag:ave:psf - mag:rel:psf
    763   lim -n 0 mag:ave:psf dM:psf; clear; box; plot mag:ave:psf dM:psf
     782  lim -n 0$2 mag:ave:psf dM:psf; clear; box; plot mag:ave:psf dM:psf
    764783  label -x "mag:ave:psf" -y "mag:ave:psf - mag:rel:psf"
     784  resize 600 400
    765785
    766786  set dM:kron = mag:ave:kron - mag:rel:kron
    767   lim -n 1 mag:ave:kron dM:kron; clear; box; plot mag:ave:kron dM:kron
     787  lim -n 1$2 mag:ave:kron dM:kron; clear; box; plot mag:ave:kron dM:kron
    768788  label -x "mag:ave:kron" -y "mag:ave:kron - mag:rel:kron"
     789  resize 600 400
    769790
    770791  set dM:psf:kron = mag:rel:psf - mag:rel:kron
    771   lim -n 2 mag:rel:kron dM:psf:kron; clear; box; plot mag:rel:kron dM:psf:kron
     792  lim -n 2$2 mag:rel:kron dM:psf:kron; clear; box; plot mag:rel:kron dM:psf:kron
    772793  label -x "mag:rel:kron" -y "mag:rel:psf - mag:rel:kron"
     794  resize 600 400
    773795end
    774796
     
    783805  exit 0
    784806end
     807
Note: See TracChangeset for help on using the changeset viewer.