IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 30, 2021, 11:25:08 AM (5 years ago)
Author:
eugene
Message:

catch empty reference files (e.g., no known asteroids in an exposure); select inv.cmf if .cmf is missing; some support for multiple host jobs; use mid-exposure date/time as reference

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/eam/teleff/diffmask.pro

    r41720 r41742  
    1212
    1313if (not($?MATCH_RADIUS)) set MATCH_RADIUS = 2.0
    14 
    1514if (not($?USE_CAMSOURCE)) set USE_CAMSOURCE = 0
    1615
     
    228227   end
    229228
    230    sprintf filename "%s.cmf" $diffPath:$i
     229   if ($diffOrder == 0)
     230     sprintf filename "%s.cmf" $diffPath:$i
     231   else
     232     sprintf filename "%s.inv.cmf" $diffPath:$i
     233   end
    231234   $diffCMF:$i  = `neb-locate -p $filename`
    232235   if ($VERBOSE) echo "found mask: $diffMask:$i CMF: $diffCMF:$i"
     
    288291 $diffMode = $4
    289292
    290  $diffID = 0
     293 $diffID    = 0
     294 $diffOrder = 0; # 0 : A of A-B, 1 : B of A-B
     295
     296 # we do not know if the exposure was used as A or B in the A-B diff.  First try A:
    291297#$command = difftool -dbname $dbname -listrun -exp_name $expname -warp_id $warpID -dist_group $distGroup -diff_mode $diffMode
    292298 $command = difftool -dbname $dbname -listrun -exp_name $expname -warp_id $warpID -diff_mode $diffMode
     
    302308 
    303309  $command = difftool -dbname $dbname -listrun -exp_name $expname -warp_id $warpID -diff_mode $diffMode -template
     310  $diffOrder = 1
    304311 
    305312  queueload  myqueue -x "$command"
Note: See TracChangeset for help on using the changeset viewer.