{ } Raw JSON

bundles / astropy latest / astropy / io / fits / fitsrec / FITS_rec / from_columns

classmethod

astropy.io.fits.fitsrec:FITS_rec.from_columns

source: /astropy/io/fits/fitsrec.py :285

Summary

Given a ColDefs object of unknown origin, initialize a new FITS_rec object.

Extended Summary

Parameters

columns : sequence of `Column` or a `ColDefs`

The columns from which to create the table data. If these columns have data arrays attached that data may be used in initializing the new table. Otherwise the input columns will be used as a template for a new table with the requested number of rows.

nrows : int

Number of rows in the new table. If the input columns have data associated with them, the size of the largest input column is used. Otherwise the default is 0.

fill : bool

If True, will fill all cells with zeros or blanks. If False, copy the data from input, undefined cells will still be filled with zeros/blanks.

Aliases

  • astropy.io.fits.FITS_rec.from_columns