;------------------------------------------------------------------------------
;+
; NAME:
;   vetofile.pro
;
; PURPOSE:
;   Pass objects in a file to veto.pro.  This is just so I can call from python.
;
;
; COMMENTS:
;   Ugly but true.
;
; EXAMPLES:
;  vetofile,tmp.fits,tmp.fits
;  this example will overwrite original file with vetoed version.
;
; REQUIREMENTS:
;
; REVISION HISTORY:
; xx-Mar-2014 Written by Beth Reid (LBNL)
;

pro vetofile,infile,outfile

dd = mrdfits(infile,1)
veto,dd
mwrfits,dd,outfile,/create

end
