IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 17, 2022, 1:54:21 PM (4 years ago)
Author:
eugene
Message:

update ippCheck to handle empty output files

Location:
trunk/ippTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTests

  • trunk/ippTests/ippCheck

  • trunk/ippTests/ippCheck/cammask.pro

    r42114 r42125  
    7878 if ($table:Ny == 0)
    7979  echo "ERROR: no reference sources found in $refsrcs"
     80
     81  # generate an empty output file
     82  $OUT_FIELDS =
     83  foreach field $SMF_FIELDS_CAM $REF_FIELDS_CAM $XTR_FIELDS_CAM
     84    $OUT_FIELDS = $OUT_FIELDS $field\_out
     85    create -empty $field\_out
     86  end
     87 
     88  sprintf output "%s/%s.%s.cam.stf" $OUTDIR $expname $OUTVERSION
     89  write -fits DATA $output $OUT_FIELDS
     90 
     91  # save this name for warp and diff analysis, if desired
     92  $CAMSOURCE = $output
     93
    8094  break
    8195 end
     
    271285   if ($COPYMASKS) exec neb-copy $camMask:$i $OUTDIR
    272286   $j ++
    273  end
    274  $camMask:n = $chipName:n
     287   if ($j >= $tmpName:n) last
     288 end
     289 $camMask:n = $tmpName:n
    275290end
    276291
Note: See TracChangeset for help on using the changeset viewer.