Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


  >  Docs Center  >  Libraries  >  ASTROLIB  >  FTAB_DELROW

FTAB_DELROW

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 = ]
  INPUTS-OUPUTS
      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

Optional Keyword Inputs


      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
      Assume since V5.6, COPY_LUN available W. Landsman Sep 2006



© 2018 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us