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/diffmask.pro

    r41941 r42125  
    5151  # load the reference source table
    5252  # how to choose the name of the filter?
    53   data $refsrcs;
     53  data $refsrcs
     54
     55  # first check if the FITS table has any entries
     56  read -fits DATA -sizes
     57  if ($table:Ny == 0)
     58    echo "WARNING: empty reference table $refsrcs"
     59
     60    $OUT_FIELDS =
     61    foreach field $SMF_FIELDS_DIF $REF_FIELDS_DIF $XTR_FIELDS_DIF
     62      $OUT_FIELDS = $OUT_FIELDS $field\_out
     63      create -empty $field\_out
     64    end
     65   
     66    sprintf output "%s/%s.%s.dif.stf" $OUTDIR $expname $OUTVERSION
     67    write -fits DATA $output $OUT_FIELDS
     68    return
     69  end
     70
    5471  if ($USE_CAMSOURCE)
    5572   read -fits DATA Rref_out Dref_out Mref_out
Note: See TracChangeset for help on using the changeset viewer.