- NAME
TBDELROW
- PURPOSE
Delete specified row or rows of data from a FITS binary table
- CALLING SEQUENCE
TBDELROW, h, tab, rows
- INPUTS-OUPUTS
h,tab - FITS binary 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
First row has index 0. If a vector it will be sorted and
duplicates removed by TBDELROW
- EXAMPLE
Compress a table to include only non-negative flux values
flux = TBGET(h,tab,'FLUX') ;Obtain original flux vector
bad = where(flux lt 0) ;Find negative fluxes
TBDELROW,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.
- 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
- riginal number of rows
- educe number of rows