Institut für Astronomie und AstrophysikAbteilung AstronomieSand 1, D-72076 Tübingen, Germany |
FTAB_DELROW
Delete rows of data from a FITS ASCII or binary table extension
ftab_delrow, filename, rows, EXTEN_NO =, NEWFILE = ]
filename - scalar string giving name of the FITS file containing an ASCII or binary table extension. rows - scalar or vector, specifying the row numbers to delete First row has index 0. If a vector, it will be sorted and duplicates will be removed
EXTEN_NO - scalar integer specifying which extension number to process Default is to process the first extension NEWFILE - scalar string specifying the name of the new output FITS file FTAB_DELROW will prompt for this parameter if not supplied
Compress the first extension of a FITS file 'test.fits' to include only non-negative values in the 'FLUX' column ftab_ext,'test.fits','flux',flux ;Obtain original flux vector bad = where(flux lt 0) ;Find negative fluxes ftab_delrow,'test.fits',bad,new='test1.fits' ;Delete specified rows
Does not work for variable length binary tables
FITS_CLOSE, FITS_OPEN, FITS_READ, FITS_WRITE, FTDELROW, TBDELROW
Written W. Landsman STX Co. August, 1997 Converted to IDL V5.0 W. Landsman September 1997 Use COPY_LUN if V5.6 or later W. Landsman February 2003
[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]