bundles / astropy 7.0.1 / astropy / io / fits / column / Column / __init__
function
astropy.io.fits.column:Column.__init__
source: /astropy/io/fits/column.py :561
Signature
def __init__ ( self , name = None , format = None , unit = None , null = None , bscale = None , bzero = None , disp = None , start = None , dim = None , array = None , ascii = None , coord_type = None , coord_unit = None , coord_ref_point = None , coord_ref_value = None , coord_inc = None , time_ref_pos = None ) Summary
Construct a Column by specifying attributes. All attributes except format can be optional; see astropy:column_creation and astropy:creating_ascii_table for more information regarding TFORM keyword.
Parameters
name: str, optionalcolumn name, corresponding to
TTYPEkeywordformat: strcolumn format, corresponding to
TFORMkeywordunit: str, optionalcolumn unit, corresponding to
TUNITkeywordnull: str, optionalnull value, corresponding to
TNULLkeywordbscale: int-like, optionalbscale value, corresponding to
TSCALkeywordbzero: int-like, optionalbzero value, corresponding to
TZEROkeyworddisp: str, optionaldisplay format, corresponding to
TDISPkeywordstart: int, optionalcolumn starting position (ASCII table only), corresponding to
TBCOLkeyworddim: str, optionalcolumn dimension corresponding to
TDIMkeywordarray: iterable, optionala
list, numpy.ndarray (or other iterable that can be used to initialize an ndarray) providing initial data for this column. The array will be automatically converted, if possible, to the data format of the column. In the case were non-trivialbscaleand/orbzeroarguments are given, the values in the array must be the physical values--that is, the values of column as if the scaling has already been applied (the array stored on the column object will then be converted back to its storage values).ascii: bool, optionalset
Trueif this describes a column for an ASCII table; this may be required to disambiguate the column formatcoord_type: str, optionalcoordinate/axis type corresponding to
TCTYPkeywordcoord_unit: str, optionalcoordinate/axis unit corresponding to
TCUNIkeywordcoord_ref_point: int-like, optionalpixel coordinate of the reference point corresponding to
TCRPXkeywordcoord_ref_value: int-like, optionalcoordinate value at reference point corresponding to
TCRVLkeywordcoord_inc: int-like, optionalcoordinate increment at reference point corresponding to
TCDLTkeywordtime_ref_pos: str, optionalreference position for a time coordinate column corresponding to
TRPOSkeyword
Aliases
-
astropy.io.fits.Column.__init__