[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Sand 1, D-72076 Tübingen, Germany
[Uni logo]


FTAB_DELROW Source code in ftab_delrow.pro

FTAB_DELROW

Name
       FTAB_DELROW
Purpose
       Delete rows of data from a FITS ASCII or binary table extension
Calling Sequence
       ftab_delrow, filename, rows, EXTEN_NO =, NEWFILE = ]
Parameters
       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
Keyword Parameters
       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
Example
       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
Restrictions
       Does not work for variable length binary tables
Procedures Used
       FITS_CLOSE, FITS_OPEN, FITS_READ, FITS_WRITE, FTDELROW, TBDELROW
Revision History
       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

Last modified by pro2html on 2003 March 01 at 04:44 UTC

[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]

Jörn Wilms (wilms@astro.uni-tuebingen.de)
Updated automatically