IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36317


Ignore:
Timestamp:
Nov 28, 2013, 3:58:42 AM (13 years ago)
Author:
eugene
Message:

add dev and sersic tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130904/psphot/test/tap_psphot_galaxygrid.pro

    r36316 r36317  
    611611  $psphotConfig = $psphotConfig -Db PSPHOT:POISSON.ERRORS.PHOT.LMM F
    612612  $psphotConfig = $psphotConfig -Db PSPHOT:EXTENDED_SOURCE_FITS_POISSON F
    613   $psphotConfig = $psphotConfig -Di PSPHOT:EXT_FIT_ITER 20
     613  $psphotConfig = $psphotConfig -Di PSPHOT:EXT_FIT_ITER 15
    614614  $psphotConfig = $psphotConfig -Df PSPHOT:PSF_FIT_RADIUS_SCALE 3.75
    615615  $psphotConfig = $psphotConfig -Df PSPHOT:EXT_FIT_NSIGMA_CONV $NSIGMA_CONV
     
    673673
    674674  break -auto off
     675  output -err /dev/null
    675676  read -fits Chip.xfit X_EXT Y_EXT EXT_INST_MAG EXT_WIDTH_MAJ EXT_WIDTH_MIN EXT_THETA MODEL_TYPE EXT_PAR_07
     677  output -err stderr
    676678  $reread = not($STATUS)
    677679  break -auto on
     
    707709  reindex rin_m = RminIn using index2
    708710 
    709   if ("$3" == "SERSIC")
     711  # if ("$3" == "SERSIC")
    710712    reindex Iot_m = EXT_PAR_07 using index1
    711713    reindex Iin_m = IndexIn using index2
    712714   $fields = X Y M T R r MT I
    713   else
    714   $fields = X Y M T R r MT
    715   end
     715  # else
     716  # $fields = X Y M T R r MT
     717  # end
    716718 
    717719  foreach field $fields
     
    13321334
    13331335macro check.fit
    1334   if ($0 != 3)
    1335     echo "USAGE: check.fit (dat) (cmf)"
    1336     break
    1337   end
    1338 
    1339   cmf.load.concat $1 $2 EXP
     1336  if ($0 != 4)
     1337    echo "USAGE: check.fit (dat) (cmf) (type)"
     1338    break
     1339  end
     1340
     1341  cmf.load.concat $1 $2 $3
    13401342  set dM_m = Mot_m - Min_m
    13411343  vstat -q dM_m
     
    13861388end
    13871389
     1390macro check.convolve.loop
     1391  if ($0 != 2)
     1392    echo "check.convolve.loop (intype)"
     1393    break
     1394  end
     1395
     1396  local radius
     1397
     1398  $radius = 3.0
     1399
     1400  cmf.load.reset
     1401
     1402  # foreach Cin 3 5 7 9 11
     1403  foreach Cin 11
     1404    sprintf nameIn tests.20131120/test.nsig.%02d $Cin
     1405    foreach Cot 3 5 7 9 11
     1406      sprintf nameOt tests.20131120/test.serdev.%02d.%02d $Cin $Cot
     1407      echo -no-return $Cin $Cot " "
     1408      check.fit $nameIn.dat $nameOt.cmf $1
     1409    end
     1410  end
     1411  grid.plots.devexp a
     1412end
     1413
    13881414macro run.convolve.loop
    13891415  local radius
     
    13911417  $radius = 3.0
    13921418
    1393   foreach Cin 3 5 7 9 11
     1419  # foreach Cin 3 5 7 9 11
     1420  foreach Cin 11
    13941421    $CONVOLVE_NSIGMA = $Cin
    13951422    sprintf nameIn tests.20131120/test.nsig.%02d $Cin
    1396     mkexp.devexp.single $nameIn EXP $radius 1.0
     1423    # mkexp.devexp.single $nameIn EXP $radius 1.0
    13971424    foreach Cot 3 5 7 9 11
    13981425      $NSIGMA_CONV = $Cot
    1399       sprintf nameOt tests.20131120/test.nsig.%02d.%02d $Cin $Cot
     1426      sprintf nameOt tests.20131120/test.nsig.x.%02d.%02d $Cin $Cot
    14001427      fitexp $nameIn $nameOt EXP_CONV
    14011428    end
    14021429  end
    14031430
    1404   foreach Cin 3 5 7 9 11
     1431  # foreach Cin 3 5 7 9 11
     1432  foreach Cin 11
    14051433    sprintf nameIn tests.20131120/test.nsig.%02d $Cin
    14061434    foreach Cot 3 5 7 9 11
    1407       sprintf nameOt tests.20131120/test.nsig.%02d.%02d $Cin $Cot
     1435      sprintf nameOt tests.20131120/test.nsig.x.%02d.%02d $Cin $Cot
    14081436      check.fit $nameIn.dat $nameOt.cmf
    14091437    end
     
    14121440end
    14131441
     1442macro run.convolve.loop.dev
     1443  local radius
     1444
     1445  $radius = 3.0
     1446
     1447  foreach Cin 11
     1448    $CONVOLVE_NSIGMA = $Cin
     1449    sprintf nameIn tests.20131120/test.dev.%02d $Cin
     1450    mkexp.devexp.single $nameIn DEV $radius 1.0
     1451    foreach Cot 3 5 7 9 11
     1452      $NSIGMA_CONV = $Cot
     1453      sprintf nameOt tests.20131120/test.dev.%02d.%02d $Cin $Cot
     1454      fitexp $nameIn $nameOt DEV_CONV
     1455    end
     1456  end
     1457
     1458  # foreach Cin 3 5 7 9 11
     1459  foreach Cin 11
     1460    sprintf nameIn tests.20131120/test.dev.%02d $Cin
     1461    foreach Cot 3 5 7 9 11
     1462      sprintf nameOt tests.20131120/test.dev.%02d.%02d $Cin $Cot
     1463      check.fit $nameIn.dat $nameOt.cmf DEV
     1464    end
     1465  end
     1466  grid.plots.devexp a
     1467end
     1468
     1469macro run.convolve.loop.serexp
     1470  local radius
     1471
     1472  $radius = 3.0
     1473
     1474  foreach Cin 11
     1475    $CONVOLVE_NSIGMA = $Cin
     1476    sprintf nameIn tests.20131120/test.nsig.%02d $Cin
     1477    foreach Cot 3 5 7 9 11
     1478      $NSIGMA_CONV = $Cot
     1479      sprintf nameOt tests.20131120/test.serexp.%02d.%02d $Cin $Cot
     1480      fitexp $nameIn $nameOt SER_CONV
     1481    end
     1482  end
     1483
     1484  # foreach Cin 3 5 7 9 11
     1485  foreach Cin 11
     1486    sprintf nameIn tests.20131120/test.nsig.%02d $Cin
     1487    foreach Cot 3 5 7 9 11
     1488      sprintf nameOt tests.20131120/test.serexp.%02d.%02d $Cin $Cot
     1489      check.fit $nameIn.dat $nameOt.cmf EXP
     1490    end
     1491  end
     1492  grid.plots.devexp a
     1493end
     1494
     1495
     1496macro run.convolve.loop.serdev
     1497  local radius
     1498
     1499  $radius = 3.0
     1500
     1501  cmf.load.reset
     1502
     1503  foreach Cin 11
     1504    $CONVOLVE_NSIGMA = $Cin
     1505    sprintf nameIn tests.20131120/test.dev.%02d $Cin
     1506    foreach Cot 3 5 7 9 11
     1507      $NSIGMA_CONV = $Cot
     1508      sprintf nameOt tests.20131120/test.serdev.%02d.%02d $Cin $Cot
     1509      fitexp $nameIn $nameOt SER_CONV
     1510    end
     1511  end
     1512
     1513  # foreach Cin 3 5 7 9 11
     1514  foreach Cin 11
     1515    sprintf nameIn tests.20131120/test.dev.%02d $Cin
     1516    foreach Cot 3 5 7 9 11
     1517      sprintf nameOt tests.20131120/test.serdev.%02d.%02d $Cin $Cot
     1518      check.fit $nameIn.dat $nameOt.cmf DEV
     1519    end
     1520  end
     1521  grid.plots.devexp a
     1522end
     1523
Note: See TracChangeset for help on using the changeset viewer.