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

    r41941 r42125  
    4444  # NOTE: Mref is chosen to match filter for this exposure
    4545  data $refsrcs                 ;
     46
     47  # first check if the FITS table has any entries
     48  read -fits DATA -sizes
     49  if ($table:Ny == 0)
     50    echo "WARNING: empty reference table $refsrcs"
     51
     52    # generate empty output vectors for output file
     53    $OUT_FIELDS =
     54    foreach field $REF_FIELDS_WRP $XTR_FIELDS_WRP
     55      $OUT_FIELDS = $OUT_FIELDS $field\_out
     56      create -empty $field\_out
     57    end
     58   
     59    sprintf output "%s/%s.%s.wrp.stf" $OUTDIR $expname $OUTVERSION
     60    write -fits DATA $output $OUT_FIELDS
     61
     62    return
     63  end
     64
    4665  if ($USE_CAMSOURCE)
    4766   read -fits DATA Rref_out Dref_out Mref_out
Note: See TracChangeset for help on using the changeset viewer.