>  Docs Center  >  Libraries  >  ASTROLIB  >  TBDELROW
Libraries

TBDELROW

TBDELROW

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



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us