IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 17, 2012, 2:42:48 PM (14 years ago)
Author:
eugene
Message:

add a waitpid function for jobs on HostTable; updates on relphot/setphot tests; dvodist moves the original files out of the way and makes symlinks; add -reset to setphot; parallel remote launch for setphot; pass -keep-ubercal to relphot_client

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/Ohana/src/addstar/test/relphot.setphot.parallel.dvo

    r33302 r33303  
    158158
    159159  # run setphot on the serial db and check that the images now match the expected values
    160   exec setphot -update -ubercal testzpt.fits -D CATDIR $catdir
     160  exec setphot -reset -update -ubercal testzpt.fits -D CATDIR $catdir
    161161  for i 0 mjd_uc[]
    162162    ckexposure $catdir mjd_uc[$i] zpt_uc[$i] exptime_uc[$i] airmass_uc[$i] $filt_uc:$i setphot_uc
     
    178178
    179179  # run setphot on the parallel db and check that the images now match the expected values
    180   exec setphot -parallel -update -ubercal testzpt.fits -D CATDIR $catdir.p0
     180  exec setphot -reset -parallel -update -ubercal testzpt.fits -D CATDIR $catdir.p0
    181181
    182182  # bring the detections back to the local db
    183   exec dvodist -in $catdir.p0 >& log.dvodist.in
     183  # exec dvodist -in $catdir.p0 >& log.dvodist.in
     184  # XXX this should now not be needed
    184185
    185186  # check the results
     
    190191    ckexposure $catdir.p0 mjd_nc[$i] zpt_nc[$i] exptime_nc[$i] airmass_nc[$i] $filt_nc:$i setphot_nc
    191192  end
    192 
    193   # push the detections back out to the parallel db
    194   exec dvodist -out $catdir.p0 >& log.dvodist.in
    195193
    196194  # run relphot on the parallel db and check that the images now match the expected values
    197195  exec relphot -parallel g,r,i -v -region 9.5 10.5 19.5 20.5 -D CATDIR $catdir.p0 -D STAR_TOOFEW 1 -D SIGMA_LIM 0.07 -statmode WT_MEAN -cloud-limit 0.5 -keep-ubercal -D IMAGE_OFFSET 0.5 -update >& log.relphot.p0
    198196
    199   # bring the detections back to the local db
    200   exec dvodist -in $catdir.p0 >& log.dvodist.in
    201 
    202197  for i 0 mjd_uc[]
    203198    ckexposure $catdir.p0 mjd_uc[$i] zpt_uc[$i] exptime_uc[$i] airmass_uc[$i] $filt_uc:$i relphot
     
    208203
    209204  tapDONE
     205end
     206
     207macro qt
     208
     209  ## SER
     210
     211  # run setphot on the serial db and check that the images now match the expected values
     212  exec setphot -reset -update -ubercal testzpt.fits -D CATDIR $catdir
     213  for i 0 mjd_uc[]
     214    ckexposure $catdir mjd_uc[$i] zpt_uc[$i] exptime_uc[$i] airmass_uc[$i] $filt_uc:$i setphot_uc
     215  end
     216  for i 0 mjd_nc[]
     217    ckexposure $catdir mjd_nc[$i] zpt_nc[$i] exptime_nc[$i] airmass_nc[$i] $filt_nc:$i setphot_nc
     218  end
     219
     220  # run relphot on the serial db and check that the images now match the expected values
     221  exec relphot g,r,i -v -region 9.5 10.5 19.5 20.5 -D CATDIR $catdir -D STAR_TOOFEW 1 -D SIGMA_LIM 0.07 -statmode WT_MEAN -cloud-limit 0.5 -keep-ubercal -D IMAGE_OFFSET 0.5 -update >& log.relphot.s0
     222  for i 0 mjd_uc[]
     223    ckexposure $catdir mjd_uc[$i] zpt_uc[$i] exptime_uc[$i] airmass_uc[$i] $filt_uc:$i relphot
     224  end
     225  for i 0 mjd_nc[]
     226    ckexposure $catdir mjd_nc[$i] zpt_nc[$i] exptime_nc[$i] airmass_nc[$i] $filt_nc:$i relphot
     227  end
     228
     229  ## PAR
     230
     231  # run setphot on the parallel db and check that the images now match the expected values
     232  exec setphot -reset -parallel -update -ubercal testzpt.fits -D CATDIR $catdir.p0
     233
     234  # check the results
     235  for i 0 mjd_uc[]
     236    ckexposure $catdir.p0 mjd_uc[$i] zpt_uc[$i] exptime_uc[$i] airmass_uc[$i] $filt_uc:$i setphot_uc
     237  end
     238  for i 0 mjd_nc[]
     239    ckexposure $catdir.p0 mjd_nc[$i] zpt_nc[$i] exptime_nc[$i] airmass_nc[$i] $filt_nc:$i setphot_nc
     240  end
     241 
     242  # run relphot on the parallel db and check that the images now match the expected values
     243  exec relphot -parallel g,r,i -v -region 9.5 10.5 19.5 20.5 -D CATDIR $catdir.p0 -D STAR_TOOFEW 1 -D SIGMA_LIM 0.07 -statmode WT_MEAN -cloud-limit 0.5 -keep-ubercal -D IMAGE_OFFSET 0.5 -update >& log.relphot.p0
     244
     245  for i 0 mjd_uc[]
     246    ckexposure $catdir.p0 mjd_uc[$i] zpt_uc[$i] exptime_uc[$i] airmass_uc[$i] $filt_uc:$i relphot
     247  end
     248  for i 0 mjd_nc[]
     249    ckexposure $catdir.p0 mjd_nc[$i] zpt_nc[$i] exptime_nc[$i] airmass_nc[$i] $filt_nc:$i relphot
     250  end
    210251end
    211252
Note: See TracChangeset for help on using the changeset viewer.