IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 24, 2013, 3:28:13 PM (13 years ago)
Author:
eugene
Message:

add a radius check function to pcm fit source

File:
1 edited

Legend:

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

    r36307 r36310  
    607607  $psphotConfig = $psphotConfig -Db PSPHOT:POISSON.ERRORS.PHOT.LMM F
    608608  $psphotConfig = $psphotConfig -Db PSPHOT:EXTENDED_SOURCE_FITS_POISSON F
     609   $psphotConfig = $psphotConfig -Di PSPHOT:EXT_FIT_ITER 40
    609610
    610611  # ppImage / psphot on the output
     
    614615  exec ppImage $ppImageConfig $psphotConfig -file $basename.fits $outname >>& $outname.log
    615616  break -auto on
     617end
     618
     619macro cmf.load.reset
     620  $fields = X Y M T R r MT
     621  foreach field $fields
     622    foreach set in ot
     623      delete -q $field\$set\_s
     624    end
     625  end
     626
     627  delete -q min_S Min_S
    616628end
    617629
     
    12621274  local radius Nrun
    12631275
     1276  if (1)
     1277    $Nrun = 0
     1278    foreach radius 1.0 1.5 2.0 2.5 3.0 4.0 6.0 8.0
     1279      # mkexp.devexp.single tests.20131120/testrad.ps1v1.exp.$Nrun EXP $radius 1.0
     1280      fitexp tests.20131120/testrad.ps1v1.exp.$Nrun tests.20131120/testrad.ps1v1.exp.$Nrun.t4s EXP_CONV
     1281      $Nrun ++
     1282    end
     1283  end
     1284
    12641285  $Nrun = 0
    12651286  foreach radius 1.0 1.5 2.0 2.5 3.0 4.0 6.0 8.0
    1266     mkexp.devexp.single tests.20131120/testrad.ps1v1.exp.$Nrun EXP $radius 1.0
    1267     fitexp tests.20131120/testrad.ps1v1.exp.$Nrun tests.20131120/testrad.ps1v1.exp.$Nrun.t4 EXP_CONV
    1268     $Nrun ++
    1269   end
    1270 
    1271   $Nrun = 0
    1272   foreach radius 1.0 1.5 2.0 2.5 3.0 4.0 6.0 8.0
    1273     cmf.load.concat tests.20131120/testrad.ps1v1.exp.$Nrun.dat tests.20131120/testrad.ps1v1.exp.$Nrun.t4.cmf EXP
     1287    cmf.load.concat tests.20131120/testrad.ps1v1.exp.$Nrun.dat tests.20131120/testrad.ps1v1.exp.$Nrun.t4s.cmf EXP
    12741288    set dM_m = Mot_m - Min_m
    12751289    vstat -q dM_m
     
    12841298  grid.plots.devexp a
    12851299end
     1300
     1301macro check.radius.loop
     1302  if ($0 != 2)
     1303    echo "USAGE: check.radius.loop (ext)"
     1304    break
     1305  end
     1306
     1307  # cmf.load.reset
     1308
     1309  local radius Nrun
     1310
     1311  $Nrun = 0
     1312  foreach radius 1.0 1.5 2.0 2.5 3.0 4.0 6.0 8.0
     1313    cmf.load.concat tests.20131120/testrad.ps1v1.exp.$Nrun.dat tests.20131120/testrad.ps1v1.exp.$Nrun.$1.cmf EXP
     1314    set dM_m = Mot_m - Min_m
     1315    vstat -q dM_m
     1316    $mag_off = $MEDIAN
     1317    set dR_m = Rot_m - Rin_m
     1318    vstat -q dR_m
     1319    $rad_off = $MEDIAN
     1320    echo $radius $mag_off $rad_off
     1321    $Nrun ++
     1322  end
     1323
     1324  grid.plots.devexp a
     1325end
     1326
     1327macro check.fit
     1328  if ($0 != 3)
     1329    echo "USAGE: check.fit (dat) (cmf)"
     1330    break
     1331  end
     1332
     1333  cmf.load.concat $1 $2 EXP
     1334  set dM_m = Mot_m - Min_m
     1335  vstat -q dM_m
     1336  $mag_off = $MEDIAN
     1337  set dR_m = Rot_m - Rin_m
     1338  vstat -q dR_m
     1339  $rad_off = $MEDIAN
     1340  echo $mag_off $rad_off
     1341end
Note: See TracChangeset for help on using the changeset viewer.