{ } Raw JSON

bundles / astropy latest / astropy / io / fits / column / _makep

function

astropy.io.fits.column:_makep

source: /astropy/io/fits/column.py :2218

Signature

def   _makep ( array descr_output format nrows = None )

Summary

Construct the P (or Q) format column array, both the data descriptors and the data. It returns the output "data" array of data type dtype.

Extended Summary

The descriptor location will have a zero offset for all columns after this call. The final offset will be calculated when the file is written.

Parameters

array

input object array

descr_output

output "descriptor" array of data type int32 (for P format arrays) or int64 (for Q format arrays)--must be nrows long in its first dimension

format

the _FormatP object representing the format of the variable array

nrows : int, optional

number of rows to create in the column; defaults to the number of rows in the input array

Aliases

  • astropy.io.fits.column._makep