FTDELROW
Name
FTDELROW
Purpose
Delete a row of data from a FITS table
Calling Sequence
ftdelrow, h, tab, rows
INPUTS-OUPUTS
h,tab - FITS table header and data array. H and TAB will
be updated on output with the specified row(s) deleted.
rows - scalar or vector, specifying the row numbers to delete
This vector will be sorted and duplicates removed by FTDELROW
Example
Compress a table to include only non-negative flux values
flux = FTGET(h,tab,'FLUX') ;Obtain original flux vector
bad = where(flux lt 0) ;Find negative fluxes
FTDELROW,h,tab,bad ;Delete rows with negative fluxes
Procedure
Specified rows are deleted from the data array, TAB. The NAXIS2
keyword in the header is updated.
Procedures Used
sxaddpar
Revision History
Written W. Landsman STX Co. August, 1988
Checked for IDL Version 2, J. Isensee, July, 1990
Converted to IDL V5.0 W. Landsman September 1997
Assume since V5.4, use BREAK instead of GOTO W. Landsman April 2006